chore: update stage0
This commit is contained in:
parent
1076ca1ead
commit
968aff403b
13 changed files with 2551 additions and 1288 deletions
2
stage0/src/library/constructions/CMakeLists.txt
generated
2
stage0/src/library/constructions/CMakeLists.txt
generated
|
|
@ -1,3 +1,3 @@
|
|||
add_library(constructions OBJECT rec_on.cpp cases_on.cpp
|
||||
add_library(constructions OBJECT cases_on.cpp
|
||||
no_confusion.cpp projection.cpp brec_on.cpp init_module.cpp
|
||||
util.cpp)
|
||||
|
|
|
|||
64
stage0/src/library/constructions/rec_on.cpp
generated
64
stage0/src/library/constructions/rec_on.cpp
generated
|
|
@ -1,64 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/inductive.h"
|
||||
#include "library/reducible.h"
|
||||
#include "library/suffixes.h"
|
||||
#include "library/aux_recursors.h"
|
||||
#include "library/constructions/util.h"
|
||||
|
||||
namespace lean {
|
||||
declaration mk_rec_on(environment const & env, name const & n) {
|
||||
constant_info ind_info = env.get(n);
|
||||
if (!ind_info.is_inductive())
|
||||
throw exception(sstream() << "error in '" << g_rec_on << "' generation, '" << n << "' is not an inductive datatype");
|
||||
name_generator ngen = mk_constructions_name_generator();
|
||||
local_ctx lctx;
|
||||
name rec_on_name(n, g_rec_on);
|
||||
constant_info rec_info = env.get(mk_rec_name(n));
|
||||
recursor_val rec_val = rec_info.to_recursor_val();
|
||||
buffer<expr> locals;
|
||||
expr rec_type = rec_info.get_type();
|
||||
while (is_pi(rec_type)) {
|
||||
expr local = lctx.mk_local_decl(ngen, binding_name(rec_type), binding_domain(rec_type), binding_info(rec_type));
|
||||
rec_type = instantiate(binding_body(rec_type), local);
|
||||
locals.push_back(local);
|
||||
}
|
||||
|
||||
// locals order
|
||||
// As Cs minor_premises indices major-premise
|
||||
|
||||
// new_locals order
|
||||
// As Cs indices major-premise minor-premises
|
||||
buffer<expr> new_locals;
|
||||
unsigned num_indices = rec_val.get_nindices();
|
||||
unsigned num_minors = rec_val.get_nminors();
|
||||
unsigned AC_sz = locals.size() - num_minors - num_indices - 1;
|
||||
for (unsigned i = 0; i < AC_sz; i++)
|
||||
new_locals.push_back(locals[i]);
|
||||
for (unsigned i = 0; i < num_indices + 1; i++)
|
||||
new_locals.push_back(locals[AC_sz + num_minors + i]);
|
||||
for (unsigned i = 0; i < num_minors; i++)
|
||||
new_locals.push_back(locals[AC_sz + i]);
|
||||
expr rec_on_type = lctx.mk_pi(new_locals, rec_type);
|
||||
|
||||
levels ls = lparams_to_levels(rec_info.get_lparams());
|
||||
expr rec = mk_constant(rec_info.get_name(), ls);
|
||||
expr rec_on_val = lctx.mk_lambda(new_locals, mk_app(rec, locals));
|
||||
|
||||
return mk_definition_inferring_unsafe(env, rec_on_name, rec_info.get_lparams(),
|
||||
rec_on_type, rec_on_val, reducibility_hints::mk_abbreviation());
|
||||
}
|
||||
|
||||
extern "C" LEAN_EXPORT object * lean_mk_rec_on(object * env, object * n) {
|
||||
return catch_kernel_exceptions<declaration>([&]() { return mk_rec_on(environment(env), name(n, true)); });
|
||||
}
|
||||
}
|
||||
19
stage0/src/library/constructions/rec_on.h
generated
19
stage0/src/library/constructions/rec_on.h
generated
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include "kernel/environment.h"
|
||||
|
||||
namespace lean {
|
||||
/** \brief Given an inductive datatype \c n in \c env, returns
|
||||
the declaration for <tt>n.rec_on</tt>.
|
||||
|
||||
\remark <tt>rec_on</tt> is based on <tt>n.rec</tt>
|
||||
|
||||
\remark Throws an exception if \c n is not an inductive datatype.
|
||||
*/
|
||||
declaration mk_rec_on(environment const & env, name const & n);
|
||||
}
|
||||
1
stage0/src/library/suffixes.h
generated
1
stage0/src/library/suffixes.h
generated
|
|
@ -8,7 +8,6 @@ Author: Leonardo de Moura
|
|||
|
||||
namespace lean {
|
||||
constexpr char const * g_rec = "rec";
|
||||
constexpr char const * g_rec_on = "recOn";
|
||||
constexpr char const * g_brec_on = "brecOn";
|
||||
constexpr char const * g_binduction_on = "binductionOn";
|
||||
constexpr char const * g_cases_on = "casesOn";
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ options get_default_options() {
|
|||
// switch to `true` for ABI-breaking changes affecting meta code
|
||||
opts = opts.update({"interpreter", "prefer_native"}, false);
|
||||
// switch to `true` for changing built-in parsers used in quotations
|
||||
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, true);
|
||||
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, false);
|
||||
// toggling `parseQuotWithCurrentStage` may also require toggling the following option if macros/syntax
|
||||
// with custom precheck hooks were affected
|
||||
opts = opts.update({"quotPrecheck"}, true);
|
||||
|
|
|
|||
8
stage0/src/util/ffi.cpp
generated
8
stage0/src/util/ffi.cpp
generated
|
|
@ -13,7 +13,15 @@ extern "C" object * lean_get_leanc_extra_flags(object *) {
|
|||
return lean_mk_string("@LEANC_EXTRA_FLAGS@");
|
||||
}
|
||||
|
||||
extern "C" object * lean_get_leanc_internal_flags(object *) {
|
||||
return lean_mk_string("@LEANC_INTERNAL_FLAGS@");
|
||||
}
|
||||
|
||||
extern "C" object * lean_get_linker_flags(uint8 link_static) {
|
||||
return lean_mk_string(link_static ? "@LEANC_STATIC_LINKER_FLAGS@ @LEAN_EXTRA_LINKER_FLAGS@" : "@LEANC_SHARED_LINKER_FLAGS@ @LEAN_EXTRA_LINKER_FLAGS@");
|
||||
}
|
||||
|
||||
extern "C" object * lean_get_internal_linker_flags(object *) {
|
||||
return lean_mk_string("@LEANC_INTERNAL_LINKER_FLAGS@");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Tactics.c
generated
2
stage0/stdlib/Init/Tactics.c
generated
|
|
@ -6410,7 +6410,7 @@ static lean_object* _init_l_Lean_Parser_Tactic___aux__Init__Tactics______macroRu
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("\"The rfl tactic failed. Possible reasons:\n- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).\n- The arguments of the relation are not equal.\nTry using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.\"", 263, 263);
|
||||
x_1 = lean_mk_string_unchecked("\"The rfl tactic failed. Possible reasons:\n- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).\n- The arguments of the relation are not equal.\nTry using the reflexivity lemma for your relation explicitly, e.g. `exact Eq.refl _` or\n`exact HEq.rfl` etc.\"", 288, 288);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
338
stage0/stdlib/Lake/Build/Module.c
generated
338
stage0/stdlib/Lake/Build/Module.c
generated
|
|
@ -173,7 +173,7 @@ LEAN_EXPORT lean_object* l_Lake_Module_cacheOutputHashes(lean_object*, lean_obje
|
|||
LEAN_EXPORT lean_object* l_Lake_Module_dynlibFacetConfig;
|
||||
LEAN_EXPORT lean_object* l_Lean_HashSetImp_contains___at_Lake_Module_recBuildDeps___spec__4___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_Module_recBuildLeanBcToO___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_initModuleFacetConfigs___closed__12;
|
||||
lean_object* l_Lake_Workspace_findModule_x3f___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_Module_recBuildDynlib___lambda__4(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -13121,48 +13121,48 @@ lean_ctor_set(x_3, 1, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_10;
|
||||
x_10 = !lean_is_exclusive(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; lean_object* x_24; lean_object* x_25; size_t x_26; lean_object* x_27; lean_object* x_28;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; lean_object* x_24; size_t x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_11 = lean_ctor_get(x_9, 0);
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
x_13 = l_Lake_BuildTrace_mix(x_1, x_2);
|
||||
x_14 = l_Lake_BuildTrace_mix(x_3, x_13);
|
||||
x_15 = lean_ctor_get(x_4, 1);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
x_17 = lean_ctor_get(x_16, 8);
|
||||
x_18 = lean_array_get_size(x_11);
|
||||
x_19 = lean_unsigned_to_nat(0u);
|
||||
x_20 = l_Array_filterMapM___at_Lake_Module_recBuildDeps___spec__12(x_11, x_19, x_18);
|
||||
x_21 = l_Array_append___rarg(x_5, x_20);
|
||||
lean_dec(x_20);
|
||||
x_22 = lean_array_to_list(lean_box(0), x_21);
|
||||
x_23 = lean_usize_of_nat(x_18);
|
||||
lean_dec(x_18);
|
||||
x_24 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_23, x_6, x_11);
|
||||
x_25 = lean_array_get_size(x_7);
|
||||
x_26 = lean_usize_of_nat(x_25);
|
||||
lean_dec(x_25);
|
||||
x_27 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_26, x_6, x_7);
|
||||
x_28 = l_Array_append___rarg(x_24, x_27);
|
||||
lean_dec(x_27);
|
||||
lean_ctor_set(x_9, 1, x_28);
|
||||
lean_ctor_set(x_9, 0, x_22);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
x_14 = lean_ctor_get(x_3, 1);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
x_16 = lean_ctor_get(x_15, 8);
|
||||
x_17 = lean_array_get_size(x_11);
|
||||
x_18 = lean_unsigned_to_nat(0u);
|
||||
x_19 = l_Array_filterMapM___at_Lake_Module_recBuildDeps___spec__12(x_11, x_18, x_17);
|
||||
x_20 = l_Array_append___rarg(x_4, x_19);
|
||||
lean_dec(x_19);
|
||||
x_21 = lean_array_to_list(lean_box(0), x_20);
|
||||
x_22 = lean_usize_of_nat(x_17);
|
||||
lean_dec(x_17);
|
||||
x_23 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_22, x_5, x_11);
|
||||
x_24 = lean_array_get_size(x_6);
|
||||
x_25 = lean_usize_of_nat(x_24);
|
||||
lean_dec(x_24);
|
||||
x_26 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_25, x_5, x_6);
|
||||
x_27 = l_Array_append___rarg(x_23, x_26);
|
||||
lean_dec(x_26);
|
||||
lean_ctor_set(x_9, 1, x_27);
|
||||
lean_ctor_set(x_9, 0, x_21);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_8, 2);
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
x_31 = lean_ctor_get(x_30, 8);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_7, 2);
|
||||
x_29 = lean_ctor_get(x_28, 1);
|
||||
x_30 = lean_ctor_get(x_29, 8);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = l_Lake_BuildTrace_mix(x_14, x_12);
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = l_Lake_BuildTrace_mix(x_8, x_12);
|
||||
x_32 = l_Lake_BuildTrace_mix(x_13, x_31);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_9);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
|
|
@ -13171,154 +13171,162 @@ return x_33;
|
|||
else
|
||||
{
|
||||
lean_object* x_34; uint8_t x_35;
|
||||
x_34 = lean_ctor_get(x_31, 0);
|
||||
x_34 = lean_ctor_get(x_30, 0);
|
||||
x_35 = lean_unbox(x_34);
|
||||
if (x_35 == 0)
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_36 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_37 = l_Lake_BuildTrace_mix(x_12, x_36);
|
||||
x_38 = l_Lake_BuildTrace_mix(x_14, x_37);
|
||||
x_39 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_9);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
return x_39;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40;
|
||||
lean_dec(x_12);
|
||||
x_38 = l_Lake_BuildTrace_mix(x_8, x_37);
|
||||
x_39 = l_Lake_BuildTrace_mix(x_13, x_38);
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_9);
|
||||
lean_ctor_set(x_40, 1, x_14);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; uint8_t x_42;
|
||||
x_41 = lean_ctor_get(x_17, 0);
|
||||
x_42 = lean_unbox(x_41);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_43 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_44 = l_Lake_BuildTrace_mix(x_12, x_43);
|
||||
x_45 = l_Lake_BuildTrace_mix(x_14, x_44);
|
||||
x_46 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_9);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
return x_46;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47;
|
||||
lean_object* x_41;
|
||||
lean_dec(x_12);
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_9);
|
||||
lean_ctor_set(x_47, 1, x_14);
|
||||
return x_47;
|
||||
lean_dec(x_8);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_9);
|
||||
lean_ctor_set(x_41, 1, x_13);
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; lean_object* x_61; lean_object* x_62; size_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_48 = lean_ctor_get(x_9, 0);
|
||||
x_49 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_object* x_42; uint8_t x_43;
|
||||
x_42 = lean_ctor_get(x_16, 0);
|
||||
x_43 = lean_unbox(x_42);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_44 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_45 = l_Lake_BuildTrace_mix(x_12, x_44);
|
||||
x_46 = l_Lake_BuildTrace_mix(x_8, x_45);
|
||||
x_47 = l_Lake_BuildTrace_mix(x_13, x_46);
|
||||
x_48 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_9);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
return x_48;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_8);
|
||||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_9);
|
||||
lean_ctor_set(x_49, 1, x_13);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; size_t x_61; lean_object* x_62; lean_object* x_63; size_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_50 = lean_ctor_get(x_9, 0);
|
||||
x_51 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_9);
|
||||
x_50 = l_Lake_BuildTrace_mix(x_1, x_2);
|
||||
x_51 = l_Lake_BuildTrace_mix(x_3, x_50);
|
||||
x_52 = lean_ctor_get(x_4, 1);
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
x_54 = lean_ctor_get(x_53, 8);
|
||||
x_55 = lean_array_get_size(x_48);
|
||||
x_56 = lean_unsigned_to_nat(0u);
|
||||
x_57 = l_Array_filterMapM___at_Lake_Module_recBuildDeps___spec__12(x_48, x_56, x_55);
|
||||
x_58 = l_Array_append___rarg(x_5, x_57);
|
||||
lean_dec(x_57);
|
||||
x_59 = lean_array_to_list(lean_box(0), x_58);
|
||||
x_60 = lean_usize_of_nat(x_55);
|
||||
lean_dec(x_55);
|
||||
x_61 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_60, x_6, x_48);
|
||||
x_62 = lean_array_get_size(x_7);
|
||||
x_63 = lean_usize_of_nat(x_62);
|
||||
lean_dec(x_62);
|
||||
x_64 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_63, x_6, x_7);
|
||||
x_65 = l_Array_append___rarg(x_61, x_64);
|
||||
lean_dec(x_64);
|
||||
x_66 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_59);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
x_52 = l_Lake_BuildTrace_mix(x_1, x_2);
|
||||
x_53 = lean_ctor_get(x_3, 1);
|
||||
x_54 = lean_ctor_get(x_53, 0);
|
||||
x_55 = lean_ctor_get(x_54, 8);
|
||||
x_56 = lean_array_get_size(x_50);
|
||||
x_57 = lean_unsigned_to_nat(0u);
|
||||
x_58 = l_Array_filterMapM___at_Lake_Module_recBuildDeps___spec__12(x_50, x_57, x_56);
|
||||
x_59 = l_Array_append___rarg(x_4, x_58);
|
||||
lean_dec(x_58);
|
||||
x_60 = lean_array_to_list(lean_box(0), x_59);
|
||||
x_61 = lean_usize_of_nat(x_56);
|
||||
lean_dec(x_56);
|
||||
x_62 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_61, x_5, x_50);
|
||||
x_63 = lean_array_get_size(x_6);
|
||||
x_64 = lean_usize_of_nat(x_63);
|
||||
lean_dec(x_63);
|
||||
x_65 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__14(x_64, x_5, x_6);
|
||||
x_66 = l_Array_append___rarg(x_62, x_65);
|
||||
lean_dec(x_65);
|
||||
x_67 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_60);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69;
|
||||
x_67 = lean_ctor_get(x_8, 2);
|
||||
x_68 = lean_ctor_get(x_67, 1);
|
||||
x_69 = lean_ctor_get(x_68, 8);
|
||||
if (lean_obj_tag(x_69) == 0)
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_68 = lean_ctor_get(x_7, 2);
|
||||
x_69 = lean_ctor_get(x_68, 1);
|
||||
x_70 = lean_ctor_get(x_69, 8);
|
||||
if (lean_obj_tag(x_70) == 0)
|
||||
{
|
||||
lean_object* x_70; lean_object* x_71;
|
||||
x_70 = l_Lake_BuildTrace_mix(x_51, x_49);
|
||||
x_71 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_66);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
return x_71;
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73;
|
||||
x_71 = l_Lake_BuildTrace_mix(x_8, x_51);
|
||||
x_72 = l_Lake_BuildTrace_mix(x_52, x_71);
|
||||
x_73 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_67);
|
||||
lean_ctor_set(x_73, 1, x_72);
|
||||
return x_73;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_72; uint8_t x_73;
|
||||
x_72 = lean_ctor_get(x_69, 0);
|
||||
x_73 = lean_unbox(x_72);
|
||||
if (x_73 == 0)
|
||||
lean_object* x_74; uint8_t x_75;
|
||||
x_74 = lean_ctor_get(x_70, 0);
|
||||
x_75 = lean_unbox(x_74);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77;
|
||||
x_74 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_75 = l_Lake_BuildTrace_mix(x_49, x_74);
|
||||
x_76 = l_Lake_BuildTrace_mix(x_51, x_75);
|
||||
x_77 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_77, 0, x_66);
|
||||
lean_ctor_set(x_77, 1, x_76);
|
||||
return x_77;
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_76 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_77 = l_Lake_BuildTrace_mix(x_51, x_76);
|
||||
x_78 = l_Lake_BuildTrace_mix(x_8, x_77);
|
||||
x_79 = l_Lake_BuildTrace_mix(x_52, x_78);
|
||||
x_80 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_80, 0, x_67);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
return x_80;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_78;
|
||||
lean_dec(x_49);
|
||||
x_78 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_78, 0, x_66);
|
||||
lean_ctor_set(x_78, 1, x_51);
|
||||
return x_78;
|
||||
lean_object* x_81;
|
||||
lean_dec(x_51);
|
||||
lean_dec(x_8);
|
||||
x_81 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_67);
|
||||
lean_ctor_set(x_81, 1, x_52);
|
||||
return x_81;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_79; uint8_t x_80;
|
||||
x_79 = lean_ctor_get(x_54, 0);
|
||||
x_80 = lean_unbox(x_79);
|
||||
if (x_80 == 0)
|
||||
lean_object* x_82; uint8_t x_83;
|
||||
x_82 = lean_ctor_get(x_55, 0);
|
||||
x_83 = lean_unbox(x_82);
|
||||
if (x_83 == 0)
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84;
|
||||
x_81 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_82 = l_Lake_BuildTrace_mix(x_49, x_81);
|
||||
x_83 = l_Lake_BuildTrace_mix(x_51, x_82);
|
||||
x_84 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_84, 0, x_66);
|
||||
lean_ctor_set(x_84, 1, x_83);
|
||||
return x_84;
|
||||
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_84 = l_Lake_Module_recBuildDeps___lambda__1___closed__3;
|
||||
x_85 = l_Lake_BuildTrace_mix(x_51, x_84);
|
||||
x_86 = l_Lake_BuildTrace_mix(x_8, x_85);
|
||||
x_87 = l_Lake_BuildTrace_mix(x_52, x_86);
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_67);
|
||||
lean_ctor_set(x_88, 1, x_87);
|
||||
return x_88;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_85;
|
||||
lean_dec(x_49);
|
||||
x_85 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_66);
|
||||
lean_ctor_set(x_85, 1, x_51);
|
||||
return x_85;
|
||||
lean_object* x_89;
|
||||
lean_dec(x_51);
|
||||
lean_dec(x_8);
|
||||
x_89 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_67);
|
||||
lean_ctor_set(x_89, 1, x_52);
|
||||
return x_89;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -13419,13 +13427,13 @@ x_14 = lean_ctor_get(x_10, 1);
|
|||
x_15 = lean_box_usize(x_5);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__1___boxed), 9, 8);
|
||||
lean_closure_set(x_16, 0, x_1);
|
||||
lean_closure_set(x_16, 1, x_14);
|
||||
lean_closure_set(x_16, 2, x_2);
|
||||
lean_closure_set(x_16, 3, x_3);
|
||||
lean_closure_set(x_16, 4, x_4);
|
||||
lean_closure_set(x_16, 5, x_15);
|
||||
lean_closure_set(x_16, 6, x_13);
|
||||
lean_closure_set(x_16, 7, x_6);
|
||||
lean_closure_set(x_16, 1, x_2);
|
||||
lean_closure_set(x_16, 2, x_3);
|
||||
lean_closure_set(x_16, 3, x_4);
|
||||
lean_closure_set(x_16, 4, x_15);
|
||||
lean_closure_set(x_16, 5, x_13);
|
||||
lean_closure_set(x_16, 6, x_6);
|
||||
lean_closure_set(x_16, 7, x_14);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lake_EResult_map___rarg), 2, 1);
|
||||
lean_closure_set(x_17, 0, x_16);
|
||||
x_18 = lean_ctor_get(x_7, 0);
|
||||
|
|
@ -13453,13 +13461,13 @@ lean_dec(x_10);
|
|||
x_27 = lean_box_usize(x_5);
|
||||
x_28 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__1___boxed), 9, 8);
|
||||
lean_closure_set(x_28, 0, x_1);
|
||||
lean_closure_set(x_28, 1, x_26);
|
||||
lean_closure_set(x_28, 2, x_2);
|
||||
lean_closure_set(x_28, 3, x_3);
|
||||
lean_closure_set(x_28, 4, x_4);
|
||||
lean_closure_set(x_28, 5, x_27);
|
||||
lean_closure_set(x_28, 6, x_25);
|
||||
lean_closure_set(x_28, 7, x_6);
|
||||
lean_closure_set(x_28, 1, x_2);
|
||||
lean_closure_set(x_28, 2, x_3);
|
||||
lean_closure_set(x_28, 3, x_4);
|
||||
lean_closure_set(x_28, 4, x_27);
|
||||
lean_closure_set(x_28, 5, x_25);
|
||||
lean_closure_set(x_28, 6, x_6);
|
||||
lean_closure_set(x_28, 7, x_26);
|
||||
x_29 = lean_alloc_closure((void*)(l_Lake_EResult_map___rarg), 2, 1);
|
||||
lean_closure_set(x_29, 0, x_28);
|
||||
x_30 = lean_ctor_get(x_7, 0);
|
||||
|
|
@ -13536,8 +13544,8 @@ lean_inc(x_13);
|
|||
lean_dec(x_1);
|
||||
x_14 = lean_box_usize(x_5);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lake_Module_recBuildDeps___lambda__3___boxed), 9, 7);
|
||||
lean_closure_set(x_15, 0, x_12);
|
||||
lean_closure_set(x_15, 1, x_2);
|
||||
lean_closure_set(x_15, 0, x_2);
|
||||
lean_closure_set(x_15, 1, x_12);
|
||||
lean_closure_set(x_15, 2, x_3);
|
||||
lean_closure_set(x_15, 3, x_4);
|
||||
lean_closure_set(x_15, 4, x_14);
|
||||
|
|
@ -16080,11 +16088,11 @@ LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1___boxed(lean_obj
|
|||
_start:
|
||||
{
|
||||
size_t x_10; lean_object* x_11;
|
||||
x_10 = lean_unbox_usize(x_6);
|
||||
lean_dec(x_6);
|
||||
x_11 = l_Lake_Module_recBuildDeps___lambda__1(x_1, x_2, x_3, x_4, x_5, x_10, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_4);
|
||||
x_10 = lean_unbox_usize(x_5);
|
||||
lean_dec(x_5);
|
||||
x_11 = l_Lake_Module_recBuildDeps___lambda__1(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_3);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
362
stage0/stdlib/Lean/Compiler/FFI.c
generated
362
stage0/stdlib/Lean/Compiler/FFI.c
generated
|
|
@ -13,31 +13,69 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static size_t l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__8;
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getLinkerFlags(lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getLinkerFlags___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_System_FilePath_join(lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getLinkerFlags___closed__2;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__7;
|
||||
lean_object* l_String_trim(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__5;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__1;
|
||||
static lean_object* l_Lean_Compiler_FFI_getLinkerFlags___closed__3;
|
||||
lean_object* lean_get_linker_flags(uint8_t);
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__8;
|
||||
lean_object* lean_get_leanc_extra_flags(lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__5;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___boxed(lean_object*);
|
||||
static size_t l_Lean_Compiler_FFI_getInternalCFlags___closed__8;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__7;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__2;
|
||||
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1;
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getLeancInternalFlags___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getLinkerFlags___closed__1;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__2;
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__5;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getBuiltinInternalLinkerFlags___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalCFlags(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalLinkerFlags___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getLeancExtraFlags___boxed(lean_object*);
|
||||
lean_object* l_String_replace(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getBuiltinLinkerFlags___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalLinkerFlags___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* lean_get_internal_linker_flags(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__4;
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__7;
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__2;
|
||||
lean_object* l_List_foldl___at_Array_appendList___spec__1___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getCFlags(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__6;
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalCFlags___boxed(lean_object*);
|
||||
lean_object* l_List_redLength___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__6;
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__4;
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
lean_object* lean_get_leanc_internal_flags(lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalCFlags___closed__3;
|
||||
static lean_object* l_Lean_Compiler_FFI_getCFlags___closed__3;
|
||||
static lean_object* l_Lean_Compiler_FFI_getLinkerFlags___closed__4;
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__4;
|
||||
lean_object* l_String_splitOn(lean_object*, lean_object*);
|
||||
lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getLeancExtraFlags___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -130,6 +168,156 @@ x_7 = l_List_foldl___at_Array_appendList___spec__1___rarg(x_5, x_6);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getLeancInternalFlags___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_get_leanc_internal_flags(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("ROOT", 4, 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_usize_dec_lt(x_3, x_2);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13;
|
||||
x_6 = lean_array_uget(x_4, x_3);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_array_uset(x_4, x_3, x_7);
|
||||
x_9 = l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1;
|
||||
x_10 = l_String_replace(x_6, x_9, x_1);
|
||||
lean_dec(x_6);
|
||||
x_11 = 1;
|
||||
x_12 = lean_usize_add(x_3, x_11);
|
||||
x_13 = lean_array_uset(x_8, x_3, x_10);
|
||||
x_3 = x_12;
|
||||
x_4 = x_13;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_get_leanc_internal_flags(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__1;
|
||||
x_2 = l_String_trim(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__2;
|
||||
x_2 = l_Lean_Compiler_FFI_getCFlags___closed__7;
|
||||
x_3 = l_String_splitOn(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__3;
|
||||
x_2 = l_List_redLength___rarg(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__4;
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__3;
|
||||
x_2 = l_Lean_Compiler_FFI_getInternalCFlags___closed__5;
|
||||
x_3 = l_List_toArrayAux___rarg(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__6;
|
||||
x_2 = lean_array_get_size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static size_t _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; size_t x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalCFlags___closed__7;
|
||||
x_2 = lean_usize_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalCFlags(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = 0;
|
||||
x_3 = l_Lean_Compiler_FFI_getInternalCFlags___closed__8;
|
||||
x_4 = l_Lean_Compiler_FFI_getInternalCFlags___closed__6;
|
||||
x_5 = l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1(x_1, x_3, x_2, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1(x_1, x_5, x_6, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalCFlags___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_Compiler_FFI_getInternalCFlags(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getBuiltinLinkerFlags___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -203,6 +391,148 @@ x_4 = l_Lean_Compiler_FFI_getLinkerFlags(x_1, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_FFI_0__Lean_Compiler_FFI_getBuiltinInternalLinkerFlags___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_get_internal_linker_flags(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalLinkerFlags___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_usize_dec_lt(x_3, x_2);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13;
|
||||
x_6 = lean_array_uget(x_4, x_3);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_array_uset(x_4, x_3, x_7);
|
||||
x_9 = l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1;
|
||||
x_10 = l_String_replace(x_6, x_9, x_1);
|
||||
lean_dec(x_6);
|
||||
x_11 = 1;
|
||||
x_12 = lean_usize_add(x_3, x_11);
|
||||
x_13 = lean_array_uset(x_8, x_3, x_10);
|
||||
x_3 = x_12;
|
||||
x_4 = x_13;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_get_internal_linker_flags(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__1;
|
||||
x_2 = l_String_trim(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__2;
|
||||
x_2 = l_Lean_Compiler_FFI_getCFlags___closed__7;
|
||||
x_3 = l_String_splitOn(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3;
|
||||
x_2 = l_List_redLength___rarg(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__4;
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3;
|
||||
x_2 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__5;
|
||||
x_3 = l_List_toArrayAux___rarg(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6;
|
||||
x_2 = lean_array_get_size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static size_t _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; size_t x_2;
|
||||
x_1 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__7;
|
||||
x_2 = lean_usize_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
size_t x_2; size_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = 0;
|
||||
x_3 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__8;
|
||||
x_4 = l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6;
|
||||
x_5 = l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalLinkerFlags___spec__1(x_1, x_3, x_2, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalLinkerFlags___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalLinkerFlags___spec__1(x_1, x_5, x_6, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_FFI_getInternalLinkerFlags___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_Compiler_FFI_getInternalLinkerFlags(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Array_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_System_FilePath(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
|
|
@ -232,6 +562,23 @@ l_Lean_Compiler_FFI_getCFlags___closed__7 = _init_l_Lean_Compiler_FFI_getCFlags_
|
|||
lean_mark_persistent(l_Lean_Compiler_FFI_getCFlags___closed__7);
|
||||
l_Lean_Compiler_FFI_getCFlags___closed__8 = _init_l_Lean_Compiler_FFI_getCFlags___closed__8();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getCFlags___closed__8);
|
||||
l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1();
|
||||
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Compiler_FFI_getInternalCFlags___spec__1___closed__1);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__1 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__1();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__1);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__2 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__2();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__2);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__3 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__3();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__3);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__4 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__4();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__4);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__5 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__5();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__5);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__6 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__6();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__6);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__7 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__7();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalCFlags___closed__7);
|
||||
l_Lean_Compiler_FFI_getInternalCFlags___closed__8 = _init_l_Lean_Compiler_FFI_getInternalCFlags___closed__8();
|
||||
l_Lean_Compiler_FFI_getLinkerFlags___closed__1 = _init_l_Lean_Compiler_FFI_getLinkerFlags___closed__1();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getLinkerFlags___closed__1);
|
||||
l_Lean_Compiler_FFI_getLinkerFlags___closed__2 = _init_l_Lean_Compiler_FFI_getLinkerFlags___closed__2();
|
||||
|
|
@ -240,6 +587,21 @@ l_Lean_Compiler_FFI_getLinkerFlags___closed__3 = _init_l_Lean_Compiler_FFI_getLi
|
|||
lean_mark_persistent(l_Lean_Compiler_FFI_getLinkerFlags___closed__3);
|
||||
l_Lean_Compiler_FFI_getLinkerFlags___closed__4 = _init_l_Lean_Compiler_FFI_getLinkerFlags___closed__4();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getLinkerFlags___closed__4);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__1 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__1();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__1);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__2 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__2();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__2);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__3);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__4 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__4();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__4);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__5 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__5();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__5);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__6);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__7 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__7();
|
||||
lean_mark_persistent(l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__7);
|
||||
l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__8 = _init_l_Lean_Compiler_FFI_getInternalLinkerFlags___closed__8();
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Inductive.c
generated
6
stage0/stdlib/Lean/Elab/Inductive.c
generated
|
|
@ -713,7 +713,6 @@ LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_In
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyDerivingHandlers___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_addAutoBoundImplicits_x27___spec__2___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Command_accLevel_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkTypeFor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_checkNumParams___spec__1___closed__2;
|
||||
|
|
@ -940,6 +939,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_
|
|||
static lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__1;
|
||||
static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___rarg___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_collectUniverses_go___spec__2___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_mkRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_checkParamOccs___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Inductive_0__Lean_Elab_Command_fixedIndicesToParams___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors_checkParamOccs___spec__1___closed__4;
|
||||
|
|
@ -21776,8 +21776,10 @@ lean_inc(x_19);
|
|||
lean_dec(x_18);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_19);
|
||||
x_20 = l_Lean_mkRecOn(x_19, x_11, x_12, x_13, x_14, x_15);
|
||||
x_20 = l_mkRecOn(x_19, x_11, x_12, x_13, x_14, x_15);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
if (x_3 == 0)
|
||||
|
|
|
|||
16
stage0/stdlib/Lean/Elab/Structure.c
generated
16
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -689,6 +689,7 @@ lean_object* l_Lean_Elab_Term_addTermInfo_x27(lean_object*, lean_object*, lean_o
|
|||
lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParam___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabStructure___lambda__2___boxed(lean_object**);
|
||||
lean_object* l_Lean_setReducibilityStatus___at_mkRecOn___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_failed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -807,7 +808,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Stru
|
|||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyDefaultValue_x3f_go_x3f___closed__2;
|
||||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_13419____closed__3;
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_go___rarg___closed__5;
|
||||
lean_object* l_Lean_mkRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_13419____closed__2;
|
||||
|
|
@ -1012,7 +1012,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Stru
|
|||
lean_object* l_Lean_MessageData_ofName(lean_object*);
|
||||
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Elab_Modifiers_isPartial(lean_object*);
|
||||
lean_object* l_Lean_setReducibilityStatus___at_Lean_mkRecOn___spec__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_mkRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_copyFields_copy___rarg___closed__7;
|
||||
static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getFieldType___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -25640,8 +25640,10 @@ x_17 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions__
|
|||
x_18 = l_Lean_Environment_contains(x_12, x_17);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_1);
|
||||
x_19 = l_Lean_mkRecOn(x_1, x_4, x_5, x_6, x_7, x_11);
|
||||
x_19 = l_mkRecOn(x_1, x_4, x_5, x_6, x_7, x_11);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
if (x_14 == 0)
|
||||
|
|
@ -27555,7 +27557,7 @@ if (x_52 == 0)
|
|||
{
|
||||
uint8_t x_53; lean_object* x_54;
|
||||
x_53 = 0;
|
||||
x_54 = l_Lean_setReducibilityStatus___at_Lean_mkRecOn___spec__4(x_41, x_53, x_13, x_14, x_15, x_16, x_51);
|
||||
x_54 = l_Lean_setReducibilityStatus___at_mkRecOn___spec__3(x_41, x_53, x_13, x_14, x_15, x_16, x_51);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -27626,7 +27628,7 @@ if (x_68 == 0)
|
|||
{
|
||||
uint8_t x_69; lean_object* x_70;
|
||||
x_69 = 0;
|
||||
x_70 = l_Lean_setReducibilityStatus___at_Lean_mkRecOn___spec__4(x_41, x_69, x_13, x_14, x_15, x_16, x_67);
|
||||
x_70 = l_Lean_setReducibilityStatus___at_mkRecOn___spec__3(x_41, x_69, x_13, x_14, x_15, x_16, x_67);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -27767,7 +27769,7 @@ if (x_101 == 0)
|
|||
{
|
||||
uint8_t x_102; lean_object* x_103;
|
||||
x_102 = 0;
|
||||
x_103 = l_Lean_setReducibilityStatus___at_Lean_mkRecOn___spec__4(x_89, x_102, x_13, x_14, x_15, x_16, x_100);
|
||||
x_103 = l_Lean_setReducibilityStatus___at_mkRecOn___spec__3(x_89, x_102, x_13, x_14, x_15, x_16, x_100);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
@ -27840,7 +27842,7 @@ if (x_117 == 0)
|
|||
{
|
||||
uint8_t x_118; lean_object* x_119;
|
||||
x_118 = 0;
|
||||
x_119 = l_Lean_setReducibilityStatus___at_Lean_mkRecOn___spec__4(x_89, x_118, x_13, x_14, x_15, x_16, x_116);
|
||||
x_119 = l_Lean_setReducibilityStatus___at_mkRecOn___spec__3(x_89, x_118, x_13, x_14, x_15, x_16, x_116);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
|
|
|
|||
1187
stage0/stdlib/Lean/Meta/Constructions.c
generated
1187
stage0/stdlib/Lean/Meta/Constructions.c
generated
File diff suppressed because it is too large
Load diff
1832
stage0/stdlib/Lean/Meta/Constructions/RecOn.c
generated
Normal file
1832
stage0/stdlib/Lean/Meta/Constructions/RecOn.c
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue