chore: update stage0
This commit is contained in:
parent
74e7886ce7
commit
71cfbb26de
49 changed files with 67901 additions and 18971 deletions
|
|
@ -6,7 +6,7 @@ options get_default_options() {
|
|||
// see https://lean-lang.org/lean4/doc/dev/bootstrap.html#further-bootstrapping-complications
|
||||
#if LEAN_IS_STAGE0 == 1
|
||||
// switch to `true` for ABI-breaking changes affecting meta code
|
||||
opts = opts.update({"interpreter", "prefer_native"}, true);
|
||||
opts = opts.update({"interpreter", "prefer_native"}, false);
|
||||
// switch to `true` for changing built-in parsers used in quotations
|
||||
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, false);
|
||||
// toggling `parseQuotWithCurrentStage` may also require toggling the following option if macros/syntax
|
||||
|
|
|
|||
6
stage0/stdlib/Init/Data.c
generated
6
stage0/stdlib/Init/Data.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Data
|
||||
// Imports: Init.Data.Basic Init.Data.Nat Init.Data.Bool Init.Data.BitVec Init.Data.Cast Init.Data.Char Init.Data.String Init.Data.List Init.Data.Int Init.Data.Array Init.Data.ByteArray Init.Data.FloatArray Init.Data.Fin Init.Data.UInt Init.Data.Float Init.Data.Option Init.Data.Ord Init.Data.Random Init.Data.ToString Init.Data.Range Init.Data.Hashable Init.Data.OfScientific Init.Data.Format Init.Data.Stream Init.Data.Prod Init.Data.AC Init.Data.Queue Init.Data.Channel Init.Data.Cast
|
||||
// Imports: Init.Data.Basic Init.Data.Nat Init.Data.Bool Init.Data.BitVec Init.Data.Cast Init.Data.Char Init.Data.String Init.Data.List Init.Data.Int Init.Data.Array Init.Data.ByteArray Init.Data.FloatArray Init.Data.Fin Init.Data.UInt Init.Data.Float Init.Data.Option Init.Data.Ord Init.Data.Random Init.Data.ToString Init.Data.Range Init.Data.Hashable Init.Data.OfScientific Init.Data.Format Init.Data.Stream Init.Data.Prod Init.Data.AC Init.Data.Queue Init.Data.Channel Init.Data.Cast Init.Data.Sum
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -42,6 +42,7 @@ lean_object* initialize_Init_Data_AC(uint8_t builtin, lean_object*);
|
|||
lean_object* initialize_Init_Data_Queue(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Channel(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Cast(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Sum(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Init_Data(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -134,6 +135,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Init_Data_Cast(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Sum(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
22
stage0/stdlib/Init/Data/BitVec/Basic.c
generated
22
stage0/stdlib/Init/Data/BitVec/Basic.c
generated
|
|
@ -58,6 +58,7 @@ static lean_object* l_Std_BitVec___aux__Init__Data__BitVec__Basic______macroRule
|
|||
LEAN_EXPORT uint8_t l_Std_BitVec_instDecidableLeBitVecInstLEBitVec___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Std_BitVec_term_____x23_______closed__6;
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_extractLsb___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_decEq___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_shiftLeft___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_srem(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_BitVec_nil___closed__1;
|
||||
|
|
@ -73,6 +74,7 @@ LEAN_EXPORT lean_object* l_Std_BitVec_toHex(lean_object*, lean_object*);
|
|||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_extractLsb_x27___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_BitVec___aux__Init__Data__BitVec__Basic______macroRules__Std__BitVec__term_____x23______1___closed__16;
|
||||
LEAN_EXPORT uint8_t l_Std_BitVec_decEq___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_allOnes(lean_object*);
|
||||
static lean_object* l_Std_BitVec_instHShiftRightBitVecNat___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_cast___rarg(lean_object*);
|
||||
|
|
@ -86,6 +88,7 @@ LEAN_EXPORT uint8_t l_Std_BitVec_ule___rarg(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Std_BitVec_instNatCastBitVec(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_zero___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instHShiftLeftBitVec___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_decEq___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_extractLsb(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instAddBitVec(lean_object*);
|
||||
|
|
@ -123,6 +126,7 @@ LEAN_EXPORT lean_object* l_Std_BitVec_toInt___boxed(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Std_BitVec_zeroExtend_x27___rarg(lean_object*);
|
||||
static lean_object* l_Std_BitVec___aux__Init__Data__BitVec__Basic______macroRules__Std__BitVec__term_____x23______1___closed__4;
|
||||
static lean_object* l_Std_BitVec_term_____x23_______closed__8;
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_decEq(lean_object*);
|
||||
lean_object* lean_string_mk(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_ult___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instComplementBitVec(lean_object*);
|
||||
|
|
@ -136,7 +140,6 @@ LEAN_EXPORT lean_object* l_Std_BitVec_instDivBitVec(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Std_BitVec_ushiftRight___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_smtUDiv___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_umod(lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instDecidableLtBitVecInstLTBitVec(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_sshiftRight___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -234,7 +237,6 @@ static lean_object* l_Std_BitVec_term_____x23_______closed__10;
|
|||
uint8_t lean_int_dec_lt(lean_object*, lean_object*);
|
||||
static lean_object* l_Std_BitVec___aux__Init__Data__BitVec__Basic______macroRules__Std__BitVec__term_____x23______1___closed__10;
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_cons___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_concat(lean_object*);
|
||||
|
|
@ -246,7 +248,6 @@ LEAN_EXPORT lean_object* l_Std_BitVec_cons(lean_object*, uint8_t, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Std_BitVec_and(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_sub(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instXorBitVec___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_mul(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_extractLsb_x27___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_and___rarg___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -271,7 +272,6 @@ LEAN_EXPORT lean_object* l_Std_BitVec_concat___boxed(lean_object*);
|
|||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
static lean_object* l_Std_BitVec_term_____x23_______closed__13;
|
||||
static lean_object* l_Std_BitVec_ofBool___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23_(lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Std_BitVec_ofInt___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instAndOpBitVec___boxed(lean_object*);
|
||||
|
|
@ -297,7 +297,7 @@ lean_object* l_Nat_repr(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Std_BitVec_truncate(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_instDecidableLeBitVecInstLEBitVec___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_mul___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____rarg(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT uint8_t l_Std_BitVec_decEq___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3;
|
||||
|
|
@ -305,30 +305,30 @@ x_3 = lean_nat_dec_eq(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_decEq(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____rarg___boxed), 2, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l_Std_BitVec_decEq___rarg___boxed), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_decEq___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____rarg(x_1, x_2);
|
||||
x_3 = l_Std_BitVec_decEq___rarg(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23____boxed(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Std_BitVec_decEq___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l___private_Init_Data_BitVec_Basic_0__Std_decEqBitVec____x40_Init_Data_BitVec_Basic___hyg_23_(x_1);
|
||||
x_2 = l_Std_BitVec_decEq(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
|
|||
122
stage0/stdlib/Init/Data/List/BasicAux.c
generated
122
stage0/stdlib/Init/Data/List/BasicAux.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Data.List.BasicAux
|
||||
// Imports: Init.Data.Nat.Linear Init.Data.List.Basic Init.Util
|
||||
// Imports: Init.Data.Nat.Linear Init.Data.Array.Basic Init.Data.List.Basic Init.Util
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -27,11 +27,13 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
|||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__14;
|
||||
LEAN_EXPORT lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__tacticDecreasing__trivial__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__15;
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go(lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__49;
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__31;
|
||||
static lean_object* l_List_get_x21___rarg___closed__4;
|
||||
LEAN_EXPORT lean_object* l_List_getLastD___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_getLast_x3f(lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_List_rotateRight___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__29;
|
||||
|
|
@ -49,11 +51,13 @@ static lean_object* l_List_tacticSizeOf__list__dec___closed__3;
|
|||
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__55;
|
||||
LEAN_EXPORT lean_object* l_List_partitionM___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_head_x21(lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__5;
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__4;
|
||||
LEAN_EXPORT lean_object* l_List_head_x21___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_BasicAux_0__List_mapMonoMImp___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__24;
|
||||
LEAN_EXPORT lean_object* l_List_head___rarg___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -84,6 +88,7 @@ static lean_object* l_List_tacticSizeOf__list__dec___closed__4;
|
|||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__42;
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_BasicAux_0__List_mapMonoMImp___at_List_mapMono___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_getD___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__46;
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_BasicAux_0__List_get_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -111,6 +116,7 @@ LEAN_EXPORT lean_object* l_List_tail_x21___rarg(lean_object*);
|
|||
LEAN_EXPORT lean_object* l___private_Init_Data_List_BasicAux_0__List_get_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_head_x21___rarg___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__38;
|
||||
LEAN_EXPORT lean_object* l_List_partitionM(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_getLastD(lean_object*);
|
||||
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_tail_x3f___rarg(lean_object*);
|
||||
|
|
@ -134,6 +140,7 @@ static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__Li
|
|||
LEAN_EXPORT lean_object* l___private_Init_Data_List_BasicAux_0__List_mapMonoMImp___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_tacticSizeOf__list__dec___closed__6;
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
static lean_object* l_List_get_x21___rarg___closed__2;
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__41;
|
||||
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -163,6 +170,7 @@ static lean_object* l_List_head_x21___rarg___closed__3;
|
|||
static lean_object* l_List_head_x21___rarg___closed__1;
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__53;
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_BasicAux_0__List_get_match__1_splitter(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__19;
|
||||
static lean_object* l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__2;
|
||||
static lean_object* l_List_head_x21___rarg___closed__2;
|
||||
|
|
@ -210,7 +218,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_List_get_x21___rarg___closed__1;
|
||||
x_2 = l_List_get_x21___rarg___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(20u);
|
||||
x_3 = lean_unsigned_to_nat(21u);
|
||||
x_4 = lean_unsigned_to_nat(18u);
|
||||
x_5 = l_List_get_x21___rarg___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -388,7 +396,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_List_get_x21___rarg___closed__1;
|
||||
x_2 = l_List_head_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_unsigned_to_nat(32u);
|
||||
x_4 = lean_unsigned_to_nat(12u);
|
||||
x_5 = l_List_head_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -561,7 +569,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_List_get_x21___rarg___closed__1;
|
||||
x_2 = l_List_tail_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_unsigned_to_nat(47u);
|
||||
x_4 = lean_unsigned_to_nat(13u);
|
||||
x_5 = l_List_head_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -733,7 +741,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_List_get_x21___rarg___closed__1;
|
||||
x_2 = l_List_getLast_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(63u);
|
||||
x_3 = lean_unsigned_to_nat(64u);
|
||||
x_4 = lean_unsigned_to_nat(13u);
|
||||
x_5 = l_List_head_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -2178,7 +2186,108 @@ x_2 = lean_alloc_closure((void*)(l_List_mapMono___rarg), 2, 0);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7) {
|
||||
_start:
|
||||
{
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_array_push(x_1, x_2);
|
||||
x_9 = l_List_partitionM_go___rarg(x_3, x_4, x_5, x_6, x_8);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11;
|
||||
x_10 = lean_array_push(x_6, x_2);
|
||||
x_11 = l_List_partitionM_go___rarg(x_3, x_4, x_5, x_10, x_1);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_6);
|
||||
x_8 = lean_array_to_list(lean_box(0), x_4);
|
||||
x_9 = lean_array_to_list(lean_box(0), x_5);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_8);
|
||||
lean_ctor_set(x_10, 1, x_9);
|
||||
x_11 = lean_apply_2(x_7, lean_box(0), x_10);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_12 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_3);
|
||||
x_14 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_12);
|
||||
x_15 = lean_apply_1(x_2, x_12);
|
||||
x_16 = lean_alloc_closure((void*)(l_List_partitionM_go___rarg___lambda__1___boxed), 7, 6);
|
||||
lean_closure_set(x_16, 0, x_5);
|
||||
lean_closure_set(x_16, 1, x_12);
|
||||
lean_closure_set(x_16, 2, x_1);
|
||||
lean_closure_set(x_16, 3, x_2);
|
||||
lean_closure_set(x_16, 4, x_13);
|
||||
lean_closure_set(x_16, 5, x_4);
|
||||
x_17 = lean_apply_4(x_14, lean_box(0), lean_box(0), x_15, x_16);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_List_partitionM_go___rarg), 5, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_partitionM_go___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
x_8 = lean_unbox(x_7);
|
||||
lean_dec(x_7);
|
||||
x_9 = l_List_partitionM_go___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_partitionM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = l_List___aux__Init__Data__List__BasicAux______macroRules__List__tacticSizeOf__list__dec__1___closed__48;
|
||||
x_5 = l_List_partitionM_go___rarg(x_1, x_2, x_3, x_4, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_partitionM(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_List_partitionM___rarg), 3, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Nat_Linear(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Array_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_List_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Util(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
|
|
@ -2189,6 +2298,9 @@ _G_initialized = true;
|
|||
res = initialize_Init_Data_Nat_Linear(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Array_Basic(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_List_Basic(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
98
stage0/stdlib/Init/Data/List/Lemmas.c
generated
98
stage0/stdlib/Init/Data/List/Lemmas.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Data.List.Lemmas
|
||||
// Imports: Init.Data.List.BasicAux Init.Data.List.Control Init.PropLemmas Init.Control.Lawful Init.Hints
|
||||
// Imports: Init.Data.List.BasicAux Init.Data.List.Control Init.Data.Nat.Lemmas Init.PropLemmas Init.Control.Lawful Init.Hints
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -58,6 +58,52 @@ LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_mapM_x27_matc
|
|||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_zipWith__get_x3f_match__1_splitter(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapM_x27___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_getLast_match__1_splitter(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8;
|
||||
x_5 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_nat_dec_eq(x_2, x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
lean_dec(x_3);
|
||||
x_9 = lean_unsigned_to_nat(1u);
|
||||
x_10 = lean_nat_sub(x_2, x_9);
|
||||
x_11 = lean_apply_4(x_4, x_5, x_6, x_10, lean_box(0));
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12;
|
||||
lean_dec(x_4);
|
||||
x_12 = lean_apply_3(x_3, x_5, x_6, lean_box(0));
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg___boxed), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_join_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -201,52 +247,6 @@ x_3 = lean_alloc_closure((void*)(l___private_Init_Data_List_Lemmas_0__List_getLa
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8;
|
||||
x_5 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_nat_dec_eq(x_2, x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
lean_dec(x_3);
|
||||
x_9 = lean_unsigned_to_nat(1u);
|
||||
x_10 = lean_nat_sub(x_2, x_9);
|
||||
x_11 = lean_apply_4(x_4, x_5, x_6, x_10, lean_box(0));
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12;
|
||||
lean_dec(x_4);
|
||||
x_12 = lean_apply_3(x_3, x_5, x_6, lean_box(0));
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg___boxed), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l___private_Init_Data_List_Lemmas_0__List_get_match__1_splitter___rarg(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_List_Lemmas_0__List_isEmpty_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -793,6 +793,7 @@ return x_4;
|
|||
}
|
||||
lean_object* initialize_Init_Data_List_BasicAux(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_List_Control(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Nat_Lemmas(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_PropLemmas(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Control_Lawful(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Hints(uint8_t builtin, lean_object*);
|
||||
|
|
@ -807,6 +808,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Init_Data_List_Control(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Nat_Lemmas(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_PropLemmas(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
8
stage0/stdlib/Init/Data/String/Extra.c
generated
8
stage0/stdlib/Init/Data/String/Extra.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Data.String.Extra
|
||||
// Imports: Init.Control.Except Init.Data.ByteArray Init.SimpLemmas Init.Data.Nat.Linear Init.Util Init.WFTactics
|
||||
// Imports: Init.Control.Except Init.Data.ByteArray Init.SimpLemmas Init.Util Init.WFTactics
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -116,7 +116,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_String_toNat_x21___closed__1;
|
||||
x_2 = l_String_toNat_x21___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(23u);
|
||||
x_3 = lean_unsigned_to_nat(22u);
|
||||
x_4 = lean_unsigned_to_nat(4u);
|
||||
x_5 = l_String_toNat_x21___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -673,7 +673,6 @@ return x_2;
|
|||
lean_object* initialize_Init_Control_Except(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_ByteArray(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_SimpLemmas(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Nat_Linear(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Util(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_WFTactics(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
|
|
@ -690,9 +689,6 @@ lean_dec_ref(res);
|
|||
res = initialize_Init_SimpLemmas(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Nat_Linear(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Util(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
348
stage0/stdlib/Init/Data/Sum.c
generated
Normal file
348
stage0/stdlib/Init/Data/Sum.c
generated
Normal file
|
|
@ -0,0 +1,348 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Data.Sum
|
||||
// Imports: Init.Core
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Sum_getRight_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241____rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_getRight_x3f___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_getLeft_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_getRight_x3f___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_getLeft_x3f___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_instBEqSum___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_getLeft_x3f___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Sum_instBEqSum(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_dec(x_2);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_4);
|
||||
x_7 = lean_apply_2(x_1, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_8 = 0;
|
||||
x_9 = lean_box(x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_10 = 0;
|
||||
x_11 = lean_box(x_10);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_12 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_3);
|
||||
x_13 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_apply_2(x_2, x_12, x_13);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4_(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____rarg), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_dec(x_2);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_4);
|
||||
x_7 = lean_apply_2(x_1, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_8 = 0;
|
||||
x_9 = lean_box(x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_10 = 0;
|
||||
x_11 = lean_box(x_10);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_12 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_3);
|
||||
x_13 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_apply_2(x_2, x_12, x_13);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg(x_1, x_2, x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Sum_instDecidableEqSum___rarg), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_dec(x_2);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_4);
|
||||
x_7 = lean_apply_2(x_1, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_8 = 0;
|
||||
x_9 = lean_box(x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_10 = 0;
|
||||
x_11 = lean_box(x_10);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_12 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_3);
|
||||
x_13 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_apply_2(x_2, x_12, x_13);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241_(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241____rarg), 4, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_instBEqSum___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241____rarg), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_instBEqSum(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Sum_instBEqSum___rarg), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_getLeft_x3f___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_box(0);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_getLeft_x3f(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Sum_getLeft_x3f___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_getLeft_x3f___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Sum_getLeft_x3f___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_getRight_x3f___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_box(0);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
x_4 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_getRight_x3f(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Sum_getRight_x3f___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Sum_getRight_x3f___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Sum_getRight_x3f___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_Core(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Init_Data_Sum(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init_Core(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
3118
stage0/stdlib/Init/Meta.c
generated
3118
stage0/stdlib/Init/Meta.c
generated
File diff suppressed because it is too large
Load diff
10
stage0/stdlib/Init/Omega/Int.c
generated
10
stage0/stdlib/Init/Omega/Int.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.Omega.Int
|
||||
// Imports: Init.Data.Int.Order
|
||||
// Imports: Init.Data.Int.Order Init.Data.Int.DivModLemmas Init.Data.Nat.Lemmas
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -75,6 +75,8 @@ return x_4;
|
|||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Int_Order(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Int_DivModLemmas(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Nat_Lemmas(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Init_Omega_Int(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -83,6 +85,12 @@ _G_initialized = true;
|
|||
res = initialize_Init_Data_Int_Order(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Int_DivModLemmas(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Nat_Lemmas(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l___private_Init_Omega_Int_0__Int_neg_match__1_splitter___rarg___closed__1 = _init_l___private_Init_Omega_Int_0__Int_neg_match__1_splitter___rarg___closed__1();
|
||||
lean_mark_persistent(l___private_Init_Omega_Int_0__Int_neg_match__1_splitter___rarg___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
778
stage0/stdlib/Init/System/IO.c
generated
778
stage0/stdlib/Init/System/IO.c
generated
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Init/System/Uri.c
generated
6
stage0/stdlib/Init/System/Uri.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init.System.Uri
|
||||
// Imports: Init.Data.String.Extra Init.System.FilePath
|
||||
// Imports: Init.Data.String.Extra Init.Data.Nat.Linear Init.System.FilePath
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -1703,6 +1703,7 @@ return x_3;
|
|||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_String_Extra(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Nat_Linear(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_System_FilePath(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Init_System_Uri(uint8_t builtin, lean_object* w) {
|
||||
|
|
@ -1712,6 +1713,9 @@ _G_initialized = true;
|
|||
res = initialize_Init_Data_String_Extra(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Nat_Linear(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_System_FilePath(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
1082
stage0/stdlib/Init/Tactics.c
generated
1082
stage0/stdlib/Init/Tactics.c
generated
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Lean.c
generated
6
stage0/stdlib/Lean.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean
|
||||
// Imports: Init Lean.Data Lean.Compiler Lean.Environment Lean.Modifiers Lean.ProjFns Lean.Runtime Lean.ResolveName Lean.Attributes Lean.Parser Lean.ReducibilityAttrs Lean.Elab Lean.Class Lean.LocalContext Lean.MetavarContext Lean.AuxRecursor Lean.Meta Lean.Util Lean.Eval Lean.Structure Lean.PrettyPrinter Lean.CoreM Lean.InternalExceptionId Lean.Server Lean.ScopedEnvExtension Lean.DocString Lean.DeclarationRange Lean.LazyInitExtension Lean.LoadDynlib Lean.Widget Lean.Log Lean.Linter Lean.SubExpr
|
||||
// Imports: Init Lean.Data Lean.Compiler Lean.Environment Lean.Modifiers Lean.ProjFns Lean.Runtime Lean.ResolveName Lean.Attributes Lean.Parser Lean.ReducibilityAttrs Lean.Elab Lean.Class Lean.LocalContext Lean.MetavarContext Lean.AuxRecursor Lean.Meta Lean.Util Lean.Eval Lean.Structure Lean.PrettyPrinter Lean.CoreM Lean.InternalExceptionId Lean.Server Lean.ScopedEnvExtension Lean.DocString Lean.DeclarationRange Lean.LazyInitExtension Lean.LoadDynlib Lean.Widget Lean.Log Lean.Linter Lean.SubExpr Lean.LabelAttribute
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -46,6 +46,7 @@ lean_object* initialize_Lean_Widget(uint8_t builtin, lean_object*);
|
|||
lean_object* initialize_Lean_Log(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Linter(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_SubExpr(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_LabelAttribute(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -150,6 +151,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_SubExpr(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_LabelAttribute(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
2
stage0/stdlib/Lean/Compiler/LCNF/JoinPoints.c
generated
2
stage0/stdlib/Lean/Compiler/LCNF/JoinPoints.c
generated
|
|
@ -14189,7 +14189,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_Compiler_LCNF_JoinPointCommonArgs_isInJpScope___closed__1;
|
||||
x_2 = l_Lean_Compiler_LCNF_JoinPointCommonArgs_isInJpScope___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(375u);
|
||||
x_3 = lean_unsigned_to_nat(377u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_Compiler_LCNF_JoinPointContextExtender_replaceFVar___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Data/KVMap.c
generated
4
stage0/stdlib/Lean/Data/KVMap.c
generated
|
|
@ -178,7 +178,6 @@ static lean_object* l_List_repr___at___private_Lean_Data_KVMap_0__Lean_reprKVMap
|
|||
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueInt___lambda__2(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_KVMap_erase(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_DataValue_sameCtor___boxed(lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_KVMap_get___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_abs(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_KVMap_instValueDataValue;
|
||||
|
|
@ -244,6 +243,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_KVMap_getName___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_KVMap_get___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_KVMap_instValueSyntax___closed__3;
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Prod_repr___at___private_Lean_Data_KVMap_0__Lean_reprKVMap____x40_Lean_Data_KVMap___hyg_921____spec__3___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_instCoeIntDataValue(lean_object*);
|
||||
|
|
@ -1078,7 +1078,7 @@ lean_inc(x_81);
|
|||
lean_dec(x_1);
|
||||
x_82 = lean_unsigned_to_nat(1024u);
|
||||
x_83 = lean_nat_dec_le(x_82, x_2);
|
||||
x_84 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_81, x_82);
|
||||
x_84 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_81, x_82);
|
||||
x_85 = l___private_Lean_Data_KVMap_0__Lean_reprDataValue____x40_Lean_Data_KVMap___hyg_273____closed__34;
|
||||
x_86 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_86, 0, x_85);
|
||||
|
|
|
|||
12
stage0/stdlib/Lean/Data/RBMap.c
generated
12
stage0/stdlib/Lean/Data/RBMap.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Data.RBMap
|
||||
// Imports: Init.Data.Ord
|
||||
// Imports: Init.Data.Ord Init.Data.Nat.Linear
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -22036,7 +22036,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_RBMap_min_x21___rarg___closed__1;
|
||||
x_2 = l_Lean_RBMap_min_x21___rarg___closed__2;
|
||||
x_3 = lean_unsigned_to_nat(364u);
|
||||
x_3 = lean_unsigned_to_nat(366u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_RBMap_min_x21___rarg___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -22126,7 +22126,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_RBMap_min_x21___rarg___closed__1;
|
||||
x_2 = l_Lean_RBMap_max_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(369u);
|
||||
x_3 = lean_unsigned_to_nat(371u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_RBMap_min_x21___rarg___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -22205,7 +22205,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_RBMap_min_x21___rarg___closed__1;
|
||||
x_2 = l_Lean_RBMap_find_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(375u);
|
||||
x_3 = lean_unsigned_to_nat(377u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_RBMap_find_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -22462,6 +22462,7 @@ return x_3;
|
|||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Ord(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Nat_Linear(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Data_RBMap(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -22470,6 +22471,9 @@ _G_initialized = true;
|
|||
res = initialize_Init_Data_Ord(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Data_Nat_Linear(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_RBColor_noConfusion___rarg___closed__1 = _init_l_Lean_RBColor_noConfusion___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_RBColor_noConfusion___rarg___closed__1);
|
||||
l_Lean_RBNode_toArray___rarg___closed__1 = _init_l_Lean_RBNode_toArray___rarg___closed__1();
|
||||
|
|
|
|||
500
stage0/stdlib/Lean/DocString.c
generated
500
stage0/stdlib/Lean/DocString.c
generated
|
|
@ -14,97 +14,78 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264_(lean_object*);
|
||||
lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addDocString_x27___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addBuiltinDocString(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_saveLine(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_4_(lean_object*);
|
||||
lean_object* l_Lean_indentD(lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__6;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__5;
|
||||
static lean_object* l_Lean_addBuiltinDocString___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_findDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getDocStringText(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getModuleDoc_x3f___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_String_Iterator_next(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getDocStringText___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_removeLeadingSpaces(lean_object*);
|
||||
lean_object* l_Lean_removeLeadingSpaces(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_findDocString_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_addDocString___rarg___lambda__1___closed__1;
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1(lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__3;
|
||||
lean_object* lean_string_utf8_byte_size(lean_object*);
|
||||
lean_object* lean_string_push(lean_object*, uint32_t);
|
||||
uint32_t l_String_Iterator_curr(lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_addDocString___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_findNextLine(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_findDocString_x3f___spec__1(lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getDocStringText___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_String_instInhabitedString;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_consumeSpaces(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
|
||||
lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_docStringExt;
|
||||
LEAN_EXPORT lean_object* l_Lean_addMainModuleDoc(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getDocStringText___rarg___closed__4;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
lean_object* lean_list_to_array(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_consumeSpaces(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getDocStringText___rarg___closed__3;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_TSyntax_getDocString(lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_builtinDocStrings;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_addDocString___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getMainModuleDoc(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getModuleDoc_x3f(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__5;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___boxed(lean_object*);
|
||||
lean_object* l_Lean_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_TSyntax_getDocString___boxed(lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__4;
|
||||
static lean_object* l_Lean_getModuleDoc_x3f___closed__1;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_moduleDocExt;
|
||||
LEAN_EXPORT lean_object* l_Lean_addDocString(lean_object*);
|
||||
lean_object* lean_string_length(lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_44____closed__2;
|
||||
static lean_object* l_Lean_addMainModuleDoc___closed__1;
|
||||
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__2;
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Environment_getModuleIdx_x3f(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_44____closed__3;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_findLeadingSpacesSize(lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__3;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__2;
|
||||
lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_44____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_44_(lean_object*);
|
||||
static lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1;
|
||||
uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getDocStringText___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instInhabitedPersistentArray(lean_object*);
|
||||
static lean_object* l_Lean_getMainModuleDoc___closed__1;
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_findDocString_x3f___spec__1___boxed(lean_object*, lean_object*);
|
||||
uint8_t l_String_Iterator_atEnd(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_Iterator_find___at___private_Lean_DocString_0__Lean_findLeadingSpacesSize___spec__1(lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__1;
|
||||
static lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1;
|
||||
static lean_object* l_Lean_getDocStringText___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_addDocString_x27(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getMainModuleDoc___boxed(lean_object*);
|
||||
|
|
@ -169,315 +150,6 @@ x_3 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_consumeSpaces(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = l_String_Iterator_atEnd(x_1);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
uint32_t x_5; uint32_t x_6; uint8_t x_7;
|
||||
x_5 = l_String_Iterator_curr(x_1);
|
||||
x_6 = 32;
|
||||
x_7 = lean_uint32_dec_eq(x_5, x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
uint32_t x_8; uint8_t x_9;
|
||||
x_8 = 9;
|
||||
x_9 = lean_uint32_dec_eq(x_5, x_8);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
uint32_t x_10; uint8_t x_11;
|
||||
x_10 = 10;
|
||||
x_11 = lean_uint32_dec_eq(x_5, x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; uint8_t x_13;
|
||||
x_12 = l_String_Iterator_next(x_1);
|
||||
x_13 = lean_nat_dec_le(x_2, x_3);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_dec(x_2);
|
||||
x_14 = l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_findNextLine(x_12, x_3);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15;
|
||||
lean_dec(x_3);
|
||||
x_15 = l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_findNextLine(x_12, x_2);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
lean_dec(x_2);
|
||||
x_16 = l_String_Iterator_next(x_1);
|
||||
x_17 = l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_findNextLine(x_16, x_3);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = l_String_Iterator_next(x_1);
|
||||
x_19 = lean_unsigned_to_nat(1u);
|
||||
x_20 = lean_nat_add(x_2, x_19);
|
||||
lean_dec(x_2);
|
||||
x_1 = x_18;
|
||||
x_2 = x_20;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = l_String_Iterator_next(x_1);
|
||||
x_23 = lean_unsigned_to_nat(1u);
|
||||
x_24 = lean_nat_add(x_2, x_23);
|
||||
lean_dec(x_2);
|
||||
x_1 = x_22;
|
||||
x_2 = x_24;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_findNextLine(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = l_String_Iterator_atEnd(x_1);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
uint32_t x_4; uint32_t x_5; uint8_t x_6;
|
||||
x_4 = l_String_Iterator_curr(x_1);
|
||||
x_5 = 10;
|
||||
x_6 = lean_uint32_dec_eq(x_4, x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_String_Iterator_next(x_1);
|
||||
x_1 = x_7;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = l_String_Iterator_next(x_1);
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_consumeSpaces(x_9, x_10, x_2);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_String_Iterator_find___at___private_Lean_DocString_0__Lean_findLeadingSpacesSize___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = l_String_Iterator_atEnd(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
uint32_t x_3; uint32_t x_4; uint8_t x_5;
|
||||
x_3 = l_String_Iterator_curr(x_1);
|
||||
x_4 = 10;
|
||||
x_5 = lean_uint32_dec_eq(x_3, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_String_Iterator_next(x_1);
|
||||
x_1 = x_6;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_findLeadingSpacesSize(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
lean_inc(x_1);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
x_4 = l_String_Iterator_find___at___private_Lean_DocString_0__Lean_findLeadingSpacesSize___spec__1(x_3);
|
||||
x_5 = l_String_Iterator_next(x_4);
|
||||
x_6 = lean_string_length(x_1);
|
||||
lean_dec(x_1);
|
||||
x_7 = l___private_Lean_DocString_0__Lean_findLeadingSpacesSize_consumeSpaces(x_5, x_2, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_consumeSpaces(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6;
|
||||
x_5 = lean_unsigned_to_nat(0u);
|
||||
x_6 = lean_nat_dec_eq(x_2, x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_7 = lean_unsigned_to_nat(1u);
|
||||
x_8 = lean_nat_sub(x_2, x_7);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_String_Iterator_atEnd(x_3);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
uint32_t x_10; uint32_t x_11; uint8_t x_12;
|
||||
x_10 = l_String_Iterator_curr(x_3);
|
||||
x_11 = 32;
|
||||
x_12 = lean_uint32_dec_eq(x_10, x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
uint32_t x_13; uint8_t x_14;
|
||||
x_13 = 9;
|
||||
x_14 = lean_uint32_dec_eq(x_10, x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
lean_dec(x_8);
|
||||
x_15 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_saveLine(x_1, x_3, x_4);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16;
|
||||
x_16 = l_String_Iterator_next(x_3);
|
||||
x_2 = x_8;
|
||||
x_3 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18;
|
||||
x_18 = l_String_Iterator_next(x_3);
|
||||
x_2 = x_8;
|
||||
x_3 = x_18;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
lean_dec(x_2);
|
||||
x_20 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_saveLine(x_1, x_3, x_4);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_saveLine(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = l_String_Iterator_atEnd(x_2);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
uint32_t x_5; uint32_t x_6; uint8_t x_7;
|
||||
x_5 = l_String_Iterator_curr(x_2);
|
||||
x_6 = 10;
|
||||
x_7 = lean_uint32_dec_eq(x_5, x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = l_String_Iterator_next(x_2);
|
||||
x_9 = lean_string_push(x_3, x_5);
|
||||
x_2 = x_8;
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = l_String_Iterator_next(x_2);
|
||||
x_12 = lean_string_push(x_3, x_6);
|
||||
lean_inc(x_1);
|
||||
x_13 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_consumeSpaces(x_1, x_1, x_11, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_3 = lean_unsigned_to_nat(0u);
|
||||
x_4 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_4, 0, x_2);
|
||||
lean_ctor_set(x_4, 1, x_3);
|
||||
x_5 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1;
|
||||
lean_inc(x_1);
|
||||
x_6 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces_consumeSpaces(x_1, x_1, x_4, x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_removeLeadingSpaces(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
lean_inc(x_1);
|
||||
x_2 = l___private_Lean_DocString_0__Lean_findLeadingSpacesSize(x_1);
|
||||
x_3 = lean_unsigned_to_nat(0u);
|
||||
x_4 = lean_nat_dec_eq(x_2, x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces(x_2, x_1);
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_2);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_addBuiltinDocString___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -741,7 +413,7 @@ x_6 = l_Lean_findDocString_x3f(x_1, x_2, x_5, x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -750,23 +422,23 @@ x_2 = lean_mk_empty_array_with_capacity(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__2() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1;
|
||||
x_1 = l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__3() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = 5;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__2;
|
||||
x_3 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__2;
|
||||
x_3 = l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1;
|
||||
x_4 = lean_unsigned_to_nat(0u);
|
||||
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
|
||||
lean_ctor_set(x_5, 0, x_2);
|
||||
|
|
@ -777,15 +449,15 @@ lean_ctor_set_usize(x_5, 4, x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__3;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__3;
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__1() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -793,17 +465,17 @@ x_1 = lean_mk_string_from_bytes("moduleDocExt", 12);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__2() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_initFn____x40_Lean_DocString___hyg_44____closed__1;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__1;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__1;
|
||||
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__3() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -812,7 +484,7 @@ lean_closure_set(x_1, 0, lean_box(0));
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__4() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -820,22 +492,22 @@ x_1 = lean_alloc_closure((void*)(l_Lean_PersistentArray_push___rarg), 2, 0);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__5() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___boxed), 1, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__6() {
|
||||
static lean_object* _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__2;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__4;
|
||||
x_3 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__5;
|
||||
x_4 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__3;
|
||||
x_1 = l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__2;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__4;
|
||||
x_3 = l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__5;
|
||||
x_4 = l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__3;
|
||||
x_5 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
|
|
@ -844,20 +516,20 @@ lean_ctor_set(x_5, 3, x_4);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__6;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__6;
|
||||
x_3 = l_Lean_registerSimplePersistentEnvExtension___rarg(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___boxed(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1(x_1);
|
||||
x_2 = l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -990,8 +662,16 @@ return x_2;
|
|||
static lean_object* _init_l_Lean_getDocStringText___rarg___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_getDocStringText___rarg___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1;
|
||||
x_1 = l_Lean_getDocStringText___rarg___closed__3;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -1036,7 +716,7 @@ x_18 = l_Lean_getDocStringText___rarg___closed__2;
|
|||
x_19 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
lean_ctor_set(x_19, 1, x_17);
|
||||
x_20 = l_Lean_getDocStringText___rarg___closed__3;
|
||||
x_20 = l_Lean_getDocStringText___rarg___closed__4;
|
||||
x_21 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
|
|
@ -1062,46 +742,6 @@ lean_dec(x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_TSyntax_getDocString(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = lean_unsigned_to_nat(1u);
|
||||
x_3 = l_Lean_Syntax_getArg(x_1, x_2);
|
||||
if (lean_obj_tag(x_3) == 2)
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_string_utf8_byte_size(x_4);
|
||||
x_6 = lean_unsigned_to_nat(2u);
|
||||
x_7 = lean_nat_sub(x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = lean_string_utf8_extract(x_4, x_8, x_7);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10;
|
||||
lean_dec(x_3);
|
||||
x_10 = l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1;
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_TSyntax_getDocString___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_TSyntax_getDocString(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_DeclarationRange(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_MonadEnv(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
|
|
@ -1131,31 +771,29 @@ if (lean_io_result_is_error(res)) return res;
|
|||
l___private_Lean_DocString_0__Lean_docStringExt = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l___private_Lean_DocString_0__Lean_docStringExt);
|
||||
lean_dec_ref(res);
|
||||
}l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1 = _init_l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_DocString_0__Lean_removeNumLeadingSpaces___closed__1);
|
||||
l_Lean_addBuiltinDocString___closed__1 = _init_l_Lean_addBuiltinDocString___closed__1();
|
||||
}l_Lean_addBuiltinDocString___closed__1 = _init_l_Lean_addBuiltinDocString___closed__1();
|
||||
lean_mark_persistent(l_Lean_addBuiltinDocString___closed__1);
|
||||
l_Lean_addDocString___rarg___lambda__1___closed__1 = _init_l_Lean_addDocString___rarg___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_addDocString___rarg___lambda__1___closed__1);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__1);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__2 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__2);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__3 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____lambda__1___closed__3);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__1 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__1();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__1);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__2 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__2();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__2);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__3 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__3();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__3);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__4 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__4();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__4);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__5 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__5();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__5);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__6 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__6();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_1637____closed__6);
|
||||
if (builtin) {res = l_Lean_initFn____x40_Lean_DocString___hyg_1637_(lean_io_mk_world());
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__1);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__2 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__2);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__3 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____lambda__1___closed__3);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__1 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__1();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__1);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__2 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__2();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__2);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__3 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__3();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__3);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__4 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__4();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__4);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__5 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__5();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__5);
|
||||
l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__6 = _init_l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__6();
|
||||
lean_mark_persistent(l_Lean_initFn____x40_Lean_DocString___hyg_264____closed__6);
|
||||
if (builtin) {res = l_Lean_initFn____x40_Lean_DocString___hyg_264_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l___private_Lean_DocString_0__Lean_moduleDocExt = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l___private_Lean_DocString_0__Lean_moduleDocExt);
|
||||
|
|
@ -1172,6 +810,8 @@ l_Lean_getDocStringText___rarg___closed__2 = _init_l_Lean_getDocStringText___rar
|
|||
lean_mark_persistent(l_Lean_getDocStringText___rarg___closed__2);
|
||||
l_Lean_getDocStringText___rarg___closed__3 = _init_l_Lean_getDocStringText___rarg___closed__3();
|
||||
lean_mark_persistent(l_Lean_getDocStringText___rarg___closed__3);
|
||||
l_Lean_getDocStringText___rarg___closed__4 = _init_l_Lean_getDocStringText___rarg___closed__4();
|
||||
lean_mark_persistent(l_Lean_getDocStringText___rarg___closed__4);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
476
stage0/stdlib/Lean/Elab/PatternVar.c
generated
476
stage0/stdlib/Lean/Elab/PatternVar.c
generated
File diff suppressed because it is too large
Load diff
4
stage0/stdlib/Lean/Elab/Syntax.c
generated
4
stage0/stdlib/Lean/Elab/Syntax.c
generated
|
|
@ -57,6 +57,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_toParserDescr_processAlias(lean_object
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39;
|
||||
static lean_object* l_Lean_Elab_Term_toParserDescr_process___closed__6;
|
||||
uint8_t l___private_Lean_Parser_Basic_0__Lean_Parser_beqLeadingIdentBehavior____x40_Lean_Parser_Basic___hyg_8605_(uint8_t, uint8_t);
|
||||
lean_object* l_Lean_evalPrec(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Term_checkLeftRec___spec__3(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_Array_mapMUnsafe_map___at_Lean_Elab_Term_toParserDescr_processAlias___spec__6___lambda__1___closed__1;
|
||||
|
|
@ -745,7 +746,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Elab_Term_toParserDescr_processAlias___lambda__2___closed__9;
|
||||
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38;
|
||||
static lean_object* l_Lean_Elab_Term_toParserDescr_processNonReserved___closed__17;
|
||||
uint8_t l___private_Lean_Parser_Basic_0__Lean_Parser_beqLeadingIdentBehavior____x40_Lean_Parser_Basic___hyg_8168_(uint8_t, uint8_t);
|
||||
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_toParserDescr_processAlias___spec__6___lambda__1___closed__2;
|
||||
static lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29;
|
||||
uint8_t l_Lean_Parser_leadingIdentBehavior(lean_object*, lean_object*);
|
||||
|
|
@ -5012,7 +5012,7 @@ _start:
|
|||
lean_object* x_12; uint8_t x_54; uint8_t x_55; uint8_t x_56;
|
||||
x_54 = lean_ctor_get_uint8(x_3, sizeof(void*)*1 + 2);
|
||||
x_55 = 0;
|
||||
x_56 = l___private_Lean_Parser_Basic_0__Lean_Parser_beqLeadingIdentBehavior____x40_Lean_Parser_Basic___hyg_8168_(x_54, x_55);
|
||||
x_56 = l___private_Lean_Parser_Basic_0__Lean_Parser_beqLeadingIdentBehavior____x40_Lean_Parser_Basic___hyg_8605_(x_54, x_55);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
uint8_t x_57;
|
||||
|
|
|
|||
10
stage0/stdlib/Lean/Elab/Tactic.c
generated
10
stage0/stdlib/Lean/Elab/Tactic.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Elab.Tactic
|
||||
// Imports: Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.SimpTrace Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Simproc Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Meta Lean.Elab.Tactic.Unfold Lean.Elab.Tactic.Cache Lean.Elab.Tactic.Calc Lean.Elab.Tactic.Congr Lean.Elab.Tactic.Guard Lean.Elab.Tactic.RCases Lean.Elab.Tactic.Repeat Lean.Elab.Tactic.Ext Lean.Elab.Tactic.Change Lean.Elab.Tactic.FalseOrByContra Lean.Elab.Tactic.Omega Lean.Elab.Tactic.Simpa Lean.Elab.Tactic.NormCast
|
||||
// Imports: Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.SimpTrace Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Simproc Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Meta Lean.Elab.Tactic.Unfold Lean.Elab.Tactic.Cache Lean.Elab.Tactic.Calc Lean.Elab.Tactic.Congr Lean.Elab.Tactic.Guard Lean.Elab.Tactic.RCases Lean.Elab.Tactic.Repeat Lean.Elab.Tactic.Ext Lean.Elab.Tactic.Change Lean.Elab.Tactic.FalseOrByContra Lean.Elab.Tactic.Omega Lean.Elab.Tactic.Simpa Lean.Elab.Tactic.NormCast Lean.Elab.Tactic.Symm Lean.Elab.Tactic.SolveByElim
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -43,6 +43,8 @@ lean_object* initialize_Lean_Elab_Tactic_FalseOrByContra(uint8_t builtin, lean_o
|
|||
lean_object* initialize_Lean_Elab_Tactic_Omega(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_Simpa(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_NormCast(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_Symm(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_SolveByElim(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -138,6 +140,12 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Elab_Tactic_NormCast(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Elab_Tactic_Symm(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Elab_Tactic_SolveByElim(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
2319
stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c
generated
2319
stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c
generated
File diff suppressed because it is too large
Load diff
24347
stage0/stdlib/Lean/Elab/Tactic/Omega/Frontend.c
generated
24347
stage0/stdlib/Lean/Elab/Tactic/Omega/Frontend.c
generated
File diff suppressed because it is too large
Load diff
1788
stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c
generated
1788
stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c
generated
File diff suppressed because it is too large
Load diff
20
stage0/stdlib/Lean/Elab/Tactic/RCases.c
generated
20
stage0/stdlib/Lean/Elab/Tactic/RCases.c
generated
|
|
@ -367,7 +367,6 @@ static lean_object* l_Lean_Elab_Tactic_RCases_termList_u03a3____x40_Lean_Elab_Ta
|
|||
static lean_object* l_Lean_Elab_Tactic_RCases_evalRIntro___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Tactic_RCases_tryClearMany_x27___spec__27___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_RCases_instCoeTSyntaxConsSyntaxNodeKindMkStr4Nil___closed__4;
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprTSyntax____x40_Init_Meta___hyg_2295____rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_Elab_Tactic_RCases_tryClearMany_x27___spec__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_RCases_evalRCases___closed__1;
|
||||
|
|
@ -445,7 +444,6 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_Elab_Tactic_RCase
|
|||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Elab_Tactic_RCases_tryClearMany_x27___spec__5___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_RCases_RCasesPatt_parse___closed__4;
|
||||
static lean_object* l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__7;
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_RCases_evalRCases(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_Tactic_RCases_rcasesCore___rarg___lambda__7___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_Elab_Tactic_RCases_tryClearMany_x27___spec__44___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -461,6 +459,7 @@ static lean_object* l_Lean_Elab_Tactic_RCases_termList_u03a0____x40_Lean_Elab_Ta
|
|||
lean_object* lean_string_length(lean_object*);
|
||||
static lean_object* l_List_repr___at___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____spec__1___closed__10;
|
||||
static lean_object* l_Lean_Elab_Tactic_RCases_processConstructor___closed__4;
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprTSyntax____x40_Init_Meta___hyg_3668____rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_RCases_termList_u03a0____x40_Lean_Elab_Tactic_RCases___hyg_680____closed__5;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Tactic_RCases_tryClearMany_x27___spec__46___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
|
|
@ -631,6 +630,7 @@ uint8_t lean_usize_dec_lt(size_t, size_t);
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_RCases_evalObtain_declRange___closed__6;
|
||||
lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_RCases_instCoeIdentTSyntaxConsSyntaxNodeKindMkStr1Nil(lean_object*);
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_RCases_rcasesCore___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Tactic_RCases_tryClearMany_x27___spec__40(lean_object*, lean_object*, size_t, size_t);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_RCases_evalRIntro___closed__3;
|
||||
|
|
@ -2191,7 +2191,7 @@ lean_inc(x_4);
|
|||
lean_dec(x_1);
|
||||
x_5 = lean_unsigned_to_nat(1024u);
|
||||
x_6 = lean_nat_dec_le(x_5, x_2);
|
||||
x_7 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_3, x_5);
|
||||
x_7 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_3, x_5);
|
||||
x_8 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__3;
|
||||
x_9 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
|
|
@ -2243,7 +2243,7 @@ lean_inc(x_25);
|
|||
lean_dec(x_1);
|
||||
x_26 = lean_unsigned_to_nat(1024u);
|
||||
x_27 = lean_nat_dec_le(x_26, x_2);
|
||||
x_28 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_24, x_26);
|
||||
x_28 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_24, x_26);
|
||||
x_29 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__8;
|
||||
x_30 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
|
|
@ -2293,7 +2293,7 @@ lean_inc(x_45);
|
|||
lean_dec(x_1);
|
||||
x_46 = lean_unsigned_to_nat(1024u);
|
||||
x_47 = lean_nat_dec_le(x_46, x_2);
|
||||
x_48 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_45, x_46);
|
||||
x_48 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_45, x_46);
|
||||
x_49 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__11;
|
||||
x_50 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_49);
|
||||
|
|
@ -2337,7 +2337,7 @@ lean_inc(x_62);
|
|||
lean_dec(x_1);
|
||||
x_63 = lean_unsigned_to_nat(1024u);
|
||||
x_64 = lean_nat_dec_le(x_63, x_2);
|
||||
x_65 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_61, x_63);
|
||||
x_65 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_61, x_63);
|
||||
x_66 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__14;
|
||||
x_67 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_66);
|
||||
|
|
@ -2391,7 +2391,7 @@ lean_inc(x_84);
|
|||
lean_dec(x_1);
|
||||
x_85 = lean_unsigned_to_nat(1024u);
|
||||
x_86 = lean_nat_dec_le(x_85, x_2);
|
||||
x_87 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_82, x_85);
|
||||
x_87 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_82, x_85);
|
||||
x_88 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__17;
|
||||
x_89 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_88);
|
||||
|
|
@ -2407,7 +2407,7 @@ lean_ctor_set(x_93, 1, x_92);
|
|||
x_94 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_94, 0, x_93);
|
||||
lean_ctor_set(x_94, 1, x_90);
|
||||
x_95 = l___private_Init_Meta_0__Lean_Syntax_reprTSyntax____x40_Init_Meta___hyg_2295____rarg(x_84, x_85);
|
||||
x_95 = l___private_Init_Meta_0__Lean_Syntax_reprTSyntax____x40_Init_Meta___hyg_3668____rarg(x_84, x_85);
|
||||
x_96 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_96, 0, x_94);
|
||||
lean_ctor_set(x_96, 1, x_95);
|
||||
|
|
@ -2450,7 +2450,7 @@ lean_inc(x_108);
|
|||
lean_dec(x_1);
|
||||
x_109 = lean_unsigned_to_nat(1024u);
|
||||
x_110 = lean_nat_dec_le(x_109, x_2);
|
||||
x_111 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_107, x_109);
|
||||
x_111 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_107, x_109);
|
||||
x_112 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__20;
|
||||
x_113 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_113, 0, x_112);
|
||||
|
|
@ -2502,7 +2502,7 @@ lean_inc(x_129);
|
|||
lean_dec(x_1);
|
||||
x_130 = lean_unsigned_to_nat(1024u);
|
||||
x_131 = lean_nat_dec_le(x_130, x_2);
|
||||
x_132 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_128, x_130);
|
||||
x_132 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_128, x_130);
|
||||
x_133 = l___private_Lean_Elab_Tactic_RCases_0__Lean_Elab_Tactic_RCases_reprRCasesPatt____x40_Lean_Elab_Tactic_RCases___hyg_1247____closed__23;
|
||||
x_134 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_134, 0, x_133);
|
||||
|
|
|
|||
7695
stage0/stdlib/Lean/Elab/Tactic/SolveByElim.c
generated
Normal file
7695
stage0/stdlib/Lean/Elab/Tactic/SolveByElim.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1024
stage0/stdlib/Lean/Elab/Tactic/Symm.c
generated
Normal file
1024
stage0/stdlib/Lean/Elab/Tactic/Symm.c
generated
Normal file
File diff suppressed because it is too large
Load diff
3272
stage0/stdlib/Lean/LabelAttribute.c
generated
Normal file
3272
stage0/stdlib/Lean/LabelAttribute.c
generated
Normal file
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Lean/Meta.c
generated
6
stage0/stdlib/Lean/Meta.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta
|
||||
// Imports: Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval Lean.Meta.CoeAttr
|
||||
// Imports: Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval Lean.Meta.CoeAttr Lean.Meta.Iterator
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -53,6 +53,7 @@ lean_object* initialize_Lean_Meta_ExprLens(uint8_t builtin, lean_object*);
|
|||
lean_object* initialize_Lean_Meta_ExprTraverse(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Eval(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_CoeAttr(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Iterator(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -178,6 +179,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Meta_CoeAttr(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Iterator(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
2842
stage0/stdlib/Lean/Meta/CollectMVars.c
generated
2842
stage0/stdlib/Lean/Meta/CollectMVars.c
generated
File diff suppressed because it is too large
Load diff
813
stage0/stdlib/Lean/Meta/Iterator.c
generated
Normal file
813
stage0/stdlib/Lean/Meta/Iterator.c
generated
Normal file
|
|
@ -0,0 +1,813 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Iterator
|
||||
// Imports: Lean.Meta.Basic
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_head(lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___next(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___elambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Iterator_head___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___next___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList(lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___elambda__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1(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_Lean_Meta_Iterator_firstM(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_head___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Iterator_head___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_firstM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_8 = l_Lean_Meta_SavedState_restore(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_st_ref_get(x_2, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_10);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_ctor_get(x_10, 0);
|
||||
lean_dec(x_13);
|
||||
x_14 = lean_box(0);
|
||||
lean_ctor_set(x_10, 0, x_14);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_10);
|
||||
x_16 = lean_box(0);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_18 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_10);
|
||||
x_19 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_11);
|
||||
x_21 = lean_st_ref_set(x_2, x_20, x_18);
|
||||
x_22 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_21);
|
||||
x_23 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_22);
|
||||
x_24 = !lean_is_exclusive(x_23);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_25 = lean_ctor_get(x_23, 0);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_19);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
x_27 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_23, 0, x_27);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_28 = lean_ctor_get(x_23, 0);
|
||||
x_29 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_23);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_19);
|
||||
lean_ctor_set(x_30, 1, x_28);
|
||||
x_31 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
x_32 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
lean_ctor_set(x_32, 1, x_29);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = lean_st_mk_ref(x_1, x_9);
|
||||
x_11 = !lean_is_exclusive(x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_ctor_get(x_10, 0);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_ofList___rarg___lambda__1___boxed), 7, 2);
|
||||
lean_closure_set(x_13, 0, x_8);
|
||||
lean_closure_set(x_13, 1, x_12);
|
||||
lean_ctor_set(x_10, 0, x_13);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_14 = lean_ctor_get(x_10, 0);
|
||||
x_15 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_10);
|
||||
x_16 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_ofList___rarg___lambda__1___boxed), 7, 2);
|
||||
lean_closure_set(x_16, 0, x_8);
|
||||
lean_closure_set(x_16, 1, x_14);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_ofList___rarg___boxed), 6, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_Meta_Iterator_ofList___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_ofList___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Meta_Iterator_ofList___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___next___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_8 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
uint8_t x_10;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_10 = !lean_is_exclusive(x_8);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12;
|
||||
x_11 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_11);
|
||||
x_12 = lean_box(0);
|
||||
lean_ctor_set(x_8, 0, x_12);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_13 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_8);
|
||||
x_14 = lean_box(0);
|
||||
x_15 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_14);
|
||||
lean_ctor_set(x_15, 1, x_13);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_16 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_9);
|
||||
x_17 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_8);
|
||||
x_18 = !lean_is_exclusive(x_16);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_19 = lean_ctor_get(x_16, 0);
|
||||
x_20 = lean_ctor_get(x_16, 1);
|
||||
x_21 = l_Lean_Meta_SavedState_restore(x_20, x_3, x_4, x_5, x_6, x_17);
|
||||
lean_dec(x_20);
|
||||
x_22 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_21);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_23 = lean_apply_6(x_1, x_19, x_3, x_4, x_5, x_6, x_22);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_24;
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
if (lean_obj_tag(x_24) == 0)
|
||||
{
|
||||
lean_object* x_25;
|
||||
lean_free_object(x_16);
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_23);
|
||||
x_7 = x_25;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; uint8_t x_28;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_27 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_23);
|
||||
x_28 = !lean_is_exclusive(x_24);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; uint8_t x_31;
|
||||
x_29 = lean_ctor_get(x_24, 0);
|
||||
x_30 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_27);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_31 = !lean_is_exclusive(x_30);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
lean_object* x_32;
|
||||
x_32 = lean_ctor_get(x_30, 0);
|
||||
lean_ctor_set(x_16, 1, x_32);
|
||||
lean_ctor_set(x_16, 0, x_29);
|
||||
lean_ctor_set(x_24, 0, x_16);
|
||||
lean_ctor_set(x_30, 0, x_24);
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_33 = lean_ctor_get(x_30, 0);
|
||||
x_34 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_34);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_30);
|
||||
lean_ctor_set(x_16, 1, x_33);
|
||||
lean_ctor_set(x_16, 0, x_29);
|
||||
lean_ctor_set(x_24, 0, x_16);
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_24);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_36 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_24);
|
||||
x_37 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_27);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_38 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_39);
|
||||
if (lean_is_exclusive(x_37)) {
|
||||
lean_ctor_release(x_37, 0);
|
||||
lean_ctor_release(x_37, 1);
|
||||
x_40 = x_37;
|
||||
} else {
|
||||
lean_dec_ref(x_37);
|
||||
x_40 = lean_box(0);
|
||||
}
|
||||
lean_ctor_set(x_16, 1, x_38);
|
||||
lean_ctor_set(x_16, 0, x_36);
|
||||
x_41 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_41, 0, x_16);
|
||||
if (lean_is_scalar(x_40)) {
|
||||
x_42 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_42 = x_40;
|
||||
}
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_39);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
lean_free_object(x_16);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_43 = !lean_is_exclusive(x_23);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_44 = lean_ctor_get(x_23, 0);
|
||||
x_45 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_23);
|
||||
x_46 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_44);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
return x_46;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_47 = lean_ctor_get(x_16, 0);
|
||||
x_48 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_16);
|
||||
x_49 = l_Lean_Meta_SavedState_restore(x_48, x_3, x_4, x_5, x_6, x_17);
|
||||
lean_dec(x_48);
|
||||
x_50 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_49);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_51 = lean_apply_6(x_1, x_47, x_3, x_4, x_5, x_6, x_50);
|
||||
if (lean_obj_tag(x_51) == 0)
|
||||
{
|
||||
lean_object* x_52;
|
||||
x_52 = lean_ctor_get(x_51, 0);
|
||||
lean_inc(x_52);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
lean_object* x_53;
|
||||
x_53 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_51);
|
||||
x_7 = x_53;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_55 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_51);
|
||||
x_56 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_56);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
x_57 = x_52;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_57 = lean_box(0);
|
||||
}
|
||||
x_58 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_55);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_59 = lean_ctor_get(x_58, 0);
|
||||
lean_inc(x_59);
|
||||
x_60 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_60);
|
||||
if (lean_is_exclusive(x_58)) {
|
||||
lean_ctor_release(x_58, 0);
|
||||
lean_ctor_release(x_58, 1);
|
||||
x_61 = x_58;
|
||||
} else {
|
||||
lean_dec_ref(x_58);
|
||||
x_61 = lean_box(0);
|
||||
}
|
||||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_56);
|
||||
lean_ctor_set(x_62, 1, x_59);
|
||||
if (lean_is_scalar(x_57)) {
|
||||
x_63 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_63 = x_57;
|
||||
}
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
if (lean_is_scalar(x_61)) {
|
||||
x_64 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_64 = x_61;
|
||||
}
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_60);
|
||||
return x_64;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_65 = lean_ctor_get(x_51, 0);
|
||||
lean_inc(x_65);
|
||||
x_66 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_66);
|
||||
if (lean_is_exclusive(x_51)) {
|
||||
lean_ctor_release(x_51, 0);
|
||||
lean_ctor_release(x_51, 1);
|
||||
x_67 = x_51;
|
||||
} else {
|
||||
lean_dec_ref(x_51);
|
||||
x_67 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_67)) {
|
||||
x_68 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_68 = x_67;
|
||||
}
|
||||
lean_ctor_set(x_68, 0, x_65);
|
||||
lean_ctor_set(x_68, 1, x_66);
|
||||
return x_68;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_69;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_69 = !lean_is_exclusive(x_8);
|
||||
if (x_69 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_70 = lean_ctor_get(x_8, 0);
|
||||
x_71 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_71);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_8);
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_72, 0, x_70);
|
||||
lean_ctor_set(x_72, 1, x_71);
|
||||
return x_72;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___next(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_filterMapM___next___rarg), 7, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___elambda__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_Meta_Iterator_filterMapM___next___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___elambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_filterMapM___elambda__1___rarg), 7, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_filterMapM___elambda__1___rarg), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_filterMapM(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_filterMapM___rarg), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_7 = lean_ctor_get(x_4, 5);
|
||||
x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_9 = !lean_is_exclusive(x_8);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11;
|
||||
x_10 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_7);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_7);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
lean_ctor_set_tag(x_8, 1);
|
||||
lean_ctor_set(x_8, 0, x_11);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_12 = lean_ctor_get(x_8, 0);
|
||||
x_13 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_8);
|
||||
lean_inc(x_7);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_7);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
x_15 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_14);
|
||||
lean_ctor_set(x_15, 1, x_13);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg___boxed), 6, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Iterator_head___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("failed", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Iterator_head___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Iterator_head___rarg___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_head___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = l_Lean_Meta_Iterator_head___rarg___closed__2;
|
||||
x_11 = l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg(x_10, x_2, x_3, x_4, x_5, x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_12 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_8);
|
||||
x_13 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_7);
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_12);
|
||||
x_16 = l_Lean_Meta_SavedState_restore(x_15, x_2, x_3, x_4, x_5, x_13);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_15);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
lean_dec(x_18);
|
||||
lean_ctor_set(x_16, 0, x_14);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_14);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_21;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_21 = !lean_is_exclusive(x_7);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_7, 0);
|
||||
x_23 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_7);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_head(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_head___rarg), 6, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_throwError___at_Lean_Meta_Iterator_head___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_firstM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_filterMapM___elambda__1___rarg), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_2);
|
||||
lean_closure_set(x_8, 1, x_1);
|
||||
x_9 = l_Lean_Meta_Iterator_head___rarg(x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Iterator_firstM(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Iterator_firstM___rarg), 7, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Iterator(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Lean_Meta_Basic(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Meta_Iterator_head___rarg___closed__1 = _init_l_Lean_Meta_Iterator_head___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Iterator_head___rarg___closed__1);
|
||||
l_Lean_Meta_Iterator_head___rarg___closed__2 = _init_l_Lean_Meta_Iterator_head___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Iterator_head___rarg___closed__2);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
18
stage0/stdlib/Lean/Meta/Tactic.c
generated
18
stage0/stdlib/Lean/Meta/Tactic.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Tactic
|
||||
// Imports: Lean.Meta.Tactic.Intro Lean.Meta.Tactic.Assumption Lean.Meta.Tactic.Contradiction Lean.Meta.Tactic.Apply Lean.Meta.Tactic.Revert Lean.Meta.Tactic.Clear Lean.Meta.Tactic.Assert Lean.Meta.Tactic.Rewrite Lean.Meta.Tactic.Generalize Lean.Meta.Tactic.Replace Lean.Meta.Tactic.Induction Lean.Meta.Tactic.Cases Lean.Meta.Tactic.ElimInfo Lean.Meta.Tactic.Delta Lean.Meta.Tactic.Constructor Lean.Meta.Tactic.Simp Lean.Meta.Tactic.AuxLemma Lean.Meta.Tactic.SplitIf Lean.Meta.Tactic.Split Lean.Meta.Tactic.TryThis Lean.Meta.Tactic.Cleanup Lean.Meta.Tactic.Unfold Lean.Meta.Tactic.Rename Lean.Meta.Tactic.LinearArith Lean.Meta.Tactic.AC Lean.Meta.Tactic.Refl Lean.Meta.Tactic.Congr Lean.Meta.Tactic.Repeat Lean.Meta.Tactic.NormCast
|
||||
// Imports: Lean.Meta.Tactic.Intro Lean.Meta.Tactic.Assumption Lean.Meta.Tactic.Contradiction Lean.Meta.Tactic.Apply Lean.Meta.Tactic.Revert Lean.Meta.Tactic.Clear Lean.Meta.Tactic.Assert Lean.Meta.Tactic.Rewrite Lean.Meta.Tactic.Generalize Lean.Meta.Tactic.Replace Lean.Meta.Tactic.Induction Lean.Meta.Tactic.Cases Lean.Meta.Tactic.ElimInfo Lean.Meta.Tactic.Delta Lean.Meta.Tactic.Constructor Lean.Meta.Tactic.Simp Lean.Meta.Tactic.AuxLemma Lean.Meta.Tactic.SplitIf Lean.Meta.Tactic.Split Lean.Meta.Tactic.TryThis Lean.Meta.Tactic.Cleanup Lean.Meta.Tactic.Unfold Lean.Meta.Tactic.Rename Lean.Meta.Tactic.LinearArith Lean.Meta.Tactic.AC Lean.Meta.Tactic.Refl Lean.Meta.Tactic.Congr Lean.Meta.Tactic.Repeat Lean.Meta.Tactic.NormCast Lean.Meta.Tactic.IndependentOf Lean.Meta.Tactic.Symm Lean.Meta.Tactic.Backtrack Lean.Meta.Tactic.SolveByElim
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -42,6 +42,10 @@ lean_object* initialize_Lean_Meta_Tactic_Refl(uint8_t builtin, lean_object*);
|
|||
lean_object* initialize_Lean_Meta_Tactic_Congr(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Repeat(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_NormCast(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_IndependentOf(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Symm(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Backtrack(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_SolveByElim(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -134,6 +138,18 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Meta_Tactic_NormCast(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_IndependentOf(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Symm(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Backtrack(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_SolveByElim(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
85
stage0/stdlib/Lean/Meta/Tactic/Apply.c
generated
85
stage0/stdlib/Lean/Meta/Tactic/Apply.c
generated
|
|
@ -22,20 +22,18 @@ LEAN_EXPORT lean_object* l_Lean_Meta_ApplyNewGoals_noConfusion___rarg___boxed(le
|
|||
lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_exfalso___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_ApplyNewGoals_toCtorIdx___boxed(lean_object*);
|
||||
static lean_object* l_Lean_MVarId_exfalso___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_List_elem___at_Lean_MVarId_getMVarDependencies_addMVars___spec__3(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_nthConstructor___lambda__2___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_partitionDependentMVars___closed__2;
|
||||
static lean_object* l_Lean_MVarId_nthConstructor___lambda__2___closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_throwApplyError___rarg___closed__5;
|
||||
lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_splitAndCore_go___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_apply_go(lean_object*, lean_object*, 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_Meta_Tactic_Apply_0__Lean_Meta_dependsOnOthers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -57,7 +55,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tact
|
|||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_splitAndCore_go___closed__7;
|
||||
lean_object* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_elem___at_Lean_MVarId_apply___spec__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_environment_find(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getExpectedNumArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -71,7 +68,6 @@ lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Meta_splitAndCore_go___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_postprocessAppMVars(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_reorderGoals___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_List_elem___at_Lean_MVarId_apply___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_nthConstructor___lambda__1(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_MVarId_exfalso___closed__2;
|
||||
|
|
@ -132,10 +128,12 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_nthConstructor(lean_object*, lean_object*
|
|||
lean_object* l_Lean_Expr_appFn_x21(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_apply___lambda__1___boxed(lean_object*, 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_MVarId_nthConstructor___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_nthConstructor___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_isDefEqApply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_nthConstructor___lambda__1___closed__3;
|
||||
lean_object* lean_name_append_index_after(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_exfalso___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_partitionDependentMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_apply___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -156,7 +154,8 @@ lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_obje
|
|||
lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_postprocessAppMVars___boxed(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_Meta_getExpectedNumArgsAux___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_splitAndCore_go___closed__2;
|
||||
static lean_object* l_Lean_Meta_splitAndCore_go___closed__3;
|
||||
static lean_object* l_Lean_MVarId_exfalso___lambda__1___closed__5;
|
||||
|
|
@ -165,8 +164,8 @@ static lean_object* l_Lean_MVarId_nthConstructor___lambda__2___closed__3;
|
|||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_getAppFn(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_nthConstructor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_apply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_reverse___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getExpectedNumArgsAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_Meta_appendParentTag___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -3077,36 +3076,7 @@ lean_dec(x_2);
|
|||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_List_elem___at_Lean_MVarId_apply___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = 0;
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; uint8_t x_6;
|
||||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 1);
|
||||
x_6 = lean_name_eq(x_1, x_4);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
x_2 = x_5;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = 1;
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
|
|
@ -3163,7 +3133,7 @@ return x_17;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_6;
|
||||
|
|
@ -3172,7 +3142,7 @@ if (x_6 == 0)
|
|||
{
|
||||
lean_object* x_7; uint8_t x_8; size_t x_9; size_t x_10;
|
||||
x_7 = lean_array_uget(x_2, x_3);
|
||||
x_8 = l_List_elem___at_Lean_MVarId_apply___spec__1(x_7, x_1);
|
||||
x_8 = l_List_elem___at_Lean_MVarId_getMVarDependencies_addMVars___spec__3(x_7, x_1);
|
||||
x_9 = 1;
|
||||
x_10 = lean_usize_add(x_3, x_9);
|
||||
if (x_8 == 0)
|
||||
|
|
@ -3196,7 +3166,7 @@ return x_5;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_10;
|
||||
|
|
@ -3347,7 +3317,7 @@ x_89 = 0;
|
|||
x_90 = lean_usize_of_nat(x_29);
|
||||
lean_dec(x_29);
|
||||
x_91 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_partitionDependentMVars___closed__1;
|
||||
x_92 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__4(x_17, x_89, x_90, x_91, x_8, x_9, x_10, x_11, x_28);
|
||||
x_92 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(x_17, x_89, x_90, x_91, x_8, x_9, x_10, x_11, x_28);
|
||||
lean_dec(x_17);
|
||||
x_93 = lean_ctor_get(x_92, 0);
|
||||
lean_inc(x_93);
|
||||
|
|
@ -3396,7 +3366,7 @@ lean_dec(x_35);
|
|||
x_43 = l_Lean_MVarId_apply___lambda__1___closed__1;
|
||||
x_44 = l_List_appendTR___rarg(x_39, x_43);
|
||||
lean_inc(x_44);
|
||||
x_45 = l_List_forM___at_Lean_MVarId_apply___spec__2(x_44, x_8, x_9, x_10, x_11, x_40);
|
||||
x_45 = l_List_forM___at_Lean_MVarId_apply___spec__1(x_44, x_8, x_9, x_10, x_11, x_40);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -3461,7 +3431,7 @@ lean_dec(x_35);
|
|||
x_55 = l_Lean_MVarId_apply___lambda__1___closed__1;
|
||||
x_56 = l_List_appendTR___rarg(x_39, x_55);
|
||||
lean_inc(x_56);
|
||||
x_57 = l_List_forM___at_Lean_MVarId_apply___spec__2(x_56, x_8, x_9, x_10, x_11, x_40);
|
||||
x_57 = l_List_forM___at_Lean_MVarId_apply___spec__1(x_56, x_8, x_9, x_10, x_11, x_40);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -3521,12 +3491,12 @@ x_66 = 0;
|
|||
x_67 = lean_usize_of_nat(x_41);
|
||||
lean_dec(x_41);
|
||||
x_68 = l___private_Lean_Meta_Tactic_Apply_0__Lean_Meta_partitionDependentMVars___closed__1;
|
||||
x_69 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(x_39, x_35, x_66, x_67, x_68);
|
||||
x_69 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__2(x_39, x_35, x_66, x_67, x_68);
|
||||
lean_dec(x_35);
|
||||
x_70 = lean_array_to_list(lean_box(0), x_69);
|
||||
x_71 = l_List_appendTR___rarg(x_39, x_70);
|
||||
lean_inc(x_71);
|
||||
x_72 = l_List_forM___at_Lean_MVarId_apply___spec__2(x_71, x_8, x_9, x_10, x_11, x_40);
|
||||
x_72 = l_List_forM___at_Lean_MVarId_apply___spec__1(x_71, x_8, x_9, x_10, x_11, x_40);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -3958,22 +3928,11 @@ x_11 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_elem___at_Lean_MVarId_apply___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_List_elem___at_Lean_MVarId_apply___spec__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_apply___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_List_forM___at_Lean_MVarId_apply___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_7 = l_List_forM___at_Lean_MVarId_apply___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -3981,7 +3940,7 @@ lean_dec(x_2);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
size_t x_6; size_t x_7; lean_object* x_8;
|
||||
|
|
@ -3989,13 +3948,13 @@ x_6 = lean_unbox_usize(x_3);
|
|||
lean_dec(x_3);
|
||||
x_7 = lean_unbox_usize(x_4);
|
||||
lean_dec(x_4);
|
||||
x_8 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(x_1, x_2, x_6, x_7, x_5);
|
||||
x_8 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__2(x_1, x_2, x_6, x_7, x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
size_t x_10; size_t x_11; lean_object* x_12;
|
||||
|
|
@ -4003,7 +3962,7 @@ x_10 = lean_unbox_usize(x_2);
|
|||
lean_dec(x_2);
|
||||
x_11 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_12 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__4(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_12 = l_Array_foldlMUnsafe_fold___at_Lean_MVarId_apply___spec__3(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
|
|||
2227
stage0/stdlib/Lean/Meta/Tactic/Assert.c
generated
2227
stage0/stdlib/Lean/Meta/Tactic/Assert.c
generated
File diff suppressed because it is too large
Load diff
6288
stage0/stdlib/Lean/Meta/Tactic/Backtrack.c
generated
Normal file
6288
stage0/stdlib/Lean/Meta/Tactic/Backtrack.c
generated
Normal file
File diff suppressed because it is too large
Load diff
557
stage0/stdlib/Lean/Meta/Tactic/IndependentOf.c
generated
Normal file
557
stage0/stdlib/Lean/Meta/Tactic/IndependentOf.c
generated
Normal file
|
|
@ -0,0 +1,557 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Tactic.IndependentOf
|
||||
// Imports: Lean.Meta.CollectMVars Lean.Meta.Tactic.Util
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
uint8_t l_List_elem___at_Lean_MVarId_getMVarDependencies_addMVars___spec__3(lean_object*, lean_object*);
|
||||
size_t lean_hashset_mk_idx(lean_object*, uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_isSubsingleton(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint64_t l___private_Lean_Expr_0__Lean_hashMVarId____x40_Lean_Expr___hyg_1921_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isProp(lean_object*);
|
||||
lean_object* l_Lean_MVarId_getMVarDependencies(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_hasExprMVar(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; lean_object* x_7; uint8_t x_8;
|
||||
x_3 = lean_ctor_get(x_1, 1);
|
||||
x_4 = lean_array_get_size(x_3);
|
||||
x_5 = l___private_Lean_Expr_0__Lean_hashMVarId____x40_Lean_Expr___hyg_1921_(x_2);
|
||||
x_6 = lean_hashset_mk_idx(x_4, x_5);
|
||||
x_7 = lean_array_uget(x_3, x_6);
|
||||
x_8 = l_List_elem___at_Lean_MVarId_getMVarDependencies_addMVars___spec__3(x_2, x_7);
|
||||
lean_dec(x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_8 = 1;
|
||||
x_9 = lean_box(x_8);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_9);
|
||||
lean_ctor_set(x_10, 1, x_7);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14;
|
||||
x_11 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_2);
|
||||
x_13 = 0;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_14 = l_Lean_MVarId_getMVarDependencies(x_11, x_13, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_16 = lean_ctor_get(x_14, 0);
|
||||
x_17 = lean_ctor_get(x_14, 1);
|
||||
x_18 = l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1(x_16, x_1);
|
||||
lean_dec(x_16);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_free_object(x_14);
|
||||
x_2 = x_12;
|
||||
x_7 = x_17;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_20 = lean_box(x_13);
|
||||
lean_ctor_set(x_14, 0, x_20);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; uint8_t x_23;
|
||||
x_21 = lean_ctor_get(x_14, 0);
|
||||
x_22 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_14);
|
||||
x_23 = l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1(x_21, x_1);
|
||||
lean_dec(x_21);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
x_2 = x_12;
|
||||
x_7 = x_22;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_25 = lean_box(x_13);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_22);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_27;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_27 = !lean_is_exclusive(x_14);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_14, 0);
|
||||
x_29 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_14);
|
||||
x_30 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_28);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
lean_dec(x_3);
|
||||
x_9 = l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2(x_1, x_2, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
lean_dec(x_3);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_1);
|
||||
x_9 = l_Lean_MVarId_isSubsingleton(x_1, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_unbox(x_10);
|
||||
lean_dec(x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_9);
|
||||
x_13 = l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2(x_1, x_2, x_4, x_5, x_6, x_7, x_12);
|
||||
lean_dec(x_1);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_14;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_14 = !lean_is_exclusive(x_9);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15; uint8_t x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_9, 0);
|
||||
lean_dec(x_15);
|
||||
x_16 = 1;
|
||||
x_17 = lean_box(x_16);
|
||||
lean_ctor_set(x_9, 0, x_17);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_18 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_9);
|
||||
x_19 = 1;
|
||||
x_20 = lean_box(x_19);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_18);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_22;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_22 = !lean_is_exclusive(x_9);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_9, 0);
|
||||
x_24 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_9);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
lean_dec(x_4);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_10 = lean_infer_type(x_1, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = !lean_is_exclusive(x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_12 = lean_ctor_get(x_10, 0);
|
||||
x_13 = lean_ctor_get(x_10, 1);
|
||||
x_14 = l_Lean_Expr_isProp(x_12);
|
||||
lean_dec(x_12);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
lean_free_object(x_10);
|
||||
x_15 = lean_box(0);
|
||||
x_16 = l_Lean_MVarId_isIndependentOf___lambda__2(x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_13);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_17; lean_object* x_18;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_17 = 1;
|
||||
x_18 = lean_box(x_17);
|
||||
lean_ctor_set(x_10, 0, x_18);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = lean_ctor_get(x_10, 0);
|
||||
x_20 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_10);
|
||||
x_21 = l_Lean_Expr_isProp(x_19);
|
||||
lean_dec(x_19);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23;
|
||||
x_22 = lean_box(0);
|
||||
x_23 = l_Lean_MVarId_isIndependentOf___lambda__2(x_2, x_3, x_22, x_5, x_6, x_7, x_8, x_20);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_24; lean_object* x_25; lean_object* x_26;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_24 = 1;
|
||||
x_25 = lean_box(x_24);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_20);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_27;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_27 = !lean_is_exclusive(x_10);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_10, 0);
|
||||
x_29 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_10);
|
||||
x_30 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_28);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
lean_inc(x_1);
|
||||
x_8 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_11 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_9, x_3, x_4, x_5, x_6, x_10);
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_ctor_get(x_11, 1);
|
||||
x_15 = l_Lean_Expr_hasExprMVar(x_13);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
lean_free_object(x_11);
|
||||
x_16 = lean_box(0);
|
||||
x_17 = l_Lean_MVarId_isIndependentOf___lambda__3(x_13, x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_14);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_18; lean_object* x_19;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_18 = 0;
|
||||
x_19 = lean_box(x_18);
|
||||
lean_ctor_set(x_11, 0, x_19);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_20 = lean_ctor_get(x_11, 0);
|
||||
x_21 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_11);
|
||||
x_22 = l_Lean_Expr_hasExprMVar(x_20);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_box(0);
|
||||
x_24 = l_Lean_MVarId_isIndependentOf___lambda__3(x_20, x_1, x_2, x_23, x_3, x_4, x_5, x_6, x_21);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25; lean_object* x_26; lean_object* x_27;
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_25 = 0;
|
||||
x_26 = lean_box(x_25);
|
||||
x_27 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_27, 1, x_21);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_28;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_28 = !lean_is_exclusive(x_8);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_8, 0);
|
||||
x_30 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_8);
|
||||
x_31 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_isIndependentOf___lambda__4), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_2);
|
||||
lean_closure_set(x_8, 1, x_1);
|
||||
x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_2, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Lean_HashSetImp_contains___at_Lean_MVarId_isIndependentOf___spec__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_List_allM___at_Lean_MVarId_isIndependentOf___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isIndependentOf___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_MVarId_isIndependentOf___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Meta_CollectMVars(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_IndependentOf(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Lean_Meta_CollectMVars(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Util(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1313
stage0/stdlib/Lean/Meta/Tactic/Replace.c
generated
1313
stage0/stdlib/Lean/Meta/Tactic/Replace.c
generated
File diff suppressed because it is too large
Load diff
|
|
@ -374,7 +374,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_
|
|||
LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, 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___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___lambda__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorem_priority___default;
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_ppOrigin___rarg___lambda__1___closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go___closed__5;
|
||||
static lean_object* l___auto____x40_Lean_Meta_Tactic_Simp_SimpTheorems___hyg_4922____closed__13;
|
||||
|
|
@ -550,6 +549,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_
|
|||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_addSimpTheoremEntry___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_DiscrTree_reduceDT(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_SimpTheorem_getValue___closed__2;
|
||||
lean_object* l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_instInhabitedSimpTheorems___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremsFromConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1076,7 +1076,7 @@ x_100 = lean_box(1);
|
|||
x_101 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_101, 0, x_99);
|
||||
lean_ctor_set(x_101, 1, x_100);
|
||||
x_102 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_2056_(x_94, x_95);
|
||||
x_102 = l___private_Init_Meta_0__Lean_Syntax_reprSyntax____x40_Init_Meta___hyg_3429_(x_94, x_95);
|
||||
x_103 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_103, 0, x_101);
|
||||
lean_ctor_set(x_103, 1, x_102);
|
||||
|
|
|
|||
8282
stage0/stdlib/Lean/Meta/Tactic/SolveByElim.c
generated
Normal file
8282
stage0/stdlib/Lean/Meta/Tactic/SolveByElim.c
generated
Normal file
File diff suppressed because it is too large
Load diff
7377
stage0/stdlib/Lean/Meta/Tactic/Symm.c
generated
Normal file
7377
stage0/stdlib/Lean/Meta/Tactic/Symm.c
generated
Normal file
File diff suppressed because it is too large
Load diff
188
stage0/stdlib/Lean/Meta/Tactic/Util.c
generated
188
stage0/stdlib/Lean/Meta/Tactic/Util.c
generated
|
|
@ -44,6 +44,7 @@ size_t lean_hashset_mk_idx(lean_object*, uint64_t);
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwNestedTacticEx___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_headBetaType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_isSubsingleton___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkHashSetImp___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_418____closed__16;
|
||||
|
|
@ -73,6 +74,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwNestedTacticEx___
|
|||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_setMVarUserName(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_isSubsingleton___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_getNondepPropHyps___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Exception_toMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_appendTag(lean_object*, lean_object*);
|
||||
|
|
@ -120,6 +122,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_admit(lean_object*, uint8_t, lean_object*,
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwNestedTacticEx___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_getNondepPropHyps___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HashSetImp_contains___at_Lean_MVarId_getNondepPropHyps___spec__19___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_getNondepPropHyps___spec__17(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -133,6 +136,7 @@ lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_getNondepPropHyps___spec__14___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HashSetImp_insert___at_Lean_MVarId_getNondepPropHyps___spec__9(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_getNondepPropHyps___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isSubsingleton(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getMVarType_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_admit___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -209,6 +213,7 @@ lean_object* lean_erase_macro_scopes(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_ensureAtMostOne___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_mkHashSet___at_Lean_MVarId_getNondepPropHyps___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_saturate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_isSubsingleton___closed__1;
|
||||
static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_418____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_getNondepPropHyps___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
|
|
@ -238,6 +243,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_headBetaMVarType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_MVarId_getNondepPropHyps___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Exception_isRuntime(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_HashSetImp_expand___at_Lean_MVarId_getNondepPropHyps___spec__10(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_getNondepPropHyps___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_MVarId_checkNotAssigned___closed__2;
|
||||
|
|
@ -8024,6 +8030,182 @@ x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_M
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MVarId_isSubsingleton___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Subsingleton", 12);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MVarId_isSubsingleton___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_MVarId_isSubsingleton___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MVarId_isSubsingleton___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(1u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_isSubsingleton(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_19;
|
||||
x_19 = l_Lean_MVarId_getType(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = l_Lean_MVarId_isSubsingleton___closed__3;
|
||||
x_23 = lean_array_push(x_22, x_20);
|
||||
x_24 = l_Lean_MVarId_isSubsingleton___closed__2;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_25 = l_Lean_Meta_mkAppM(x_24, x_23, x_2, x_3, x_4, x_5, x_21);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_25);
|
||||
x_28 = lean_box(0);
|
||||
lean_inc(x_4);
|
||||
x_29 = l_Lean_Meta_synthInstance(x_26, x_28, x_2, x_3, x_4, x_5, x_27);
|
||||
if (lean_obj_tag(x_29) == 0)
|
||||
{
|
||||
uint8_t x_30;
|
||||
lean_dec(x_4);
|
||||
x_30 = !lean_is_exclusive(x_29);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
lean_object* x_31; uint8_t x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_29, 0);
|
||||
lean_dec(x_31);
|
||||
x_32 = 1;
|
||||
x_33 = lean_box(x_32);
|
||||
lean_ctor_set(x_29, 0, x_33);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_34 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_29);
|
||||
x_35 = 1;
|
||||
x_36 = lean_box(x_35);
|
||||
x_37 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_36);
|
||||
lean_ctor_set(x_37, 1, x_34);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39;
|
||||
x_38 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_29);
|
||||
x_7 = x_38;
|
||||
x_8 = x_39;
|
||||
goto block_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_40 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_25);
|
||||
x_7 = x_40;
|
||||
x_8 = x_41;
|
||||
goto block_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_42; lean_object* x_43;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_42 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_42);
|
||||
x_43 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_19);
|
||||
x_7 = x_42;
|
||||
x_8 = x_43;
|
||||
goto block_18;
|
||||
}
|
||||
block_18:
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = l_Lean_Exception_isRuntime(x_7);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11; lean_object* x_12;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
x_10 = 0;
|
||||
x_11 = lean_box(x_10);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_11);
|
||||
lean_ctor_set(x_12, 1, x_8);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_13;
|
||||
x_13 = lean_ctor_get_uint8(x_4, sizeof(void*)*11);
|
||||
lean_dec(x_4);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_7);
|
||||
lean_ctor_set(x_14, 1, x_8);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_15; lean_object* x_16; lean_object* x_17;
|
||||
lean_dec(x_7);
|
||||
x_15 = 0;
|
||||
x_16 = lean_box(x_15);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_8);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Util_ForEachExprWhere(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*);
|
||||
|
|
@ -8138,6 +8320,12 @@ l_Lean_MVarId_inferInstance___closed__1 = _init_l_Lean_MVarId_inferInstance___cl
|
|||
lean_mark_persistent(l_Lean_MVarId_inferInstance___closed__1);
|
||||
l_Lean_MVarId_inferInstance___closed__2 = _init_l_Lean_MVarId_inferInstance___closed__2();
|
||||
lean_mark_persistent(l_Lean_MVarId_inferInstance___closed__2);
|
||||
l_Lean_MVarId_isSubsingleton___closed__1 = _init_l_Lean_MVarId_isSubsingleton___closed__1();
|
||||
lean_mark_persistent(l_Lean_MVarId_isSubsingleton___closed__1);
|
||||
l_Lean_MVarId_isSubsingleton___closed__2 = _init_l_Lean_MVarId_isSubsingleton___closed__2();
|
||||
lean_mark_persistent(l_Lean_MVarId_isSubsingleton___closed__2);
|
||||
l_Lean_MVarId_isSubsingleton___closed__3 = _init_l_Lean_MVarId_isSubsingleton___closed__3();
|
||||
lean_mark_persistent(l_Lean_MVarId_isSubsingleton___closed__3);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
1216
stage0/stdlib/Lean/Parser.c
generated
1216
stage0/stdlib/Lean/Parser.c
generated
File diff suppressed because it is too large
Load diff
2421
stage0/stdlib/Lean/Parser/Basic.c
generated
2421
stage0/stdlib/Lean/Parser/Basic.c
generated
File diff suppressed because it is too large
Load diff
1965
stage0/stdlib/Lean/Parser/Command.c
generated
1965
stage0/stdlib/Lean/Parser/Command.c
generated
File diff suppressed because it is too large
Load diff
820
stage0/stdlib/Lean/Parser/Extension.c
generated
820
stage0/stdlib/Lean/Parser/Extension.c
generated
File diff suppressed because it is too large
Load diff
1208
stage0/stdlib/Lean/Parser/Module.c
generated
1208
stage0/stdlib/Lean/Parser/Module.c
generated
File diff suppressed because it is too large
Load diff
1748
stage0/stdlib/Lean/Parser/Types.c
generated
1748
stage0/stdlib/Lean/Parser/Types.c
generated
File diff suppressed because it is too large
Load diff
226
stage0/stdlib/Lean/PrettyPrinter/Formatter.c
generated
226
stage0/stdlib/Lean/PrettyPrinter/Formatter.c
generated
|
|
@ -37,7 +37,6 @@ extern lean_object* l_Std_instInhabitedFormat;
|
|||
static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__3___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Formatter_0__Lean_PrettyPrinter_Formatter_SourceInfo_getExprPos_x3f(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkWsBefore_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Formatter_manyNoAntiquot_formatter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -48,7 +47,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_State_leadWord___default
|
|||
static lean_object* l_Lean_PrettyPrinter_formatCommand___closed__2;
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_PrettyPrinter_Formatter_sepByNoAntiquot_formatter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__13;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__6;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_parseToken(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkStackTop_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -60,13 +59,11 @@ static lean_object* l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1;
|
|||
static lean_object* l_panic___at_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_fill(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_rawIdentNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_getStackSize___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__3;
|
||||
lean_object* l_Lean_indentD(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_parseToken___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
|
|
@ -96,6 +93,7 @@ lean_object* lean_array_push(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_PrettyPrinter_runForNodeKind___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_sepByNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___spec__1(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_visitArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkColGe_formatter___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_format___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -129,15 +127,17 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkNoWsBefore_formatte
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_format(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__4;
|
||||
lean_object* l_Lean_Elab_addConstInfo___at_Lean_registerInitAttrUnsafe___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4813_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_error_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_FormatterM_orElse(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_parseToken___closed__2;
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_PrettyPrinter_Formatter_sepByNoAntiquot_formatter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkStackTop_formatter___rarg(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_PrettyPrinter_Formatter_State_isUngrouped___default;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_State_stack___default;
|
||||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_PrettyPrinter_Formatter_categoryFormatterCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkLhsPrec_formatter(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_fieldIdx_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -159,6 +159,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__1___
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_format___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkNoWsBefore_formatter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_charLitNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__4;
|
||||
lean_object* lean_string_utf8_byte_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter___rarg(lean_object*);
|
||||
lean_object* l_Lean_Parser_ParserFn_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -168,7 +169,6 @@ uint8_t l_Std_Format_isNil(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withMaybeTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_format___lambda__4___closed__4;
|
||||
extern lean_object* l_instInhabitedNat;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_skip_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_instInhabitedPUnit;
|
||||
LEAN_EXPORT uint8_t l_Lean_PrettyPrinter_format___lambda__2(uint32_t);
|
||||
|
|
@ -178,16 +178,16 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_getStack___rarg(lean_obj
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_format___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkLinebreakBefore_formatter___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withoutInfo_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_FormatterM_orElse___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withFn_formatter(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_recover_x27_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_format___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkTailWs_formatter(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Formatter_unicodeSymbolNoAntiquot_formatter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -214,10 +214,10 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPri
|
|||
static lean_object* l_Lean_PrettyPrinter_Formatter_numLitNoAntiquot_formatter___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkColGt_formatter___rarg(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_nameLitNoAntiquot_formatter___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_charLitNoAntiquot_formatter___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbolNoAntiquot_formatter___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_formatCommand(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_getStack___boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_PrettyPrinter_Formatter_State_mustBeGrouped___default;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__2;
|
||||
|
|
@ -235,6 +235,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_concat___lambda__1(lean_
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkPrec_formatter(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withAntiquotSuffixSplice_formatter(lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__5;
|
||||
lean_object* l_List_range(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_numLitNoAntiquot_formatter___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__4___closed__1;
|
||||
|
|
@ -246,6 +247,7 @@ static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___close
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_mkParserState(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Formatter_0__Lean_PrettyPrinter_Formatter_push(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbolNoAntiquot_formatter___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_visitAtom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -272,6 +274,7 @@ lean_object* l_Lean_FileMap_ofString(lean_object*);
|
|||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___lambda__3___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushWhitespace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__9;
|
||||
lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_scientificLitNoAntiquot_formatter___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__4;
|
||||
|
|
@ -280,7 +283,6 @@ lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
|
|||
lean_object* l_instInhabited___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__9;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_throwBacktrack___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkPrec_formatter___rarg(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2;
|
||||
|
|
@ -300,18 +302,19 @@ uint8_t lean_name_eq(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_PrettyPrinter_formatTerm___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkColGt_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_antiquot_formatter(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_formatTerm___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__9;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__11;
|
||||
uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_rawCh_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__7;
|
||||
static lean_object* l_Lean_PrettyPrinter_format___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891_(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbolNoAntiquot_formatter___closed__1;
|
||||
uint8_t l_Lean_Syntax_isTokenAntiquot(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter___lambda__1___closed__2;
|
||||
|
|
@ -319,6 +322,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Forma
|
|||
static lean_object* l_Lean_PrettyPrinter_Formatter_concat___closed__1;
|
||||
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_panic___at_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___spec__1___closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__6;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_identEq_formatter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1___boxed(lean_object*);
|
||||
|
|
@ -327,12 +331,10 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushNone_formatter___rar
|
|||
static lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__2___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_pp_oneline;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_trailingNode_formatter___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__7;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCombinatorFormatterAttribute___closed__5;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__5;
|
||||
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
|
||||
lean_object* lean_int_sub(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__12;
|
||||
extern lean_object* l_Lean_inheritedTraceOptions;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -353,7 +355,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushNone_formatter___box
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_combinatorFormatterAttribute;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__5;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__3;
|
||||
uint8_t l_Lean_Syntax_isToken(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ParserCompiler_registerCombinatorAttribute(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___closed__4;
|
||||
|
|
@ -379,8 +380,6 @@ static lean_object* l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1;
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_visitArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4797_(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_errorAtSavedPos_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_setStack(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -403,12 +402,11 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_eoi_formatter___boxed(le
|
|||
static lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__2___closed__1;
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_charLitNoAntiquot_formatter___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__5;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__2;
|
||||
lean_object* l_Array_shrink___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goDown___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_format___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -425,6 +423,7 @@ lean_object* l_Std_Format_getIndent(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___closed__4;
|
||||
extern lean_object* l_Lean_PrettyPrinter_backtrackExceptionId;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_skip_formatter___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_andthen_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_errorAtSavedPos_formatter(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -456,11 +455,13 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withMaybeTag___boxed(lea
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_format___lambda__4___closed__5;
|
||||
static lean_object* l_Lean_PrettyPrinter_format___lambda__4___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_recover_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_visitArgs___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_getStackSize(lean_object*);
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_many1NoAntiquot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_Traverser_up(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__10;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___closed__1;
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCombinatorFormatterAttribute___closed__2;
|
||||
|
|
@ -479,6 +480,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushAlign___boxed(lean_o
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_hygieneInfoNoAntiquot_formatter___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_registerAlias___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_instCoeForAllFormatterFormatterAliasValue(lean_object*);
|
||||
lean_object* lean_string_append(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6;
|
||||
|
|
@ -489,13 +491,13 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatt
|
|||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Lean_Parser_whitespace(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkLinebreakBefore_formatter(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkCombinatorFormatterAttribute(lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_categoryParser_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_isTracingEnabledFor___at_Lean_PrettyPrinter_Formatter_categoryFormatterCore___spec__1___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_unicodeSymbolNoAntiquot_formatter___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__4___boxed(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withFn_formatter___boxed(lean_object*);
|
||||
|
|
@ -4223,6 +4225,22 @@ return x_57;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_recover_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_recover_x27_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_mkAntiquot_formatter_x27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -7785,7 +7803,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__5;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__6;
|
||||
x_3 = lean_unsigned_to_nat(388u);
|
||||
x_3 = lean_unsigned_to_nat(394u);
|
||||
x_4 = lean_unsigned_to_nat(42u);
|
||||
x_5 = l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__7;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -10241,7 +10259,7 @@ x_10 = l_Lean_PrettyPrinter_Formatter_ite___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4797_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4813_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
|
|
@ -10311,7 +10329,7 @@ lean_ctor_set(x_2, 0, x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10319,7 +10337,7 @@ x_1 = lean_mk_string_from_bytes("pp", 2);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10327,17 +10345,17 @@ x_1 = lean_mk_string_from_bytes("oneline", 7);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__3() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2;
|
||||
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__4() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10345,13 +10363,13 @@ x_1 = lean_mk_string_from_bytes("(pretty printer) elide all but first line of pr
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__5() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__5() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = 0;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1;
|
||||
x_3 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1;
|
||||
x_3 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__4;
|
||||
x_4 = lean_box(x_1);
|
||||
x_5 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
|
|
@ -10360,25 +10378,25 @@ lean_ctor_set(x_5, 2, x_3);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__6() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Lean_PrettyPrinter_mkFormatterAttribute___closed__5;
|
||||
x_2 = l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6;
|
||||
x_3 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2;
|
||||
x_3 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2;
|
||||
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__3;
|
||||
x_3 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__5;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__6;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__3;
|
||||
x_3 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__5;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__6;
|
||||
x_5 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6____spec__1(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
}
|
||||
|
|
@ -11187,7 +11205,7 @@ x_6 = l_Lean_PrettyPrinter_formatCategory(x_5, x_1, x_2, x_3, x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__1() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -11197,17 +11215,17 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__2() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__1;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__1;
|
||||
x_2 = l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__3() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -11215,17 +11233,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__4() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__2;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__2;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__3;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__5() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -11233,47 +11251,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__6() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__5;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__7() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__6;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__6;
|
||||
x_2 = l_Lean_PrettyPrinter_mkFormatterAttribute___closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__8() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__7;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__7;
|
||||
x_2 = l_Lean_PrettyPrinter_mkFormatterAttribute___closed__6;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__9() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__8;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__8;
|
||||
x_2 = l_Lean_PrettyPrinter_mkFormatterAttribute___closed__7;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__10() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -11281,33 +11299,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__11() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__9;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__10;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__9;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__10;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__12() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__11;
|
||||
x_2 = lean_unsigned_to_nat(5359u);
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__11;
|
||||
x_2 = lean_unsigned_to_nat(5375u);
|
||||
x_3 = l_Lean_Name_num___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__2;
|
||||
x_3 = 0;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__12;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__12;
|
||||
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
{
|
||||
|
|
@ -11638,26 +11656,26 @@ l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Formatter_interpolatedStr_form
|
|||
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___spec__2___closed__2);
|
||||
l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1 = _init_l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4797_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4813_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_PrettyPrinter_Formatter_formatterAliasesRef = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_formatterAliasesRef);
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_PrettyPrinter_Formatter_registerAlias___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_registerAlias___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_registerAlias___closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__3 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__3();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__3);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__4 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__4);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__5 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__5);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__6 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891____closed__6);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4891_(lean_io_mk_world());
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__3 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__3();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__3);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__4 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__4);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__5 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__5);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__6 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907____closed__6);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_4907_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_PrettyPrinter_pp_oneline = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_pp_oneline);
|
||||
|
|
@ -11692,31 +11710,31 @@ l_Lean_PrettyPrinter_formatCommand___closed__1 = _init_l_Lean_PrettyPrinter_form
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_formatCommand___closed__1);
|
||||
l_Lean_PrettyPrinter_formatCommand___closed__2 = _init_l_Lean_PrettyPrinter_formatCommand___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_formatCommand___closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__1 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__2 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__3 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__3();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__3);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__4 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__4);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__5 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__5);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__6 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__6);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__7 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__7);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__8 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__8();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__8);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__9 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__9();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__9);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__10 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__10();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__10);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__11 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__11();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__11);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__12 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__12();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359____closed__12);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5359_(lean_io_mk_world());
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__1 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__2 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__3 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__3();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__3);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__4 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__4);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__5 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__5);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__6 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__6);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__7 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__7);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__8 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__8();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__8);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__9 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__9();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__9);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__10 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__10();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__10);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__11 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__11();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__11);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__12 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__12();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375____closed__12);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_5375_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
152
stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c
generated
152
stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c
generated
|
|
@ -15,6 +15,7 @@ extern "C" {
|
|||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_fieldIdx_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__4___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_recover_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_liftCoreM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_unicodeSymbolNoAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -32,7 +33,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_rawStx_parenthesizer
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_strLitNoAntiquot_parenthesizer(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_categoryParenthesizerAttribute;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_State_trailCat___default;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_throwBacktrack___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -48,15 +48,17 @@ static lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___clos
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_mkAntiquot_parenthesizer_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__3___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goLeft___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkStackTop_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_pushNone_parenthesizer(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_parenthesizeTerm(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer_wrapParens___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_strLitNoAntiquot_parenthesizer___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_skip_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__4;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__2;
|
||||
lean_object* l_Lean_Syntax_getHeadInfo(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__5___closed__1;
|
||||
lean_object* l_Lean_indentD(lean_object*);
|
||||
|
|
@ -75,7 +77,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_withAntiquotSuffixSp
|
|||
uint8_t l_Lean_Syntax_isAntiquotSuffixSplice(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkNoImmediateColon_parenthesizer___rarg(lean_object*);
|
||||
lean_object* l_Lean_KeyedDeclsAttribute_init___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4278_(lean_object*);
|
||||
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__4;
|
||||
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2;
|
||||
|
|
@ -88,6 +90,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_setCur___at_Lean_PrettyPri
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goDown___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_rawCh_parenthesizer___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_symbolNoAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_PrettyPrinter_Parenthesizer_sepByNoAntiquot_parenthesizer___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_many1Unbox_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -128,6 +131,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute__
|
|||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_manyNoAntiquot_parenthesizer___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkKind___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_rawCh_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_addConstInfo___at_Lean_registerInitAttrUnsafe___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1(lean_object*);
|
||||
|
|
@ -176,7 +180,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColGe_parenthes
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_categoryParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkLinebreakBefore_parenthesizer___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4262_(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1;
|
||||
extern lean_object* l_instInhabitedNat;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkCombinatorParenthesizerAttribute(lean_object*);
|
||||
|
|
@ -195,7 +198,7 @@ uint8_t l_Lean_Syntax_isAntiquot(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkNoWsBefore_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568_(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_instOrElseParenthesizerM(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__3___closed__1;
|
||||
|
|
@ -227,7 +230,6 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_term_pa
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkWsBefore_parenthesizer___rarg(lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColGe_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_range(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_sepByNoAntiquot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -241,6 +243,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer_w
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadQuotationParenthesizerM;
|
||||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_optionalNoAntiquot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__5;
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_setCur___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -270,6 +273,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_parserOfStack_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_recover_x27_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_parenthesize___closed__1;
|
||||
lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__20;
|
||||
|
|
@ -277,6 +281,7 @@ lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_visitArgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__9;
|
||||
lean_object* l_Lean_Syntax_Traverser_right(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_pushNone_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -287,7 +292,6 @@ static lean_object* l_Lean_PrettyPrinter_Parenthesizer_identNoAntiquot_parenthes
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__4___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_visitArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__5;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkKind___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColEq_parenthesizer___rarg(lean_object*);
|
||||
|
|
@ -297,7 +301,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_visitToken(lean_obje
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__16;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_withPosition_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_isTracingEnabledFor___at_Lean_addDecl___spec__8(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_rawIdentNoAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -334,6 +337,7 @@ uint8_t l_Lean_Syntax_isTokenAntiquot(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_symbolNoAntiquot_parenthesizer___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_parenthesize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_many1Unbox_parenthesizer___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__4___closed__1;
|
||||
|
|
@ -361,7 +365,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Paren
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___closed__3;
|
||||
extern lean_object* l_Lean_Core_instMonadQuotationCoreM;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkKind___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_identEq_parenthesizer(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadQuotationParenthesizerM___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -374,7 +377,6 @@ static lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___clos
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__21;
|
||||
static lean_object* l_Lean_PrettyPrinter_parenthesize___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_unicodeSymbolNoAntiquot_parenthesizer___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instMonadQuotation___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -401,7 +403,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_mod(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer_wrapParens___closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__7;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColGe_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadQuotationParenthesizerM___closed__3;
|
||||
|
|
@ -438,7 +440,6 @@ lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object
|
|||
lean_object* l_Lean_Syntax_Traverser_setCur(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkTailWs_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_error_parenthesizer___rarg(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__1;
|
||||
extern lean_object* l_Lean_PrettyPrinter_backtrackExceptionId;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___closed__2;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer(lean_object*);
|
||||
|
|
@ -456,7 +457,6 @@ lean_object* l_Array_back___rarg(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_charLitNoAntiquot_parenthesizer___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_withAntiquotSuffixSplice_parenthesizer___boxed(lean_object*);
|
||||
lean_object* l_List_reverse___rarg(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__9;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_throwBacktrack___rarg___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadQuotationParenthesizerM___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -464,6 +464,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_instCoeForAllParenth
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__15;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_parenthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__3___closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_strLitNoAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_tokenWithAntiquot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -481,6 +482,7 @@ lean_object* lean_array_uget(lean_object*, size_t);
|
|||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goRight___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_State_contPrec___default;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_strLitNoAntiquot_parenthesizer___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_interpretParserDescr_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -541,12 +543,12 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_many1NoAntiquot_pare
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_liftCoreM(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__3;
|
||||
lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Parser_getCategory___spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_throwBacktrack(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkTailWs_parenthesizer___rarg(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__11;
|
||||
static lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__12;
|
||||
lean_object* l_Nat_repr(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_identNoAntiquot_parenthesizer___closed__1;
|
||||
|
|
@ -6388,6 +6390,22 @@ lean_dec(x_3);
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_recover_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_recover_x27_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_mkAntiquot_parenthesizer_x27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -10120,7 +10138,7 @@ x_10 = l_Lean_PrettyPrinter_Parenthesizer_ite___rarg(x_9, x_2, x_3, x_4, x_5, x_
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4262_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4278_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
|
|
@ -10786,7 +10804,7 @@ x_6 = l_Lean_PrettyPrinter_parenthesizeCategory(x_5, x_1, x_2, x_3, x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__1() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -10796,17 +10814,17 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__2() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__1;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__1;
|
||||
x_2 = l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__6;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__3() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10814,17 +10832,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__4() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__2;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__2;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__3;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__5() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10832,47 +10850,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__6() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__5;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__4;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__7() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__6;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__6;
|
||||
x_2 = l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__8() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__7;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__7;
|
||||
x_2 = l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__6;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__9() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__8;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__8;
|
||||
x_2 = l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__7;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__10() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10880,33 +10898,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__11() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__9;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__10;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__9;
|
||||
x_2 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__10;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__12() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__11;
|
||||
x_2 = lean_unsigned_to_nat(4568u);
|
||||
x_1 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__11;
|
||||
x_2 = lean_unsigned_to_nat(4584u);
|
||||
x_3 = l_Lean_Name_num___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__2;
|
||||
x_3 = 0;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__12;
|
||||
x_4 = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__12;
|
||||
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
{
|
||||
|
|
@ -11333,7 +11351,7 @@ l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___closed__1 = _
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___closed__1);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___boxed__const__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___boxed__const__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___boxed__const__1);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4262_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4278_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef);
|
||||
|
|
@ -11352,31 +11370,31 @@ l_Lean_PrettyPrinter_parenthesizeCommand___closed__1 = _init_l_Lean_PrettyPrinte
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_parenthesizeCommand___closed__1);
|
||||
l_Lean_PrettyPrinter_parenthesizeCommand___closed__2 = _init_l_Lean_PrettyPrinter_parenthesizeCommand___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_parenthesizeCommand___closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__1 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__2 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__3 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__3();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__3);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__4 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__4);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__5 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__5);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__6 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__6);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__7 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__7);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__8 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__8();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__8);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__9 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__9();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__9);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__10 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__10();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__10);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__11 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__11();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__11);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__12 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__12();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568____closed__12);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4568_(lean_io_mk_world());
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__1 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__1);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__2 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__2);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__3 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__3();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__3);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__4 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__4);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__5 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__5);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__6 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__6);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__7 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__7);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__8 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__8();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__8);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__9 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__9();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__9);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__10 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__10();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__10);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__11 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__11();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__11);
|
||||
l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__12 = _init_l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__12();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584____closed__12);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_4584_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
37
stage0/stdlib/Lean/Util/Trace.c
generated
37
stage0/stdlib/Lean/Util/Trace.c
generated
|
|
@ -197,6 +197,7 @@ static lean_object* l_Lean_resetTraceState___rarg___closed__1;
|
|||
LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_withTraceNode___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___auto____x40_Lean_Util_Trace___hyg_2607____closed__15;
|
||||
LEAN_EXPORT lean_object* l_Lean_setTraceState___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_exceptEmoji___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_withTraceNode_x27___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_printTraces___spec__3___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Util__Trace______macroRules__Lean__doElemTrace_x5b___x5d______1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -341,6 +342,7 @@ static lean_object* l_Lean_doElemTrace_x5b___x5d_______closed__24;
|
|||
static lean_object* l_Lean_doElemTrace_x5b___x5d_______closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_shouldEnableNestedTrace___rarg___lambda__1(lean_object*, uint8_t, double, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_withTraceNode_x27___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_exceptEmoji___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_Trace___hyg_1330_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_printTraces___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -380,6 +382,7 @@ static lean_object* l___auto____x40_Lean_Util_Trace___hyg_2607____closed__9;
|
|||
LEAN_EXPORT lean_object* l_Lean_withTraceNode___rarg___lambda__8___boxed(lean_object**);
|
||||
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean___aux__Lean__Util__Trace______macroRules__Lean__doElemTrace_x5b___x5d______1___closed__15;
|
||||
LEAN_EXPORT lean_object* l_Lean_exceptEmoji(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Util__Trace______macroRules__Lean__doElemTrace_x5b___x5d______1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withTraceNodeBefore___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -6855,6 +6858,40 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_exceptEmoji___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_crossEmoji;
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_checkEmoji;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_exceptEmoji(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_exceptEmoji___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_exceptEmoji___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_exceptEmoji___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_instExceptToEmojiBool___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue