chore: update stage0
This commit is contained in:
parent
17e498c11f
commit
0199228784
2 changed files with 1966 additions and 1209 deletions
2804
stage0/stdlib/Lean/Elab/Do.c
generated
2804
stage0/stdlib/Lean/Elab/Do.c
generated
File diff suppressed because it is too large
Load diff
371
stage0/stdlib/Lean/Elab/MatchExpr.c
generated
371
stage0/stdlib/Lean/Elab/MatchExpr.c
generated
|
|
@ -28,6 +28,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getP
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_getParams(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_getActuals___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__30;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__6;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toDoubleQuotedName___closed__6;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_getParams___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -36,7 +37,11 @@ static lean_object* l_Lean_Elab_Term_MatchExpr_toAlt_x3f___closed__2;
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__23;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toAlt_x3f___lambda__1___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toDoubleQuotedName___closed__7;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__4;
|
||||
static lean_object* l_Lean_Elab_Term_expandLetExpr___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_Term_MatchExpr_getParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_expandLetExpr___closed__4;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_toDoubleQuotedName(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_Alt_k___default;
|
||||
|
|
@ -44,8 +49,10 @@ lean_object* lean_array_push(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__5;
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate_loop___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_getParams___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_expandLetExpr___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__1;
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate___spec__2(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_Elab_Term_expandLetExpr___closed__6;
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__9;
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
|
|
@ -90,6 +97,7 @@ static lean_object* l_Lean_Elab_Term_MatchExpr_toAlt_x3f___closed__4;
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__8;
|
||||
lean_object* l_Array_reverse___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_MatchExpr_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_expandLetExpr___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_shouldSaveActual___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__16;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toAlt_x3f___lambda__1___closed__4;
|
||||
|
|
@ -100,6 +108,7 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generat
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__38;
|
||||
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandLetExpr(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandMatchExpr___closed__4;
|
||||
static lean_object* l_Lean_Elab_Term_expandMatchExpr___closed__1;
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate___spec__2___closed__3;
|
||||
|
|
@ -119,6 +128,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr
|
|||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_getFunNamesToMatch___spec__2___closed__3;
|
||||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__15;
|
||||
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__36;
|
||||
|
|
@ -135,6 +145,7 @@ lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__20;
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__18;
|
||||
extern lean_object* l_Lean_Elab_macroAttribute;
|
||||
static lean_object* l_Lean_Elab_Term_expandMatchExpr___closed__2;
|
||||
|
|
@ -149,6 +160,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_getActuals___lambda__1(lean_
|
|||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__15;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__23;
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_Term_MatchExpr_shouldSaveActual(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__14;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__21;
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__2;
|
||||
|
|
@ -157,6 +170,7 @@ static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_getFunNamesT
|
|||
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandMatchExpr_declRange___closed__3;
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__10;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_getParams___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__40;
|
||||
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -178,6 +192,7 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generat
|
|||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_next(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandMatchExpr_declRange___closed__1;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate_loop___spec__1___closed__6;
|
||||
|
|
@ -193,6 +208,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f(lean_object*);
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__24;
|
||||
uint8_t l_Lean_Syntax_isNone(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__10;
|
||||
static lean_object* l_Lean_Elab_Term_expandLetExpr___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__35;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toAlt_x3f___lambda__1___closed__5;
|
||||
|
|
@ -229,6 +245,7 @@ static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__7;
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_getActuals___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toDoubleQuotedName___closed__2;
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__7;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate_loop___lambda__2___closed__2;
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__10;
|
||||
|
|
@ -236,9 +253,11 @@ uint8_t lean_usize_dec_lt(size_t, size_t);
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_toDoubleQuotedName___closed__1;
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate_loop___spec__1___closed__15;
|
||||
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__14;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_MatchExpr_getFunNamesToMatch___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_List_mapM_loop___at_Lean_Elab_Term_MatchExpr_main___spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__13;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandMatchExpr___closed__3;
|
||||
LEAN_EXPORT uint8_t l_Lean_Elab_Term_MatchExpr_shouldSaveActual___lambda__1(lean_object*);
|
||||
|
|
@ -256,6 +275,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MatchExpr_getAltFor_x3f(lean_object*,
|
|||
static lean_object* l_Lean_Elab_Term_MatchExpr_initK___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_toAlt_x3f___closed__3;
|
||||
lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_expandLetExpr___closed__7;
|
||||
static lean_object* l_Lean_Elab_Term_MatchExpr_generate___closed__15;
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate_loop___spec__1___closed__9;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_expandMatchExpr___closed__2;
|
||||
|
|
@ -4547,6 +4567,317 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("letExpr", 7);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___closed__2() {
|
||||
_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_Elab_Term_MatchExpr_toElseAlt_x3f___closed__1;
|
||||
x_2 = l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__2;
|
||||
x_3 = l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__3;
|
||||
x_4 = l_Lean_Elab_Term_expandLetExpr___closed__1;
|
||||
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("match_expr", 10);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("with", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("matchExprAlts", 13);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___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_Elab_Term_MatchExpr_toElseAlt_x3f___closed__1;
|
||||
x_2 = l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__2;
|
||||
x_3 = l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__3;
|
||||
x_4 = l_Lean_Elab_Term_expandLetExpr___closed__5;
|
||||
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_expandLetExpr___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("|", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandLetExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = l_Lean_Elab_Term_expandLetExpr___closed__2;
|
||||
lean_inc(x_1);
|
||||
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(1);
|
||||
x_7 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_3);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_8 = lean_unsigned_to_nat(1u);
|
||||
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
|
||||
x_10 = l_Lean_Elab_Term_MatchExpr_toAlt_x3f___closed__4;
|
||||
lean_inc(x_9);
|
||||
x_11 = l_Lean_Syntax_isOfKind(x_9, x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_box(1);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_3);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 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; lean_object* x_43; lean_object* x_44; lean_object* x_45;
|
||||
x_14 = lean_unsigned_to_nat(3u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
x_16 = lean_unsigned_to_nat(5u);
|
||||
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
|
||||
x_18 = lean_unsigned_to_nat(7u);
|
||||
x_19 = l_Lean_Syntax_getArg(x_1, x_18);
|
||||
lean_dec(x_1);
|
||||
x_20 = lean_ctor_get(x_2, 5);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_2);
|
||||
x_21 = 0;
|
||||
x_22 = l_Lean_SourceInfo_fromRef(x_20, x_21);
|
||||
x_23 = l_Lean_Elab_Term_expandLetExpr___closed__3;
|
||||
lean_inc(x_22);
|
||||
x_24 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
x_25 = l_Lean_Elab_Term_expandLetExpr___closed__4;
|
||||
lean_inc(x_22);
|
||||
x_26 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_22);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
x_27 = l_Lean_Elab_Term_expandLetExpr___closed__7;
|
||||
lean_inc(x_22);
|
||||
x_28 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_22);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
x_29 = l_List_forIn_loop___at_Lean_Elab_Term_MatchExpr_generate___spec__2___closed__3;
|
||||
lean_inc(x_22);
|
||||
x_30 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_22);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
x_31 = l_Lean_Elab_Term_MatchExpr_toAlt_x3f___closed__2;
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_22);
|
||||
x_32 = l_Lean_Syntax_node4(x_22, x_31, x_28, x_9, x_30, x_19);
|
||||
x_33 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_MatchExpr_getParams___spec__2___closed__6;
|
||||
lean_inc(x_22);
|
||||
x_34 = l_Lean_Syntax_node1(x_22, x_33, x_32);
|
||||
x_35 = l_Lean_Elab_Term_MatchExpr_getParams___lambda__2___closed__1;
|
||||
lean_inc(x_22);
|
||||
x_36 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_22);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
x_37 = l_Lean_Elab_Term_MatchExpr_toAlt_x3f___lambda__1___closed__4;
|
||||
lean_inc(x_22);
|
||||
x_38 = l_Lean_Syntax_node1(x_22, x_37, x_36);
|
||||
x_39 = l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__5;
|
||||
lean_inc(x_22);
|
||||
x_40 = l_Lean_Syntax_node4(x_22, x_39, x_28, x_38, x_30, x_17);
|
||||
x_41 = l_Lean_Elab_Term_expandLetExpr___closed__6;
|
||||
lean_inc(x_22);
|
||||
x_42 = l_Lean_Syntax_node2(x_22, x_41, x_34, x_40);
|
||||
x_43 = l_Lean_Elab_Term_expandMatchExpr___closed__2;
|
||||
x_44 = l_Lean_Syntax_node4(x_22, x_43, x_24, x_15, x_26, x_42);
|
||||
x_45 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_44);
|
||||
lean_ctor_set(x_45, 1, x_3);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("expandLetExpr", 13);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2() {
|
||||
_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_Elab_Term_MatchExpr_toElseAlt_x3f___closed__1;
|
||||
x_2 = l___regBuiltin_Lean_Elab_Term_expandMatchExpr___closed__1;
|
||||
x_3 = l_Lean_Elab_Term_MatchExpr_toElseAlt_x3f___closed__3;
|
||||
x_4 = l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__1;
|
||||
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandLetExpr), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr(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;
|
||||
x_2 = l___regBuiltin_Lean_Elab_Term_expandMatchExpr___closed__4;
|
||||
x_3 = l_Lean_Elab_Term_expandLetExpr___closed__2;
|
||||
x_4 = l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2;
|
||||
x_5 = l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__3;
|
||||
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(203u);
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(209u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__1;
|
||||
x_2 = lean_unsigned_to_nat(42u);
|
||||
x_3 = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__2;
|
||||
x_4 = lean_unsigned_to_nat(31u);
|
||||
x_5 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(203u);
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(203u);
|
||||
x_2 = lean_unsigned_to_nat(59u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___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___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__4;
|
||||
x_2 = lean_unsigned_to_nat(46u);
|
||||
x_3 = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__5;
|
||||
x_4 = lean_unsigned_to_nat(59u);
|
||||
x_5 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__3;
|
||||
x_2 = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__6;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2;
|
||||
x_3 = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__7;
|
||||
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Elab_Term(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Elab_MatchExpr(uint8_t builtin, lean_object* w) {
|
||||
|
|
@ -4866,6 +5197,46 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandMatchExpr_declRange___c
|
|||
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandMatchExpr_declRange(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Elab_Term_expandLetExpr___closed__1 = _init_l_Lean_Elab_Term_expandLetExpr___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__1);
|
||||
l_Lean_Elab_Term_expandLetExpr___closed__2 = _init_l_Lean_Elab_Term_expandLetExpr___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__2);
|
||||
l_Lean_Elab_Term_expandLetExpr___closed__3 = _init_l_Lean_Elab_Term_expandLetExpr___closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__3);
|
||||
l_Lean_Elab_Term_expandLetExpr___closed__4 = _init_l_Lean_Elab_Term_expandLetExpr___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__4);
|
||||
l_Lean_Elab_Term_expandLetExpr___closed__5 = _init_l_Lean_Elab_Term_expandLetExpr___closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__5);
|
||||
l_Lean_Elab_Term_expandLetExpr___closed__6 = _init_l_Lean_Elab_Term_expandLetExpr___closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__6);
|
||||
l_Lean_Elab_Term_expandLetExpr___closed__7 = _init_l_Lean_Elab_Term_expandLetExpr___closed__7();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_expandLetExpr___closed__7);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__1);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__2);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__3();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr___closed__3);
|
||||
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandLetExpr(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__1);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__2();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__2);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__3();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__3);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__4();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__4);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__5();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__5);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__6();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__6);
|
||||
l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__7();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange___closed__7);
|
||||
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandLetExpr_declRange(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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue