chore: update stage0

This commit is contained in:
Lean stage0 autoupdater 2026-01-23 18:35:59 +00:00
parent 3f09741fb9
commit 63d1b530ba
19 changed files with 28958 additions and 28826 deletions

View file

@ -1,6 +1,5 @@
#include "util/options.h"
// Please update
namespace lean {
options get_default_options() {
options opts;

View file

@ -4375,9 +4375,9 @@ goto block_52;
block_44:
{
lean_object* x_41; lean_object* x_42; lean_object* x_43;
x_41 = lean_nat_add(x_38, x_40);
x_41 = lean_nat_add(x_39, x_40);
lean_dec(x_40);
lean_dec(x_38);
lean_dec(x_39);
if (lean_is_scalar(x_35)) {
x_42 = lean_alloc_ctor(0, 5, 0);
} else {
@ -4396,7 +4396,7 @@ if (lean_is_scalar(x_25)) {
lean_ctor_set(x_43, 0, x_37);
lean_ctor_set(x_43, 1, x_28);
lean_ctor_set(x_43, 2, x_29);
lean_ctor_set(x_43, 3, x_39);
lean_ctor_set(x_43, 3, x_38);
lean_ctor_set(x_43, 4, x_42);
return x_43;
}
@ -4422,8 +4422,8 @@ if (lean_obj_tag(x_31) == 0)
lean_object* x_50;
x_50 = lean_ctor_get(x_31, 0);
lean_inc(x_50);
x_38 = x_49;
x_39 = x_48;
x_38 = x_48;
x_39 = x_49;
x_40 = x_50;
goto block_44;
}
@ -4431,8 +4431,8 @@ else
{
lean_object* x_51;
x_51 = lean_unsigned_to_nat(0u);
x_38 = x_49;
x_39 = x_48;
x_38 = x_48;
x_39 = x_49;
x_40 = x_51;
goto block_44;
}
@ -4849,9 +4849,9 @@ goto block_154;
block_147:
{
lean_object* x_144; lean_object* x_145; lean_object* x_146;
x_144 = lean_nat_add(x_142, x_143);
x_144 = lean_nat_add(x_141, x_143);
lean_dec(x_143);
lean_dec(x_142);
lean_dec(x_141);
if (lean_is_scalar(x_138)) {
x_145 = lean_alloc_ctor(0, 5, 0);
} else {
@ -4870,7 +4870,7 @@ if (lean_is_scalar(x_128)) {
lean_ctor_set(x_146, 0, x_140);
lean_ctor_set(x_146, 1, x_130);
lean_ctor_set(x_146, 2, x_131);
lean_ctor_set(x_146, 3, x_141);
lean_ctor_set(x_146, 3, x_142);
lean_ctor_set(x_146, 4, x_145);
return x_146;
}
@ -4896,8 +4896,8 @@ if (lean_obj_tag(x_133) == 0)
lean_object* x_152;
x_152 = lean_ctor_get(x_133, 0);
lean_inc(x_152);
x_141 = x_150;
x_142 = x_151;
x_141 = x_151;
x_142 = x_150;
x_143 = x_152;
goto block_147;
}
@ -4905,8 +4905,8 @@ else
{
lean_object* x_153;
x_153 = lean_unsigned_to_nat(0u);
x_141 = x_150;
x_142 = x_151;
x_141 = x_151;
x_142 = x_150;
x_143 = x_153;
goto block_147;
}

View file

@ -91,6 +91,7 @@ LEAN_EXPORT lean_object* l_Lake_BuildKey_toSimpleString(lean_object*);
LEAN_EXPORT lean_object* l_Lake_BuildKey_packageModule_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_WFExtrinsicFix_0__WellFounded_opaqueFix_u2082___at___00__private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget_spec__1___redArg(uint32_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instReprBuildKey_repr___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6;
static lean_object* l_Lake_PartialBuildKey_parse___closed__6;
LEAN_EXPORT lean_object* l___private_Lake_Build_Key_0__Lake_BuildKey_quickCmp_match__10_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_PartialBuildKey_instToString___closed__0;
@ -122,6 +123,7 @@ LEAN_EXPORT lean_object* l_Lake_BuildKey_packageModuleFacet(lean_object*, lean_o
static lean_object* l_Lake_PartialBuildKey_parse___closed__2;
LEAN_EXPORT lean_object* l_Lake_instHashableBuildKey;
LEAN_EXPORT lean_object* l_Lake_instDecidableEqBuildKey___boxed(lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7;
static lean_object* l_Lake_instReprBuildKey_repr___closed__13;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_BuildKey_instToString;
@ -1498,6 +1500,24 @@ return x_2;
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("ill-formed target: expected module name after '+'", 49, 49);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__3;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lake_PartialBuildKey_instInhabited___closed__0;
x_2 = lean_alloc_ctor(1, 1, 0);
@ -1505,7 +1525,7 @@ lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4() {
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6() {
_start:
{
lean_object* x_1;
@ -1513,11 +1533,11 @@ x_1 = lean_mk_string_unchecked("@", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5() {
static lean_object* _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4;
x_1 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
@ -1548,41 +1568,41 @@ lean_inc(x_13);
lean_dec_ref(x_11);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_44; uint8_t x_45;
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_47; uint8_t x_48;
x_17 = lean_ctor_get(x_12, 0);
x_18 = lean_ctor_get(x_12, 1);
x_19 = lean_ctor_get(x_12, 2);
x_44 = lean_nat_sub(x_19, x_18);
x_45 = lean_nat_dec_eq(x_44, x_5);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; uint8_t x_48;
x_46 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4;
x_47 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5;
x_48 = lean_nat_dec_le(x_47, x_44);
lean_dec(x_44);
x_47 = lean_nat_sub(x_19, x_18);
x_48 = lean_nat_dec_eq(x_47, x_5);
if (x_48 == 0)
{
x_20 = x_45;
goto block_43;
lean_object* x_49; lean_object* x_50; uint8_t x_51;
x_49 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6;
x_50 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7;
x_51 = lean_nat_dec_le(x_50, x_47);
lean_dec(x_47);
if (x_51 == 0)
{
x_20 = x_48;
goto block_46;
}
else
{
uint8_t x_49;
x_49 = lean_string_memcmp(x_17, x_46, x_18, x_5, x_47);
x_20 = x_49;
goto block_43;
uint8_t x_52;
x_52 = lean_string_memcmp(x_17, x_49, x_18, x_5, x_50);
x_20 = x_52;
goto block_46;
}
}
else
{
lean_object* x_50;
lean_dec(x_44);
lean_object* x_53;
lean_dec(x_47);
lean_dec(x_12);
x_50 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__3;
return x_50;
x_53 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5;
return x_53;
}
block_43:
block_46:
{
if (x_20 == 0)
{
@ -1606,7 +1626,7 @@ goto block_16;
}
else
{
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_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30;
lean_inc(x_19);
lean_inc(x_18);
lean_inc_ref(x_17);
@ -1616,153 +1636,169 @@ lean_dec(x_12);
x_28 = lean_nat_add(x_18, x_27);
lean_dec(x_27);
lean_dec(x_18);
x_29 = lean_string_utf8_extract(x_17, x_28, x_19);
x_29 = lean_nat_sub(x_19, x_28);
x_30 = lean_nat_dec_eq(x_29, x_5);
lean_dec(x_29);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
x_31 = lean_string_utf8_extract(x_17, x_28, x_19);
lean_dec(x_19);
lean_dec(x_28);
lean_dec_ref(x_17);
x_30 = l_Lake_stringToLegalOrSimpleName(x_29);
x_31 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_31, 0, x_30);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
return x_32;
x_32 = l_Lake_stringToLegalOrSimpleName(x_31);
x_33 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_33, 0, x_32);
x_34 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_34, 0, x_33);
return x_34;
}
else
{
lean_object* x_35;
lean_dec(x_28);
lean_dec(x_19);
lean_dec_ref(x_17);
x_35 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4;
return x_35;
}
}
}
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37;
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40;
lean_inc(x_19);
lean_inc(x_18);
lean_inc_ref(x_17);
x_33 = lean_unsigned_to_nat(1u);
x_34 = l_String_Slice_Pos_nextn(x_12, x_5, x_33);
x_36 = lean_unsigned_to_nat(1u);
x_37 = l_String_Slice_Pos_nextn(x_12, x_5, x_36);
lean_dec(x_12);
x_35 = lean_nat_add(x_18, x_34);
lean_dec(x_34);
x_38 = lean_nat_add(x_18, x_37);
lean_dec(x_37);
lean_dec(x_18);
x_36 = lean_nat_sub(x_19, x_35);
x_37 = lean_nat_dec_eq(x_36, x_5);
lean_dec(x_36);
if (x_37 == 0)
x_39 = lean_nat_sub(x_19, x_38);
x_40 = lean_nat_dec_eq(x_39, x_5);
lean_dec(x_39);
if (x_40 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
x_38 = lean_string_utf8_extract(x_17, x_35, x_19);
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
x_41 = lean_string_utf8_extract(x_17, x_38, x_19);
lean_dec(x_19);
lean_dec(x_35);
lean_dec(x_38);
lean_dec_ref(x_17);
x_39 = l_Lake_stringToLegalOrSimpleName(x_38);
x_40 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_40, 0, x_39);
x_41 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_41, 0, x_40);
return x_41;
x_42 = l_Lake_stringToLegalOrSimpleName(x_41);
x_43 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_43, 0, x_42);
x_44 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_44, 0, x_43);
return x_44;
}
else
{
lean_object* x_42;
lean_dec(x_35);
lean_object* x_45;
lean_dec(x_38);
lean_dec(x_19);
lean_dec_ref(x_17);
x_42 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__3;
return x_42;
x_45 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5;
return x_45;
}
}
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
x_51 = lean_ctor_get(x_13, 0);
lean_inc(x_51);
x_52 = lean_ctor_get(x_13, 1);
lean_inc(x_52);
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
x_54 = lean_ctor_get(x_13, 0);
lean_inc(x_54);
x_55 = lean_ctor_get(x_13, 1);
lean_inc(x_55);
lean_dec_ref(x_13);
if (lean_obj_tag(x_52) == 0)
if (lean_obj_tag(x_55) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70;
x_64 = lean_ctor_get(x_12, 0);
lean_inc_ref(x_64);
x_65 = lean_ctor_get(x_12, 1);
lean_inc(x_65);
x_66 = lean_ctor_get(x_12, 2);
lean_inc(x_66);
x_67 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4;
x_68 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5;
x_69 = lean_nat_sub(x_66, x_65);
x_70 = lean_nat_dec_le(x_68, x_69);
lean_dec(x_69);
if (x_70 == 0)
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73;
x_67 = lean_ctor_get(x_12, 0);
lean_inc_ref(x_67);
x_68 = lean_ctor_get(x_12, 1);
lean_inc(x_68);
x_69 = lean_ctor_get(x_12, 2);
lean_inc(x_69);
x_70 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6;
x_71 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7;
x_72 = lean_nat_sub(x_69, x_68);
x_73 = lean_nat_dec_le(x_71, x_72);
lean_dec(x_72);
if (x_73 == 0)
{
lean_dec(x_12);
x_53 = x_64;
x_54 = x_65;
x_55 = x_66;
goto block_63;
x_56 = x_67;
x_57 = x_68;
x_58 = x_69;
goto block_66;
}
else
{
uint8_t x_71;
x_71 = lean_string_memcmp(x_64, x_67, x_65, x_5, x_68);
if (x_71 == 0)
uint8_t x_74;
x_74 = lean_string_memcmp(x_67, x_70, x_68, x_5, x_71);
if (x_74 == 0)
{
lean_dec(x_12);
x_53 = x_64;
x_54 = x_65;
x_55 = x_66;
goto block_63;
x_56 = x_67;
x_57 = x_68;
x_58 = x_69;
goto block_66;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74;
x_72 = lean_unsigned_to_nat(1u);
x_73 = l_String_Slice_Pos_nextn(x_12, x_5, x_72);
lean_object* x_75; lean_object* x_76; lean_object* x_77;
x_75 = lean_unsigned_to_nat(1u);
x_76 = l_String_Slice_Pos_nextn(x_12, x_5, x_75);
lean_dec(x_12);
x_74 = lean_nat_add(x_65, x_73);
lean_dec(x_73);
lean_dec(x_65);
x_53 = x_64;
x_54 = x_74;
x_55 = x_66;
goto block_63;
x_77 = lean_nat_add(x_68, x_76);
lean_dec(x_76);
lean_dec(x_68);
x_56 = x_67;
x_57 = x_77;
x_58 = x_69;
goto block_66;
}
}
}
else
{
lean_dec(x_52);
lean_dec(x_51);
lean_dec(x_55);
lean_dec(x_54);
lean_dec(x_12);
goto block_3;
}
block_63:
block_66:
{
lean_object* x_56; uint8_t x_57;
x_56 = lean_nat_sub(x_55, x_54);
x_57 = lean_nat_dec_eq(x_56, x_5);
lean_dec(x_56);
if (x_57 == 0)
lean_object* x_59; uint8_t x_60;
x_59 = lean_nat_sub(x_58, x_57);
x_60 = lean_nat_dec_eq(x_59, x_5);
lean_dec(x_59);
if (x_60 == 0)
{
lean_object* x_58; lean_object* x_59; lean_object* x_60;
x_58 = lean_string_utf8_extract(x_53, x_54, x_55);
lean_dec(x_55);
lean_object* x_61; lean_object* x_62; lean_object* x_63;
x_61 = lean_string_utf8_extract(x_56, x_57, x_58);
lean_dec(x_58);
lean_dec(x_57);
lean_dec_ref(x_56);
x_62 = l_Lake_stringToLegalOrSimpleName(x_61);
x_63 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parsePackageTarget(x_62, x_54);
lean_dec(x_54);
lean_dec_ref(x_53);
x_59 = l_Lake_stringToLegalOrSimpleName(x_58);
x_60 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parsePackageTarget(x_59, x_51);
lean_dec(x_51);
return x_60;
return x_63;
}
else
{
lean_object* x_61; lean_object* x_62;
lean_dec(x_55);
lean_object* x_64; lean_object* x_65;
lean_dec(x_58);
lean_dec(x_57);
lean_dec_ref(x_56);
x_64 = lean_box(0);
x_65 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parsePackageTarget(x_64, x_54);
lean_dec(x_54);
lean_dec_ref(x_53);
x_61 = lean_box(0);
x_62 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parsePackageTarget(x_61, x_51);
lean_dec(x_51);
return x_62;
return x_65;
}
}
}
@ -2348,7 +2384,7 @@ return x_9;
else
{
lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13;
x_10 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4;
x_10 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6;
x_11 = 1;
x_12 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_8, x_11);
x_13 = lean_string_append(x_10, x_12);
@ -2549,7 +2585,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object*
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec_ref(x_1);
x_8 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4;
x_8 = l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6;
x_9 = l_Lean_Name_getPrefix(x_7);
lean_dec(x_7);
x_10 = 1;
@ -3490,6 +3526,10 @@ l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4
lean_mark_persistent(l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__4);
l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5 = _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5();
lean_mark_persistent(l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__5);
l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6 = _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6();
lean_mark_persistent(l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__6);
l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7 = _init_l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7();
lean_mark_persistent(l___private_Lake_Build_Key_0__Lake_PartialBuildKey_parse_parseTarget___closed__7);
l_panic___at___00Lake_PartialBuildKey_parse_spec__2___closed__0 = _init_l_panic___at___00Lake_PartialBuildKey_parse_spec__2___closed__0();
lean_mark_persistent(l_panic___at___00Lake_PartialBuildKey_parse_spec__2___closed__0);
l_List_foldlM___at___00Lake_PartialBuildKey_parse_spec__3___closed__0 = _init_l_List_foldlM___at___00Lake_PartialBuildKey_parse_spec__3___closed__0();

View file

@ -2422,7 +2422,7 @@ return x_2;
LEAN_EXPORT lean_object* l___private_Lake_Build_Library_0__Lake_LeanLib_recBuildStatic___lam__3(lean_object* x_1, lean_object* x_2, uint8_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
_start:
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_78; lean_object* x_86;
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_78; lean_object* x_86;
lean_inc_ref(x_11);
lean_inc_ref(x_15);
lean_inc(x_14);
@ -2579,26 +2579,26 @@ return x_112;
block_28:
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27;
x_24 = l_Array_append___redArg(x_19, x_21);
lean_dec_ref(x_21);
x_24 = l_Array_append___redArg(x_22, x_19);
lean_dec_ref(x_19);
x_25 = l___private_Lake_Build_Library_0__Lake_LeanLib_recCollectLocalModules___lam__0___closed__2;
x_26 = l_Lake_buildStaticLib(x_20, x_24, x_23, x_11, x_2, x_13, x_14, x_15, x_25);
x_26 = l_Lake_buildStaticLib(x_21, x_24, x_23, x_11, x_2, x_13, x_14, x_15, x_25);
lean_dec_ref(x_24);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_22);
lean_ctor_set(x_27, 1, x_20);
return x_27;
}
block_36:
{
if (x_30 == 0)
if (x_33 == 0)
{
x_18 = lean_box(0);
x_19 = x_31;
x_20 = x_34;
x_21 = x_32;
x_22 = x_33;
x_23 = x_30;
x_19 = x_30;
x_20 = x_31;
x_21 = x_34;
x_22 = x_32;
x_23 = x_33;
goto block_28;
}
else
@ -2608,20 +2608,20 @@ x_35 = l_System_Platform_isWindows;
if (x_35 == 0)
{
x_18 = lean_box(0);
x_19 = x_31;
x_20 = x_34;
x_21 = x_32;
x_22 = x_33;
x_19 = x_30;
x_20 = x_31;
x_21 = x_34;
x_22 = x_32;
x_23 = x_35;
goto block_28;
}
else
{
x_18 = lean_box(0);
x_19 = x_31;
x_20 = x_34;
x_21 = x_32;
x_22 = x_33;
x_19 = x_30;
x_20 = x_31;
x_21 = x_34;
x_22 = x_32;
x_23 = x_3;
goto block_28;
}
@ -2671,10 +2671,10 @@ x_58 = l_Lake_LeanLib_libName(x_9);
x_59 = l_Lake_nameToStaticLib(x_58, x_3);
x_60 = l_Lake_joinRelative(x_57, x_59);
x_29 = lean_box(0);
x_30 = x_42;
x_31 = x_37;
x_32 = x_52;
x_33 = x_53;
x_30 = x_52;
x_31 = x_53;
x_32 = x_37;
x_33 = x_42;
x_34 = x_60;
goto block_36;
}
@ -2697,10 +2697,10 @@ x_70 = l___private_Lake_Build_Library_0__Lake_LeanLib_recBuildStatic___lam__3___
x_71 = l_System_FilePath_addExtension(x_69, x_70);
x_72 = l_Lake_joinRelative(x_66, x_71);
x_29 = lean_box(0);
x_30 = x_42;
x_31 = x_37;
x_32 = x_61;
x_33 = x_62;
x_30 = x_61;
x_31 = x_62;
x_32 = x_37;
x_33 = x_42;
x_34 = x_72;
goto block_36;
}
@ -4104,7 +4104,7 @@ return x_14;
LEAN_EXPORT lean_object* l___private_Lake_Build_Library_0__Lake_LeanLib_recBuildStatic___at___00Lake_LeanLib_staticFacetConfig_spec__0___lam__0(lean_object* x_1, lean_object* x_2, uint8_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_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
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_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_75; lean_object* x_83;
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t 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_35; lean_object* x_36; lean_object* x_37; lean_object* x_75; lean_object* x_83;
lean_inc_ref(x_9);
lean_inc_ref(x_13);
lean_inc(x_12);
@ -4253,26 +4253,26 @@ return x_107;
block_26:
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
x_22 = l_Array_append___redArg(x_19, x_17);
lean_dec_ref(x_17);
x_22 = l_Array_append___redArg(x_20, x_16);
lean_dec_ref(x_16);
x_23 = l___private_Lake_Build_Library_0__Lake_LeanLib_recCollectLocalModules___lam__0___closed__2;
x_24 = l_Lake_buildStaticLib(x_20, x_22, x_21, x_9, x_2, x_11, x_12, x_13, x_23);
x_24 = l_Lake_buildStaticLib(x_18, x_22, x_21, x_9, x_2, x_11, x_12, x_13, x_23);
lean_dec_ref(x_22);
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_18);
lean_ctor_set(x_25, 1, x_19);
return x_25;
}
block_34:
{
if (x_28 == 0)
if (x_27 == 0)
{
x_16 = lean_box(0);
x_17 = x_29;
x_18 = x_30;
x_19 = x_31;
x_20 = x_32;
x_21 = x_28;
x_16 = x_28;
x_17 = lean_box(0);
x_18 = x_32;
x_19 = x_30;
x_20 = x_31;
x_21 = x_27;
goto block_26;
}
else
@ -4281,21 +4281,21 @@ uint8_t x_33;
x_33 = l_System_Platform_isWindows;
if (x_33 == 0)
{
x_16 = lean_box(0);
x_17 = x_29;
x_18 = x_30;
x_19 = x_31;
x_20 = x_32;
x_16 = x_28;
x_17 = lean_box(0);
x_18 = x_32;
x_19 = x_30;
x_20 = x_31;
x_21 = x_33;
goto block_26;
}
else
{
x_16 = lean_box(0);
x_17 = x_29;
x_18 = x_30;
x_19 = x_31;
x_20 = x_32;
x_16 = x_28;
x_17 = lean_box(0);
x_18 = x_32;
x_19 = x_30;
x_20 = x_31;
x_21 = x_3;
goto block_26;
}
@ -4343,9 +4343,9 @@ x_54 = l_Lake_joinRelative(x_52, x_53);
x_55 = l_Lake_LeanLib_libName(x_8);
x_56 = l_Lake_nameToStaticLib(x_55, x_3);
x_57 = l_Lake_joinRelative(x_54, x_56);
x_27 = lean_box(0);
x_28 = x_40;
x_29 = x_49;
x_27 = x_40;
x_28 = x_49;
x_29 = lean_box(0);
x_30 = x_50;
x_31 = x_35;
x_32 = x_57;
@ -4369,9 +4369,9 @@ x_66 = l_Lake_nameToStaticLib(x_64, x_65);
x_67 = l___private_Lake_Build_Library_0__Lake_LeanLib_recBuildStatic___lam__3___closed__0;
x_68 = l_System_FilePath_addExtension(x_66, x_67);
x_69 = l_Lake_joinRelative(x_63, x_68);
x_27 = lean_box(0);
x_28 = x_40;
x_29 = x_58;
x_27 = x_40;
x_28 = x_58;
x_29 = lean_box(0);
x_30 = x_59;
x_31 = x_35;
x_32 = x_69;
@ -6203,10 +6203,10 @@ x_163 = x_228;
x_164 = x_229;
x_165 = x_230;
x_166 = x_231;
x_167 = x_232;
x_168 = x_233;
x_169 = x_234;
x_170 = x_235;
x_167 = x_235;
x_168 = x_232;
x_169 = x_233;
x_170 = x_234;
x_171 = x_238;
x_172 = x_236;
x_173 = lean_box(0);
@ -6227,10 +6227,10 @@ x_163 = x_228;
x_164 = x_229;
x_165 = x_230;
x_166 = x_231;
x_167 = x_232;
x_168 = x_233;
x_169 = x_234;
x_170 = x_235;
x_167 = x_235;
x_168 = x_232;
x_169 = x_233;
x_170 = x_234;
x_171 = x_238;
x_172 = x_236;
x_173 = lean_box(0);
@ -6248,16 +6248,16 @@ lean_inc(x_2);
lean_inc_ref(x_10);
x_244 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__7(x_224, x_242, x_243, x_238, x_10, x_2, x_12, x_13, x_14, x_236);
lean_dec(x_224);
x_204 = x_227;
x_205 = x_226;
x_206 = x_228;
x_207 = x_229;
x_204 = x_226;
x_205 = x_227;
x_206 = x_229;
x_207 = x_228;
x_208 = x_230;
x_209 = x_231;
x_210 = x_232;
x_211 = x_233;
x_212 = x_235;
x_213 = x_234;
x_211 = x_235;
x_212 = x_234;
x_213 = x_233;
x_214 = x_244;
goto block_219;
}
@ -6274,16 +6274,16 @@ lean_inc(x_2);
lean_inc_ref(x_10);
x_247 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__7(x_224, x_245, x_246, x_238, x_10, x_2, x_12, x_13, x_14, x_236);
lean_dec(x_224);
x_204 = x_227;
x_205 = x_226;
x_206 = x_228;
x_207 = x_229;
x_204 = x_226;
x_205 = x_227;
x_206 = x_229;
x_207 = x_228;
x_208 = x_230;
x_209 = x_231;
x_210 = x_232;
x_211 = x_233;
x_212 = x_235;
x_213 = x_234;
x_211 = x_235;
x_212 = x_234;
x_213 = x_233;
x_214 = x_247;
goto block_219;
}
@ -6299,15 +6299,15 @@ lean_inc(x_259);
x_260 = lean_ctor_get(x_258, 1);
lean_inc(x_260);
lean_dec_ref(x_258);
x_226 = x_250;
x_227 = x_249;
x_228 = x_251;
x_229 = x_252;
x_226 = x_249;
x_227 = x_250;
x_228 = x_252;
x_229 = x_251;
x_230 = x_253;
x_231 = x_254;
x_232 = x_255;
x_233 = x_256;
x_234 = x_257;
x_233 = x_257;
x_234 = x_256;
x_235 = x_259;
x_236 = x_260;
x_237 = lean_box(0);
@ -6316,11 +6316,11 @@ goto block_248;
else
{
uint8_t x_261;
lean_dec_ref(x_257);
lean_dec_ref(x_255);
lean_dec_ref(x_253);
lean_dec_ref(x_252);
lean_dec_ref(x_251);
lean_dec_ref(x_250);
lean_dec_ref(x_249);
lean_dec(x_224);
lean_dec_ref(x_14);
lean_dec(x_13);
@ -6382,15 +6382,15 @@ x_284 = lean_nat_dec_lt(x_282, x_283);
if (x_284 == 0)
{
lean_dec_ref(x_281);
x_226 = x_274;
x_226 = x_278;
x_227 = x_272;
x_228 = x_275;
x_228 = x_280;
x_229 = x_276;
x_230 = x_271;
x_230 = x_275;
x_231 = x_282;
x_232 = x_280;
x_233 = x_279;
x_234 = x_278;
x_232 = x_271;
x_233 = x_274;
x_234 = x_279;
x_235 = x_266;
x_236 = x_267;
x_237 = lean_box(0);
@ -6405,15 +6405,15 @@ if (x_285 == 0)
if (x_284 == 0)
{
lean_dec_ref(x_281);
x_226 = x_274;
x_226 = x_278;
x_227 = x_272;
x_228 = x_275;
x_228 = x_280;
x_229 = x_276;
x_230 = x_271;
x_230 = x_275;
x_231 = x_282;
x_232 = x_280;
x_233 = x_279;
x_234 = x_278;
x_232 = x_271;
x_233 = x_274;
x_234 = x_279;
x_235 = x_266;
x_236 = x_267;
x_237 = lean_box(0);
@ -6432,15 +6432,15 @@ lean_inc_ref(x_10);
lean_inc_ref(x_6);
x_288 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__8(x_6, x_281, x_286, x_287, x_266, x_10, x_2, x_12, x_13, x_14, x_267);
lean_dec_ref(x_281);
x_249 = x_272;
x_250 = x_274;
x_251 = x_275;
x_252 = x_276;
x_253 = x_271;
x_249 = x_278;
x_250 = x_272;
x_251 = x_276;
x_252 = x_280;
x_253 = x_275;
x_254 = x_282;
x_255 = x_280;
x_255 = x_271;
x_256 = x_279;
x_257 = x_278;
x_257 = x_274;
x_258 = x_288;
goto block_265;
}
@ -6458,15 +6458,15 @@ lean_inc_ref(x_10);
lean_inc_ref(x_6);
x_291 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__8(x_6, x_281, x_289, x_290, x_266, x_10, x_2, x_12, x_13, x_14, x_267);
lean_dec_ref(x_281);
x_249 = x_272;
x_250 = x_274;
x_251 = x_275;
x_252 = x_276;
x_253 = x_271;
x_249 = x_278;
x_250 = x_272;
x_251 = x_276;
x_252 = x_280;
x_253 = x_275;
x_254 = x_282;
x_255 = x_280;
x_255 = x_271;
x_256 = x_279;
x_257 = x_278;
x_257 = x_274;
x_258 = x_291;
goto block_265;
}
@ -6592,20 +6592,20 @@ block_42:
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
lean_inc_ref(x_3);
x_27 = l_Lake_LeanLib_libName(x_3);
x_28 = l_System_FilePath_normalize(x_20);
x_28 = l_System_FilePath_normalize(x_22);
x_29 = l_Lake_joinRelative(x_4, x_28);
x_30 = l_System_FilePath_normalize(x_17);
x_31 = l_Lake_joinRelative(x_29, x_30);
x_32 = 0;
x_33 = l_Lake_nameToSharedLib(x_27, x_32);
x_34 = l_Lake_joinRelative(x_31, x_33);
x_35 = l_Array_append___redArg(x_19, x_21);
x_36 = l_Array_append___redArg(x_18, x_22);
x_35 = l_Array_append___redArg(x_19, x_18);
x_36 = l_Array_append___redArg(x_20, x_23);
x_37 = l_Lake_LeanLib_isPlugin(x_3);
x_38 = l_System_Platform_isWindows;
x_39 = l___private_Lake_Build_Library_0__Lake_LeanLib_recCollectLocalModules___lam__0___closed__2;
x_40 = l_Lake_buildLeanSharedLib(x_27, x_34, x_23, x_24, x_35, x_36, x_37, x_38, x_10, x_2, x_12, x_13, x_14, x_39);
lean_dec_ref(x_23);
x_40 = l_Lake_buildLeanSharedLib(x_27, x_34, x_21, x_24, x_35, x_36, x_37, x_38, x_10, x_2, x_12, x_13, x_14, x_39);
lean_dec_ref(x_21);
x_41 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_25);
@ -6630,11 +6630,11 @@ x_57 = lean_ctor_get(x_55, 1);
lean_inc(x_57);
lean_dec_ref(x_55);
x_17 = x_48;
x_18 = x_49;
x_19 = x_50;
x_18 = x_50;
x_19 = x_49;
x_20 = x_51;
x_21 = x_52;
x_22 = x_53;
x_21 = x_53;
x_22 = x_52;
x_23 = x_54;
x_24 = x_56;
x_25 = x_57;
@ -6644,9 +6644,9 @@ goto block_42;
else
{
lean_object* x_58; lean_object* x_59;
lean_dec_ref(x_54);
lean_dec_ref(x_53);
lean_dec_ref(x_52);
lean_dec_ref(x_51);
lean_dec_ref(x_50);
lean_dec_ref(x_49);
lean_dec_ref(x_48);
lean_dec_ref(x_14);
@ -6675,15 +6675,15 @@ x_74 = lean_nat_dec_lt(x_67, x_73);
if (x_74 == 0)
{
lean_dec_ref(x_72);
x_17 = x_61;
x_18 = x_62;
x_19 = x_65;
x_17 = x_63;
x_18 = x_65;
x_19 = x_64;
x_20 = x_66;
x_21 = x_69;
x_22 = x_70;
x_22 = x_68;
x_23 = x_71;
x_24 = x_64;
x_25 = x_68;
x_24 = x_62;
x_25 = x_61;
x_26 = lean_box(0);
goto block_42;
}
@ -6696,15 +6696,15 @@ if (x_75 == 0)
if (x_74 == 0)
{
lean_dec_ref(x_72);
x_17 = x_61;
x_18 = x_62;
x_19 = x_65;
x_17 = x_63;
x_18 = x_65;
x_19 = x_64;
x_20 = x_66;
x_21 = x_69;
x_22 = x_70;
x_22 = x_68;
x_23 = x_71;
x_24 = x_64;
x_25 = x_68;
x_24 = x_62;
x_25 = x_61;
x_26 = lean_box(0);
goto block_42;
}
@ -6718,14 +6718,14 @@ lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_2);
lean_inc_ref(x_10);
x_78 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__2(x_72, x_76, x_77, x_64, x_10, x_2, x_12, x_13, x_14, x_68);
x_78 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__2(x_72, x_76, x_77, x_62, x_10, x_2, x_12, x_13, x_14, x_61);
lean_dec_ref(x_72);
x_48 = x_61;
x_49 = x_62;
x_48 = x_63;
x_49 = x_64;
x_50 = x_65;
x_51 = x_66;
x_52 = x_69;
x_53 = x_70;
x_52 = x_68;
x_53 = x_69;
x_54 = x_71;
x_55 = x_78;
goto block_60;
@ -6741,14 +6741,14 @@ lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_2);
lean_inc_ref(x_10);
x_81 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__2(x_72, x_79, x_80, x_64, x_10, x_2, x_12, x_13, x_14, x_68);
x_81 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__2(x_72, x_79, x_80, x_62, x_10, x_2, x_12, x_13, x_14, x_61);
lean_dec_ref(x_72);
x_48 = x_61;
x_49 = x_62;
x_48 = x_63;
x_49 = x_64;
x_50 = x_65;
x_51 = x_66;
x_52 = x_69;
x_53 = x_70;
x_52 = x_68;
x_53 = x_69;
x_54 = x_71;
x_55 = x_81;
goto block_60;
@ -6764,16 +6764,16 @@ x_96 = lean_nat_dec_lt(x_87, x_95);
if (x_96 == 0)
{
lean_dec_ref(x_6);
x_61 = x_83;
x_62 = x_84;
x_63 = lean_box(0);
x_64 = x_91;
x_65 = x_85;
x_61 = x_92;
x_62 = x_91;
x_63 = x_83;
x_64 = x_85;
x_65 = x_84;
x_66 = x_86;
x_67 = x_87;
x_68 = x_92;
x_68 = x_89;
x_69 = x_88;
x_70 = x_89;
x_70 = lean_box(0);
x_71 = x_90;
x_72 = x_94;
goto block_82;
@ -6788,16 +6788,16 @@ if (x_98 == 0)
if (x_96 == 0)
{
lean_dec_ref(x_6);
x_61 = x_83;
x_62 = x_84;
x_63 = lean_box(0);
x_64 = x_91;
x_65 = x_85;
x_61 = x_92;
x_62 = x_91;
x_63 = x_83;
x_64 = x_85;
x_65 = x_84;
x_66 = x_86;
x_67 = x_87;
x_68 = x_92;
x_68 = x_89;
x_69 = x_88;
x_70 = x_89;
x_70 = lean_box(0);
x_71 = x_90;
x_72 = x_94;
goto block_82;
@ -6808,16 +6808,16 @@ size_t x_99; size_t x_100; lean_object* x_101;
x_99 = 0;
x_100 = lean_usize_of_nat(x_95);
x_101 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__3(x_97, x_6, x_5, x_99, x_100, x_94);
x_61 = x_83;
x_62 = x_84;
x_63 = lean_box(0);
x_64 = x_91;
x_65 = x_85;
x_61 = x_92;
x_62 = x_91;
x_63 = x_83;
x_64 = x_85;
x_65 = x_84;
x_66 = x_86;
x_67 = x_87;
x_68 = x_92;
x_68 = x_89;
x_69 = x_88;
x_70 = x_89;
x_70 = lean_box(0);
x_71 = x_90;
x_72 = x_101;
goto block_82;
@ -6829,16 +6829,16 @@ size_t x_102; size_t x_103; lean_object* x_104;
x_102 = 0;
x_103 = lean_usize_of_nat(x_95);
x_104 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__3(x_97, x_6, x_5, x_102, x_103, x_94);
x_61 = x_83;
x_62 = x_84;
x_63 = lean_box(0);
x_64 = x_91;
x_65 = x_85;
x_61 = x_92;
x_62 = x_91;
x_63 = x_83;
x_64 = x_85;
x_65 = x_84;
x_66 = x_86;
x_67 = x_87;
x_68 = x_92;
x_68 = x_89;
x_69 = x_88;
x_70 = x_89;
x_70 = lean_box(0);
x_71 = x_90;
x_72 = x_104;
goto block_82;
@ -6856,12 +6856,12 @@ x_116 = lean_ctor_get(x_114, 1);
lean_inc(x_116);
lean_dec_ref(x_114);
x_83 = x_106;
x_84 = x_107;
x_85 = x_108;
x_84 = x_108;
x_85 = x_107;
x_86 = x_109;
x_87 = x_110;
x_88 = x_111;
x_89 = x_112;
x_88 = x_112;
x_89 = x_111;
x_90 = x_113;
x_91 = x_115;
x_92 = x_116;
@ -6871,9 +6871,9 @@ goto block_105;
else
{
lean_object* x_117; lean_object* x_118;
lean_dec_ref(x_113);
lean_dec_ref(x_112);
lean_dec_ref(x_111);
lean_dec_ref(x_109);
lean_dec_ref(x_108);
lean_dec_ref(x_107);
lean_dec_ref(x_106);
lean_dec_ref(x_14);
@ -6898,19 +6898,19 @@ goto block_47;
block_143:
{
lean_object* x_133; lean_object* x_134; uint8_t x_135;
x_133 = l_Array_append___redArg(x_121, x_129);
x_133 = l_Array_append___redArg(x_129, x_120);
x_134 = lean_array_get_size(x_133);
x_135 = lean_nat_dec_lt(x_125, x_134);
if (x_135 == 0)
{
lean_dec_ref(x_133);
x_83 = x_120;
x_84 = x_122;
x_85 = x_123;
x_83 = x_121;
x_84 = x_123;
x_85 = x_122;
x_86 = x_124;
x_87 = x_125;
x_88 = x_126;
x_89 = x_127;
x_88 = x_127;
x_89 = x_126;
x_90 = x_128;
x_91 = x_130;
x_92 = x_131;
@ -6926,13 +6926,13 @@ if (x_136 == 0)
if (x_135 == 0)
{
lean_dec_ref(x_133);
x_83 = x_120;
x_84 = x_122;
x_85 = x_123;
x_83 = x_121;
x_84 = x_123;
x_85 = x_122;
x_86 = x_124;
x_87 = x_125;
x_88 = x_126;
x_89 = x_127;
x_88 = x_127;
x_89 = x_126;
x_90 = x_128;
x_91 = x_130;
x_92 = x_131;
@ -6952,7 +6952,7 @@ lean_inc_ref(x_10);
lean_inc_ref(x_6);
x_139 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__4(x_6, x_133, x_137, x_138, x_130, x_10, x_2, x_12, x_13, x_14, x_131);
lean_dec_ref(x_133);
x_106 = x_120;
x_106 = x_121;
x_107 = x_122;
x_108 = x_123;
x_109 = x_124;
@ -6977,7 +6977,7 @@ lean_inc_ref(x_10);
lean_inc_ref(x_6);
x_142 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Library_0__Lake_LeanLib_recBuildShared_spec__4(x_6, x_133, x_140, x_141, x_130, x_10, x_2, x_12, x_13, x_14, x_131);
lean_dec_ref(x_133);
x_106 = x_120;
x_106 = x_121;
x_107 = x_122;
x_108 = x_123;
x_109 = x_124;
@ -7003,14 +7003,14 @@ lean_dec_ref(x_154);
x_157 = lean_ctor_get(x_155, 1);
lean_inc(x_157);
lean_dec(x_155);
x_120 = x_145;
x_121 = x_144;
x_122 = x_146;
x_123 = x_147;
x_120 = x_144;
x_121 = x_145;
x_122 = x_147;
x_123 = x_146;
x_124 = x_148;
x_125 = x_149;
x_126 = x_150;
x_127 = x_151;
x_126 = x_151;
x_127 = x_150;
x_128 = x_153;
x_129 = x_152;
x_130 = x_157;
@ -7021,12 +7021,12 @@ goto block_143;
else
{
lean_object* x_158; lean_object* x_159;
lean_dec_ref(x_153);
lean_dec_ref(x_152);
lean_dec_ref(x_151);
lean_dec_ref(x_150);
lean_dec_ref(x_148);
lean_dec_ref(x_147);
lean_dec_ref(x_146);
lean_dec_ref(x_145);
lean_dec_ref(x_144);
lean_dec_ref(x_14);
lean_dec(x_13);
lean_dec(x_12);
@ -7064,14 +7064,14 @@ if (x_179 == 0)
lean_free_object(x_171);
lean_dec_ref(x_175);
lean_dec(x_7);
x_120 = x_162;
x_121 = x_161;
x_122 = x_163;
x_123 = x_164;
x_120 = x_161;
x_121 = x_162;
x_122 = x_164;
x_123 = x_163;
x_124 = x_165;
x_125 = x_166;
x_126 = x_167;
x_127 = x_168;
x_126 = x_168;
x_127 = x_167;
x_128 = x_170;
x_129 = x_169;
x_130 = x_177;
@ -7094,14 +7094,14 @@ if (x_179 == 0)
{
lean_dec_ref(x_171);
lean_dec_ref(x_175);
x_120 = x_162;
x_121 = x_161;
x_122 = x_163;
x_123 = x_164;
x_120 = x_161;
x_121 = x_162;
x_122 = x_164;
x_123 = x_163;
x_124 = x_165;
x_125 = x_166;
x_126 = x_167;
x_127 = x_168;
x_126 = x_168;
x_127 = x_167;
x_128 = x_170;
x_129 = x_169;
x_130 = x_177;
@ -7177,14 +7177,14 @@ if (x_192 == 0)
{
lean_dec_ref(x_189);
lean_dec(x_7);
x_120 = x_162;
x_121 = x_161;
x_122 = x_163;
x_123 = x_164;
x_120 = x_161;
x_121 = x_162;
x_122 = x_164;
x_123 = x_163;
x_124 = x_165;
x_125 = x_166;
x_126 = x_167;
x_127 = x_168;
x_126 = x_168;
x_127 = x_167;
x_128 = x_170;
x_129 = x_169;
x_130 = x_190;
@ -7208,14 +7208,14 @@ if (x_192 == 0)
{
lean_dec_ref(x_195);
lean_dec_ref(x_189);
x_120 = x_162;
x_121 = x_161;
x_122 = x_163;
x_123 = x_164;
x_120 = x_161;
x_121 = x_162;
x_122 = x_164;
x_123 = x_163;
x_124 = x_165;
x_125 = x_166;
x_126 = x_167;
x_127 = x_168;
x_126 = x_168;
x_127 = x_167;
x_128 = x_170;
x_129 = x_169;
x_130 = x_190;
@ -7289,14 +7289,14 @@ lean_inc(x_215);
x_216 = lean_ctor_get(x_214, 1);
lean_inc(x_216);
lean_dec_ref(x_214);
x_161 = x_205;
x_162 = x_204;
x_163 = x_206;
x_164 = x_207;
x_161 = x_204;
x_162 = x_205;
x_163 = x_207;
x_164 = x_206;
x_165 = x_208;
x_166 = x_209;
x_167 = x_210;
x_168 = x_211;
x_167 = x_211;
x_168 = x_210;
x_169 = x_213;
x_170 = x_212;
x_171 = x_215;
@ -7307,12 +7307,12 @@ goto block_203;
else
{
lean_object* x_217; lean_object* x_218;
lean_dec_ref(x_212);
lean_dec_ref(x_213);
lean_dec_ref(x_211);
lean_dec_ref(x_210);
lean_dec_ref(x_208);
lean_dec_ref(x_207);
lean_dec_ref(x_206);
lean_dec_ref(x_205);
lean_dec_ref(x_204);
lean_dec_ref(x_14);
lean_dec(x_13);
lean_dec(x_12);
@ -8428,9 +8428,9 @@ goto block_52;
block_44:
{
lean_object* x_41; lean_object* x_42; lean_object* x_43;
x_41 = lean_nat_add(x_38, x_40);
x_41 = lean_nat_add(x_39, x_40);
lean_dec(x_40);
lean_dec(x_38);
lean_dec(x_39);
if (lean_is_scalar(x_35)) {
x_42 = lean_alloc_ctor(0, 5, 0);
} else {
@ -8449,7 +8449,7 @@ if (lean_is_scalar(x_25)) {
lean_ctor_set(x_43, 0, x_37);
lean_ctor_set(x_43, 1, x_28);
lean_ctor_set(x_43, 2, x_29);
lean_ctor_set(x_43, 3, x_39);
lean_ctor_set(x_43, 3, x_38);
lean_ctor_set(x_43, 4, x_42);
return x_43;
}
@ -8475,8 +8475,8 @@ if (lean_obj_tag(x_31) == 0)
lean_object* x_50;
x_50 = lean_ctor_get(x_31, 0);
lean_inc(x_50);
x_38 = x_49;
x_39 = x_48;
x_38 = x_48;
x_39 = x_49;
x_40 = x_50;
goto block_44;
}
@ -8484,8 +8484,8 @@ else
{
lean_object* x_51;
x_51 = lean_unsigned_to_nat(0u);
x_38 = x_49;
x_39 = x_48;
x_38 = x_48;
x_39 = x_49;
x_40 = x_51;
goto block_44;
}

File diff suppressed because it is too large Load diff

View file

@ -17,13 +17,13 @@ static lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBui
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkOptBuildArchiveFacetConfig___redArg___lam__0(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_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCache___closed__1;
lean_object* l_Lake_GitRepo_getFilteredRemoteUrl_x3f(lean_object*, lean_object*);
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_Package_fetchTargetJob(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed__0;
static lean_object* l_Lake_Package_barrelFacetConfig___closed__0;
lean_object* l_Lake_ensureJob___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__1(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig___redArg___lam__2___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_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg(uint8_t);
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_Package_initFacetConfigs___closed__3;
LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___00Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
@ -111,6 +111,7 @@ static lean_object* l_Lake_formatQuery___at___00Lake_Package_optBuildCacheFacetC
LEAN_EXPORT lean_object* l_Lake_Package_barrelFacetConfig;
LEAN_EXPORT lean_object* l_Lake_Package_gitHubReleaseFacetConfig___lam__1___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_Lake_OrdHashSet_insert___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0(lean_object*, lean_object*);
static lean_object* l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg___closed__0;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCache___closed__0;
@ -125,6 +126,7 @@ LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_extraDepFacetC
LEAN_EXPORT lean_object* l_Lake_Package_buildCacheFacetConfig___lam__2___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_Lake_Package_barrelFacetConfig___lam__1___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_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0(uint8_t, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___closed__0;
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__0;
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning___lam__0___closed__2;
extern lean_object* l_Lake_instDataKindBool;
@ -149,7 +151,6 @@ static lean_object* l___private_Lake_Build_Package_0__Lake_Package_optFacetDetai
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__3___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___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint64_t lean_uint64_shift_right(uint64_t, uint64_t);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___boxed(lean_object*);
lean_object* lean_nat_to_int(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_Build_Package_0__Lake_Package_recFetchDeps_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_EXPORT lean_object* l_Lake_Package_optGitHubReleaseFacetConfig___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -161,6 +162,7 @@ static lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkOptBuildArc
lean_object* l_Lake_readTraceFile(lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__3;
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig___redArg___closed__1;
static lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__2___closed__0;
@ -174,6 +176,7 @@ LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync___redArg___lam__0___
lean_object* l_Lake_removeFileIfExists(lean_object*);
static lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__2___closed__1;
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__6;
lean_object* l_String_Slice_Pos_prevn(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__0;
extern lean_object* l_Lake_Package_transDepsFacet;
static lean_object* l_Lake_Package_buildCacheFacetConfig___closed__1;
@ -183,6 +186,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_recBuild
LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync___boxed(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_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__7;
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig___redArg___lam__0___closed__0;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__5;
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___00Std_DHashMap_Internal_Raw_u2080_contains___at___00Lake_OrdHashSet_insert___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__0_spec__2(lean_object*, lean_object*, lean_object*);
@ -194,6 +198,7 @@ static lean_object* l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps_
static lean_object* l_Lake_Package_optBuildCacheFacetConfig___closed__1;
lean_object* l_Lake_instQueryJsonUnit___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lake_Package_initFacetConfigs___closed__1;
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_OrdHashSet_empty___at___00__private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__2___closed__3;
@ -332,15 +337,14 @@ lean_object* lean_string_append(lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
static lean_object* l_Lake_Package_extraDepFacetConfig___closed__1;
lean_object* l_Lake_BuildMetadata_writeFile(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Package_depsFacetConfig___lam__0___boxed(lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkOptBuildArchiveFacetConfig___redArg___lam__1(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* l_Lake_joinRelative(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_optBuildCacheFacetConfig_spec__0(uint8_t, uint8_t);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Package_optGitHubReleaseFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_Package_depsFacetConfig___lam__0(uint8_t, lean_object*);
static lean_object* l_Lake_Package_optBarrelFacetConfig___closed__1;
lean_object* l_Lake_formatQuery___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__3;
@ -353,7 +357,6 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l_Lake_Package_initFacetConfigs___closed__0;
LEAN_EXPORT lean_object* l_Lake_Package_gitHubReleaseFacetConfig___lam__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig___redArg___lam__0___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_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0;
static lean_object* l_Lake_Package_transDepsFacetConfig___closed__0;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lake_Package_buildCacheFacetConfig___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -763,47 +766,179 @@ lean_dec_ref(x_5);
return x_14;
}
}
static lean_object* _init_l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0() {
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = lean_box(0);
x_2 = l_Lean_Json_compress(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg(uint8_t x_1) {
_start:
uint8_t x_4;
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
if (x_1 == 0)
{
lean_object* x_2;
x_2 = l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__1;
return x_2;
return x_3;
}
else
{
lean_object* x_3;
x_3 = l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0;
return x_3;
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13;
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_ctor_get(x_5, 2);
lean_inc(x_6);
lean_dec(x_5);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_3, x_2, x_7);
x_9 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_6, x_4);
x_10 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_10, 0, x_9);
x_11 = 1;
x_12 = lean_usize_add(x_2, x_11);
x_13 = lean_array_uset(x_8, x_2, x_10);
x_2 = x_12;
x_3 = x_13;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___boxed(lean_object* x_1) {
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_2; lean_object* x_3;
x_2 = lean_unbox(x_1);
x_3 = l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg(x_2);
return x_3;
size_t x_4; size_t x_5; lean_object* x_6;
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__1(x_4, x_5, x_3);
return x_6;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("\n", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5;
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 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; size_t x_12; size_t x_13;
x_6 = lean_array_uget(x_1, x_2);
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_Name_toString(x_7, x_5);
x_9 = lean_string_append(x_4, x_8);
lean_dec_ref(x_8);
x_10 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___closed__0;
x_11 = lean_string_append(x_9, x_10);
x_12 = 1;
x_13 = lean_usize_add(x_2, x_12);
x_2 = x_13;
x_4 = x_11;
goto _start;
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7;
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0(x_1, x_5, x_6, x_4);
lean_dec_ref(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0(uint8_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg(x_1);
return x_3;
if (x_1 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
x_11 = l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__1;
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_get_size(x_2);
x_14 = lean_nat_dec_lt(x_12, x_13);
if (x_14 == 0)
{
lean_dec_ref(x_2);
x_3 = x_11;
goto block_10;
}
else
{
uint8_t x_15;
x_15 = lean_nat_dec_le(x_13, x_13);
if (x_15 == 0)
{
if (x_14 == 0)
{
lean_dec_ref(x_2);
x_3 = x_11;
goto block_10;
}
else
{
size_t x_16; size_t x_17; lean_object* x_18;
x_16 = 0;
x_17 = lean_usize_of_nat(x_13);
x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0(x_2, x_16, x_17, x_11);
lean_dec_ref(x_2);
x_3 = x_18;
goto block_10;
}
}
else
{
size_t x_19; size_t x_20; lean_object* x_21;
x_19 = 0;
x_20 = lean_usize_of_nat(x_13);
x_21 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0(x_2, x_19, x_20, x_11);
lean_dec_ref(x_2);
x_3 = x_21;
goto block_10;
}
}
}
else
{
size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
x_22 = lean_array_size(x_2);
x_23 = 0;
x_24 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__1(x_22, x_23, x_2);
x_25 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = l_Lean_Json_compress(x_25);
return x_26;
}
block_10:
{
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_unsigned_to_nat(1u);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_utf8_byte_size(x_3);
lean_inc_ref(x_3);
x_7 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 2, x_6);
x_8 = l_String_Slice_Pos_prevn(x_7, x_6, x_4);
lean_dec_ref(x_7);
x_9 = lean_string_utf8_extract(x_3, x_5, x_8);
lean_dec(x_8);
lean_dec_ref(x_3);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
@ -812,25 +947,6 @@ _start:
uint8_t x_3; lean_object* x_4;
x_3 = lean_unbox(x_1);
x_4 = l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0(x_3, x_2);
lean_dec_ref(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_Package_depsFacetConfig___lam__0(uint8_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_Package_depsFacetConfig___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4;
x_3 = lean_unbox(x_1);
x_4 = l_Lake_Package_depsFacetConfig___lam__0(x_3, x_2);
lean_dec_ref(x_2);
return x_4;
}
}
@ -838,7 +954,7 @@ static lean_object* _init_l_Lake_Package_depsFacetConfig___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Lake_Package_depsFacetConfig___lam__0___boxed), 2, 0);
x_1 = lean_alloc_closure((void*)(l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___boxed), 2, 0);
return x_1;
}
}
@ -2225,7 +2341,7 @@ return x_1;
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCache(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_9; lean_object* x_10; uint8_t x_11; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51;
lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51;
x_45 = lean_ctor_get(x_6, 1);
x_46 = lean_ctor_get(x_45, 1);
x_47 = lean_ctor_get_uint8(x_46, sizeof(void*)*17);
@ -2298,15 +2414,15 @@ block_44:
{
if (x_40 == 0)
{
lean_dec(x_39);
lean_dec_ref(x_36);
lean_dec_ref(x_39);
lean_dec(x_38);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_9 = x_37;
x_9 = x_35;
x_10 = lean_box(0);
x_11 = x_40;
goto block_25;
@ -2314,29 +2430,29 @@ goto block_25;
else
{
lean_object* x_41; lean_object* x_42; uint8_t x_43;
x_41 = lean_string_utf8_byte_size(x_36);
lean_dec_ref(x_36);
x_41 = lean_string_utf8_byte_size(x_39);
lean_dec_ref(x_39);
x_42 = lean_unsigned_to_nat(0u);
x_43 = lean_nat_dec_eq(x_41, x_42);
if (x_43 == 0)
{
x_26 = x_37;
x_26 = x_35;
x_27 = lean_box(0);
x_28 = x_39;
x_28 = x_38;
goto block_34;
}
else
{
lean_dec(x_39);
lean_dec(x_38);
lean_dec_ref(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_9 = x_37;
x_9 = x_35;
x_10 = lean_box(0);
x_11 = x_35;
x_11 = x_37;
goto block_25;
}
}
@ -2383,25 +2499,25 @@ if (x_62 == 0)
lean_object* x_63; uint8_t x_64;
x_63 = l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCache___closed__1;
x_64 = lean_string_dec_eq(x_55, x_63);
lean_inc(x_53);
lean_inc_ref(x_48);
x_35 = x_57;
x_36 = x_48;
x_37 = x_50;
x_38 = lean_box(0);
x_39 = x_53;
lean_inc(x_53);
x_35 = x_50;
x_36 = lean_box(0);
x_37 = x_57;
x_38 = x_53;
x_39 = x_48;
x_40 = x_64;
goto block_44;
}
else
{
lean_inc(x_53);
lean_inc_ref(x_48);
x_35 = x_57;
x_36 = x_48;
x_37 = x_50;
x_38 = lean_box(0);
x_39 = x_53;
lean_inc(x_53);
x_35 = x_50;
x_36 = lean_box(0);
x_37 = x_57;
x_38 = x_53;
x_39 = x_48;
x_40 = x_62;
goto block_44;
}
@ -3291,6 +3407,15 @@ x_9 = l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets(x_1
return x_9;
}
}
static lean_object* _init_l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = lean_box(0);
x_2 = l_Lean_Json_compress(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg(uint8_t x_1) {
_start:
{
@ -3303,7 +3428,7 @@ return x_2;
else
{
lean_object* x_3;
x_3 = l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0;
x_3 = l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg___closed__0;
return x_3;
}
}
@ -3778,7 +3903,7 @@ return x_3;
LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_50; lean_object* x_82;
lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_50; lean_object* x_82;
x_20 = lean_ctor_get(x_1, 4);
lean_inc_ref(x_20);
x_21 = lean_ctor_get(x_1, 6);
@ -3855,11 +3980,11 @@ x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
lean_dec_ref(x_32);
x_34 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_34, 0, x_27);
lean_ctor_set(x_34, 1, x_29);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_28);
lean_ctor_set(x_34, 2, x_27);
lean_ctor_set_uint8(x_34, sizeof(void*)*3, x_25);
lean_ctor_set_uint8(x_34, sizeof(void*)*3 + 1, x_28);
lean_ctor_set_uint8(x_34, sizeof(void*)*3 + 1, x_29);
x_35 = l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__1;
x_36 = lean_string_append(x_30, x_35);
x_37 = lean_string_append(x_36, x_33);
@ -3892,11 +4017,11 @@ lean_dec(x_43);
x_46 = l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__4;
x_47 = lean_string_append(x_45, x_46);
x_4 = x_47;
x_5 = x_27;
x_5 = x_24;
x_6 = x_25;
x_7 = x_28;
x_8 = x_29;
x_9 = x_26;
x_7 = x_29;
x_8 = x_28;
x_9 = x_27;
x_10 = lean_box(0);
goto block_19;
}
@ -3906,11 +4031,11 @@ lean_object* x_48;
lean_dec(x_42);
x_48 = l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__1;
x_4 = x_48;
x_5 = x_27;
x_5 = x_24;
x_6 = x_25;
x_7 = x_28;
x_8 = x_29;
x_9 = x_26;
x_7 = x_29;
x_8 = x_28;
x_9 = x_27;
x_10 = lean_box(0);
goto block_19;
}
@ -3939,12 +4064,12 @@ lean_dec_ref(x_2);
x_58 = lean_ctor_get(x_52, 0);
lean_inc(x_58);
lean_dec_ref(x_52);
x_24 = lean_box(0);
x_24 = x_53;
x_25 = x_54;
x_26 = x_57;
x_27 = x_53;
x_28 = x_55;
x_29 = x_56;
x_26 = lean_box(0);
x_27 = x_57;
x_28 = x_56;
x_29 = x_55;
x_30 = x_58;
goto block_49;
}
@ -4012,12 +4137,12 @@ lean_dec_ref(x_2);
x_80 = lean_ctor_get(x_50, 0);
lean_inc(x_80);
lean_dec_ref(x_50);
x_24 = lean_box(0);
x_24 = x_75;
x_25 = x_76;
x_26 = x_79;
x_27 = x_75;
x_28 = x_77;
x_29 = x_78;
x_26 = lean_box(0);
x_27 = x_79;
x_28 = x_78;
x_29 = x_77;
x_30 = x_80;
goto block_49;
}
@ -5416,7 +5541,7 @@ lean_ctor_set(x_10, 0, x_23);
x_31 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_5, x_3, x_30, x_22, x_29, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_31) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_61; lean_object* x_62; lean_object* x_63; uint8_t x_83; uint8_t x_84; uint8_t x_85;
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_61; lean_object* x_62; lean_object* x_63; uint8_t x_83; uint8_t x_84; uint8_t x_85;
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_31, 1);
@ -5485,8 +5610,8 @@ block_60:
{
uint8_t x_43; lean_object* x_44; uint8_t x_45;
x_43 = 1;
x_44 = l_Lake_untar(x_3, x_39, x_43, x_37);
x_45 = l_Lake_JobAction_merge(x_36, x_35);
x_44 = l_Lake_untar(x_3, x_38, x_43, x_40);
x_45 = l_Lake_JobAction_merge(x_37, x_35);
if (lean_obj_tag(x_44) == 0)
{
uint8_t x_46;
@ -5497,10 +5622,10 @@ lean_object* x_47; lean_object* x_48;
x_47 = lean_ctor_get(x_44, 1);
x_48 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_48, 0, x_47);
lean_ctor_set(x_48, 1, x_41);
lean_ctor_set(x_48, 2, x_42);
lean_ctor_set(x_48, 1, x_36);
lean_ctor_set(x_48, 2, x_39);
lean_ctor_set_uint8(x_48, sizeof(void*)*3, x_45);
lean_ctor_set_uint8(x_48, sizeof(void*)*3 + 1, x_38);
lean_ctor_set_uint8(x_48, sizeof(void*)*3 + 1, x_41);
lean_ctor_set(x_44, 1, x_48);
return x_44;
}
@ -5514,10 +5639,10 @@ lean_inc(x_49);
lean_dec(x_44);
x_51 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_51, 0, x_50);
lean_ctor_set(x_51, 1, x_41);
lean_ctor_set(x_51, 2, x_42);
lean_ctor_set(x_51, 1, x_36);
lean_ctor_set(x_51, 2, x_39);
lean_ctor_set_uint8(x_51, sizeof(void*)*3, x_45);
lean_ctor_set_uint8(x_51, sizeof(void*)*3 + 1, x_38);
lean_ctor_set_uint8(x_51, sizeof(void*)*3 + 1, x_41);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_49);
lean_ctor_set(x_52, 1, x_51);
@ -5534,10 +5659,10 @@ lean_object* x_54; lean_object* x_55;
x_54 = lean_ctor_get(x_44, 1);
x_55 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_55, 0, x_54);
lean_ctor_set(x_55, 1, x_41);
lean_ctor_set(x_55, 2, x_42);
lean_ctor_set(x_55, 1, x_36);
lean_ctor_set(x_55, 2, x_39);
lean_ctor_set_uint8(x_55, sizeof(void*)*3, x_45);
lean_ctor_set_uint8(x_55, sizeof(void*)*3 + 1, x_38);
lean_ctor_set_uint8(x_55, sizeof(void*)*3 + 1, x_41);
lean_ctor_set(x_44, 1, x_55);
return x_44;
}
@ -5551,10 +5676,10 @@ lean_inc(x_56);
lean_dec(x_44);
x_58 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_58, 0, x_57);
lean_ctor_set(x_58, 1, x_41);
lean_ctor_set(x_58, 2, x_42);
lean_ctor_set(x_58, 1, x_36);
lean_ctor_set(x_58, 2, x_39);
lean_ctor_set_uint8(x_58, sizeof(void*)*3, x_45);
lean_ctor_set_uint8(x_58, sizeof(void*)*3 + 1, x_38);
lean_ctor_set_uint8(x_58, sizeof(void*)*3 + 1, x_41);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_56);
lean_ctor_set(x_59, 1, x_58);
@ -5589,13 +5714,13 @@ lean_inc_ref(x_73);
x_74 = lean_ctor_get(x_62, 2);
lean_inc(x_74);
lean_dec_ref(x_62);
x_36 = x_71;
x_37 = x_70;
x_38 = x_72;
x_39 = x_68;
x_40 = lean_box(0);
x_41 = x_73;
x_42 = x_74;
x_36 = x_73;
x_37 = x_71;
x_38 = x_68;
x_39 = x_74;
x_40 = x_70;
x_41 = x_72;
x_42 = lean_box(0);
goto block_60;
}
else
@ -5613,13 +5738,13 @@ lean_inc_ref(x_78);
x_79 = lean_ctor_get(x_62, 2);
lean_inc(x_79);
lean_dec_ref(x_62);
x_36 = x_76;
x_37 = x_75;
x_38 = x_77;
x_39 = x_68;
x_40 = lean_box(0);
x_41 = x_78;
x_42 = x_79;
x_36 = x_78;
x_37 = x_76;
x_38 = x_68;
x_39 = x_79;
x_40 = x_75;
x_41 = x_77;
x_42 = lean_box(0);
goto block_60;
}
else
@ -5723,7 +5848,7 @@ lean_ctor_set_uint8(x_113, sizeof(void*)*3 + 1, x_98);
x_114 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___00__private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_5, x_3, x_112, x_104, x_111, x_6, x_7, x_8, x_9, x_113);
if (lean_obj_tag(x_114) == 0)
{
lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; uint8_t x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_140; lean_object* x_141; lean_object* x_142; uint8_t x_162; uint8_t x_163; uint8_t x_164;
lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; uint8_t x_140; lean_object* x_141; lean_object* x_142; uint8_t x_162; uint8_t x_163; uint8_t x_164;
x_115 = lean_ctor_get(x_114, 0);
lean_inc(x_115);
x_116 = lean_ctor_get(x_114, 1);
@ -5792,8 +5917,8 @@ block_139:
{
uint8_t x_126; lean_object* x_127; uint8_t x_128;
x_126 = 1;
x_127 = l_Lake_untar(x_3, x_122, x_126, x_120);
x_128 = l_Lake_JobAction_merge(x_119, x_118);
x_127 = l_Lake_untar(x_3, x_121, x_126, x_123);
x_128 = l_Lake_JobAction_merge(x_120, x_118);
if (lean_obj_tag(x_127) == 0)
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133;
@ -5811,10 +5936,10 @@ if (lean_is_exclusive(x_127)) {
}
x_132 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_132, 0, x_130);
lean_ctor_set(x_132, 1, x_124);
lean_ctor_set(x_132, 2, x_125);
lean_ctor_set(x_132, 1, x_119);
lean_ctor_set(x_132, 2, x_122);
lean_ctor_set_uint8(x_132, sizeof(void*)*3, x_128);
lean_ctor_set_uint8(x_132, sizeof(void*)*3 + 1, x_121);
lean_ctor_set_uint8(x_132, sizeof(void*)*3 + 1, x_124);
if (lean_is_scalar(x_131)) {
x_133 = lean_alloc_ctor(0, 2, 0);
} else {
@ -5841,10 +5966,10 @@ if (lean_is_exclusive(x_127)) {
}
x_137 = lean_alloc_ctor(0, 3, 2);
lean_ctor_set(x_137, 0, x_135);
lean_ctor_set(x_137, 1, x_124);
lean_ctor_set(x_137, 2, x_125);
lean_ctor_set(x_137, 1, x_119);
lean_ctor_set(x_137, 2, x_122);
lean_ctor_set_uint8(x_137, sizeof(void*)*3, x_128);
lean_ctor_set_uint8(x_137, sizeof(void*)*3 + 1, x_121);
lean_ctor_set_uint8(x_137, sizeof(void*)*3 + 1, x_124);
if (lean_is_scalar(x_136)) {
x_138 = lean_alloc_ctor(1, 2, 0);
} else {
@ -5882,13 +6007,13 @@ lean_inc_ref(x_152);
x_153 = lean_ctor_get(x_141, 2);
lean_inc(x_153);
lean_dec_ref(x_141);
x_119 = x_150;
x_120 = x_149;
x_121 = x_151;
x_122 = x_147;
x_123 = lean_box(0);
x_124 = x_152;
x_125 = x_153;
x_119 = x_152;
x_120 = x_150;
x_121 = x_147;
x_122 = x_153;
x_123 = x_149;
x_124 = x_151;
x_125 = lean_box(0);
goto block_139;
}
else
@ -5906,13 +6031,13 @@ lean_inc_ref(x_157);
x_158 = lean_ctor_get(x_141, 2);
lean_inc(x_158);
lean_dec_ref(x_141);
x_119 = x_155;
x_120 = x_154;
x_121 = x_156;
x_122 = x_147;
x_123 = lean_box(0);
x_124 = x_157;
x_125 = x_158;
x_119 = x_157;
x_120 = x_155;
x_121 = x_147;
x_122 = x_158;
x_123 = x_154;
x_124 = x_156;
x_125 = lean_box(0);
goto block_139;
}
else
@ -9219,9 +9344,9 @@ goto block_52;
block_44:
{
lean_object* x_41; lean_object* x_42; lean_object* x_43;
x_41 = lean_nat_add(x_38, x_40);
x_41 = lean_nat_add(x_39, x_40);
lean_dec(x_40);
lean_dec(x_38);
lean_dec(x_39);
if (lean_is_scalar(x_35)) {
x_42 = lean_alloc_ctor(0, 5, 0);
} else {
@ -9240,7 +9365,7 @@ if (lean_is_scalar(x_25)) {
lean_ctor_set(x_43, 0, x_37);
lean_ctor_set(x_43, 1, x_28);
lean_ctor_set(x_43, 2, x_29);
lean_ctor_set(x_43, 3, x_39);
lean_ctor_set(x_43, 3, x_38);
lean_ctor_set(x_43, 4, x_42);
return x_43;
}
@ -9266,8 +9391,8 @@ if (lean_obj_tag(x_31) == 0)
lean_object* x_50;
x_50 = lean_ctor_get(x_31, 0);
lean_inc(x_50);
x_38 = x_49;
x_39 = x_48;
x_38 = x_48;
x_39 = x_49;
x_40 = x_50;
goto block_44;
}
@ -9275,8 +9400,8 @@ else
{
lean_object* x_51;
x_51 = lean_unsigned_to_nat(0u);
x_38 = x_49;
x_39 = x_48;
x_38 = x_48;
x_39 = x_49;
x_40 = x_51;
goto block_44;
}
@ -10236,8 +10361,8 @@ l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__3
lean_mark_persistent(l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__3);
l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__4 = _init_l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__4();
lean_mark_persistent(l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__4);
l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0 = _init_l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0___redArg___closed__0);
l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_formatQuery___at___00Lake_Package_depsFacetConfig_spec__0_spec__0___closed__0);
l_Lake_Package_depsFacetConfig___closed__0 = _init_l_Lake_Package_depsFacetConfig___closed__0();
lean_mark_persistent(l_Lake_Package_depsFacetConfig___closed__0);
l_Lake_Package_depsFacetConfig___closed__1 = _init_l_Lake_Package_depsFacetConfig___closed__1();
@ -10298,6 +10423,8 @@ l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed_
lean_mark_persistent(l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed__0);
l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed__1 = _init_l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed__1();
lean_mark_persistent(l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___closed__1);
l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg___closed__0 = _init_l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lake_formatQuery___at___00Lake_Package_extraDepFacetConfig_spec__0___redArg___closed__0);
l_Lake_Package_extraDepFacetConfig___closed__0 = _init_l_Lake_Package_extraDepFacetConfig___closed__0();
lean_mark_persistent(l_Lake_Package_extraDepFacetConfig___closed__0);
l_Lake_Package_extraDepFacetConfig___closed__1 = _init_l_Lake_Package_extraDepFacetConfig___closed__1();

File diff suppressed because it is too large Load diff

View file

@ -23,45 +23,46 @@ LEAN_EXPORT lean_object* l_Lake_instQueryText___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJson___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryTextOfToText___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_text_elim___redArg(lean_object*);
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__8;
LEAN_EXPORT lean_object* l_Lake_instQueryJsonArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextOfToString(lean_object*, lean_object*);
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00Lake_ppModuleHeader_spec__0(uint8_t, lean_object*, size_t, size_t, lean_object*);
uint8_t lean_usize_dec_eq(size_t, size_t);
LEAN_EXPORT lean_object* l_Lake_instToTextList___redArg___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonUnit;
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList(lean_object*, lean_object*);
static lean_object* l_Lake_arrayToLines___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lake_instQueryText___lam__0___boxed(lean_object*);
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__2;
static lean_object* l_Lake_instToTextJson___closed__0;
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__4;
static lean_object* l_Lake_ppImport___closed__3;
static lean_object* l_Lake_ppModuleHeader___closed__1;
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* lean_string_push(lean_object*, uint32_t);
static lean_object* l_Lake_instToTextList___redArg___lam__0___closed__0;
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__7;
LEAN_EXPORT lean_object* l_Lake_formatQuery___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__0;
size_t lean_usize_of_nat(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextOfToString___redArg___boxed(lean_object*);
static lean_object* l_Lake_arrayToLines___redArg___closed__5;
static lean_object* l_Lake_ppImport___closed__2;
static lean_object* l_Lake_arrayToLines___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lake_OutFormat_text_elim(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_nullFormat___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextJson;
LEAN_EXPORT lean_object* l_Lake_instQueryTextArray___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_arrayToLines(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextList___redArg(lean_object*);
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__1;
lean_object* l_List_foldl___redArg(lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
lean_object* l_String_Slice_Pos_prevn(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ppImport___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonArray___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList___redArg___lam__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_ctorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lake_ppImport(lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instFormatQueryOfQueryTextOfQueryJson___redArg(lean_object*, lean_object*);
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__9;
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__5;
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__6;
LEAN_EXPORT lean_object* l_Lake_listToLines___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryTextOfToText___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonUnit___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJson___lam__0___boxed(lean_object*);
@ -69,7 +70,6 @@ lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, l
LEAN_EXPORT lean_object* l_Lake_instQueryTextUnit;
LEAN_EXPORT lean_object* l_Lake_OutFormat_json_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_ctorElim___redArg(lean_object*);
static lean_object* l_Lake_instToTextList___redArg___lam__1___closed__0;
LEAN_EXPORT lean_object* l_Lake_OutFormat_text_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_ctorElim(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_nullFormat(lean_object*, uint8_t, lean_object*);
@ -78,33 +78,51 @@ LEAN_EXPORT lean_object* l_Lake_OutFormat_ctorElim___redArg___boxed(lean_object*
LEAN_EXPORT lean_object* l_Lake_OutFormat_json_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryTextOfToText___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_json_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_arrayToLines___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lake_instQueryTextList(lean_object*, lean_object*);
static lean_object* l_Lake_listToLines___redArg___closed__0;
static lean_object* l_Lake_arrayToLines___redArg___closed__0;
static lean_object* l_Lake_arrayToLines___redArg___closed__8;
LEAN_EXPORT lean_object* l_Lake_nullFormat___redArg___boxed(lean_object*);
static lean_object* l_Lake_instToTextArray___redArg___lam__1___closed__3;
LEAN_EXPORT lean_object* l_Lake_listToLines(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonOfToJson___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ppModuleHeader(lean_object*);
static lean_object* l_Lake_arrayToLines___redArg___closed__9;
static lean_object* l_Lake_arrayToLines___redArg___closed__1;
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_json_elim___redArg(lean_object*);
static lean_object* l_Lake_arrayToLines___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lake_instToTextArray___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ppModuleHeader___boxed(lean_object*);
static lean_object* l_Lake_instQueryJson___closed__0;
static lean_object* l_Lake_ppModuleHeader___closed__0;
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList___redArg(lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextList(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryTextList___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery(lean_object*, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonArray___redArg___lam__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonOfToJson___redArg(lean_object*);
static lean_object* l_Lake_ppImport___closed__1;
static lean_object* l_Lake_listToLines___redArg___lam__0___closed__0;
lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l___private_Lake_Config_OutFormat_0__Lake_instQueryTextModuleHeader___closed__0;
LEAN_EXPORT lean_object* l_Lake_listToLines___redArg___lam__0(lean_object*, lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextArray(lean_object*, lean_object*);
lean_object* lean_array_mk(lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_toCtorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryTextArray(lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList___redArg___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJsonOfToJson(lean_object*, lean_object*);
static lean_object* l_Lake_instQueryJsonUnit___closed__0;
LEAN_EXPORT lean_object* l_Lake_instQueryTextUnit___lam__0(lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
LEAN_EXPORT lean_object* l_Lake_OutFormat_toCtorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lake_instQueryText(lean_object*);
static lean_object* l_Lake_arrayToLines___redArg___closed__6;
static lean_object* l_Lake_instQueryTextUnit___closed__0;
LEAN_EXPORT lean_object* l_Lake_instFormatQueryOfQueryTextOfQueryJson(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_Config_OutFormat_0__Lake_instQueryTextModuleHeader;
@ -112,6 +130,7 @@ lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_instQueryJson(lean_object*);
LEAN_EXPORT lean_object* l_Lake_instToTextList___redArg___lam__1(lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l_Lake_arrayToLines___redArg(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_formatQuery___redArg(lean_object*, uint8_t, lean_object*);
@ -299,6 +318,322 @@ lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_listToLines___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("\n", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_listToLines___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_4 = lean_apply_1(x_1, x_3);
x_5 = lean_string_append(x_2, x_4);
lean_dec_ref(x_4);
x_6 = l_Lake_listToLines___redArg___lam__0___closed__0;
x_7 = lean_string_append(x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Lake_listToLines___redArg___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_listToLines___redArg(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
x_3 = lean_alloc_closure((void*)(l_Lake_listToLines___redArg___lam__0), 3, 1);
lean_closure_set(x_3, 0, x_2);
x_4 = l_Lake_listToLines___redArg___closed__0;
x_5 = l_List_foldl___redArg(x_3, x_4, x_1);
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_utf8_byte_size(x_5);
lean_inc(x_5);
x_9 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_9, 0, x_5);
lean_ctor_set(x_9, 1, x_7);
lean_ctor_set(x_9, 2, x_8);
x_10 = l_String_Slice_Pos_prevn(x_9, x_8, x_6);
lean_dec_ref(x_9);
x_11 = lean_string_utf8_extract(x_5, x_7, x_10);
lean_dec(x_10);
lean_dec(x_5);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lake_listToLines(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
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_object* x_10; lean_object* x_11; lean_object* x_12;
x_4 = lean_alloc_closure((void*)(l_Lake_listToLines___redArg___lam__0), 3, 1);
lean_closure_set(x_4, 0, x_3);
x_5 = l_Lake_listToLines___redArg___closed__0;
x_6 = l_List_foldl___redArg(x_4, x_5, x_2);
x_7 = lean_unsigned_to_nat(1u);
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_string_utf8_byte_size(x_6);
lean_inc(x_6);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_8);
lean_ctor_set(x_10, 2, x_9);
x_11 = l_String_Slice_Pos_prevn(x_10, x_9, x_7);
lean_dec_ref(x_10);
x_12 = lean_string_utf8_extract(x_6, x_8, x_11);
lean_dec(x_11);
lean_dec(x_6);
return x_12;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__4() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__6() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lake_arrayToLines___redArg___closed__1;
x_2 = l_Lake_arrayToLines___redArg___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__8() {
_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_Lake_arrayToLines___redArg___closed__5;
x_2 = l_Lake_arrayToLines___redArg___closed__4;
x_3 = l_Lake_arrayToLines___redArg___closed__3;
x_4 = l_Lake_arrayToLines___redArg___closed__2;
x_5 = l_Lake_arrayToLines___redArg___closed__7;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lake_arrayToLines___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lake_arrayToLines___redArg___closed__6;
x_2 = l_Lake_arrayToLines___redArg___closed__8;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_arrayToLines___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
x_11 = l_Lake_listToLines___redArg___closed__0;
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_get_size(x_1);
x_14 = l_Lake_arrayToLines___redArg___closed__9;
x_15 = lean_nat_dec_lt(x_12, x_13);
if (x_15 == 0)
{
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_3 = x_11;
goto block_10;
}
else
{
lean_object* x_16; uint8_t x_17;
x_16 = lean_alloc_closure((void*)(l_Lake_listToLines___redArg___lam__0), 3, 1);
lean_closure_set(x_16, 0, x_2);
x_17 = lean_nat_dec_le(x_13, x_13);
if (x_17 == 0)
{
if (x_15 == 0)
{
lean_dec_ref(x_16);
lean_dec_ref(x_1);
x_3 = x_11;
goto block_10;
}
else
{
size_t x_18; size_t x_19; lean_object* x_20;
x_18 = 0;
x_19 = lean_usize_of_nat(x_13);
x_20 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_14, x_16, x_1, x_18, x_19, x_11);
x_3 = x_20;
goto block_10;
}
}
else
{
size_t x_21; size_t x_22; lean_object* x_23;
x_21 = 0;
x_22 = lean_usize_of_nat(x_13);
x_23 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_14, x_16, x_1, x_21, x_22, x_11);
x_3 = x_23;
goto block_10;
}
}
block_10:
{
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_unsigned_to_nat(1u);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_utf8_byte_size(x_3);
lean_inc_ref(x_3);
x_7 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 2, x_6);
x_8 = l_String_Slice_Pos_prevn(x_7, x_6, x_4);
lean_dec_ref(x_7);
x_9 = lean_string_utf8_extract(x_3, x_5, x_8);
lean_dec(x_8);
lean_dec_ref(x_3);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lake_arrayToLines(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
x_12 = l_Lake_listToLines___redArg___closed__0;
x_13 = lean_unsigned_to_nat(0u);
x_14 = lean_array_get_size(x_2);
x_15 = l_Lake_arrayToLines___redArg___closed__9;
x_16 = lean_nat_dec_lt(x_13, x_14);
if (x_16 == 0)
{
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_4 = x_12;
goto block_11;
}
else
{
lean_object* x_17; uint8_t x_18;
x_17 = lean_alloc_closure((void*)(l_Lake_listToLines___redArg___lam__0), 3, 1);
lean_closure_set(x_17, 0, x_3);
x_18 = lean_nat_dec_le(x_14, x_14);
if (x_18 == 0)
{
if (x_16 == 0)
{
lean_dec_ref(x_17);
lean_dec_ref(x_2);
x_4 = x_12;
goto block_11;
}
else
{
size_t x_19; size_t x_20; lean_object* x_21;
x_19 = 0;
x_20 = lean_usize_of_nat(x_14);
x_21 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_15, x_17, x_2, x_19, x_20, x_12);
x_4 = x_21;
goto block_11;
}
}
else
{
size_t x_22; size_t x_23; lean_object* x_24;
x_22 = 0;
x_23 = lean_usize_of_nat(x_14);
x_24 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_15, x_17, x_2, x_22, x_23, x_12);
x_4 = x_24;
goto block_11;
}
}
block_11:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_string_utf8_byte_size(x_4);
lean_inc_ref(x_4);
x_8 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_8, 0, x_4);
lean_ctor_set(x_8, 1, x_6);
lean_ctor_set(x_8, 2, x_7);
x_9 = l_String_Slice_Pos_prevn(x_8, x_7, x_5);
lean_dec_ref(x_8);
x_10 = lean_string_utf8_extract(x_4, x_6, x_9);
lean_dec(x_9);
lean_dec_ref(x_4);
return x_10;
}
}
}
static lean_object* _init_l_Lake_instToTextJson___closed__0() {
_start:
{
@ -315,14 +650,6 @@ x_1 = l_Lake_instToTextJson___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextList___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("\n", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_instToTextList___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -330,24 +657,16 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
x_4 = lean_apply_1(x_1, x_3);
x_5 = lean_string_append(x_2, x_4);
lean_dec_ref(x_4);
x_6 = l_Lake_instToTextList___redArg___lam__0___closed__0;
x_6 = l_Lake_listToLines___redArg___lam__0___closed__0;
x_7 = lean_string_append(x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Lake_instToTextList___redArg___lam__1___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_instToTextList___redArg___lam__1(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
x_3 = l_Lake_instToTextList___redArg___lam__1___closed__0;
x_3 = l_Lake_listToLines___redArg___closed__0;
x_4 = l_List_foldl___redArg(x_1, x_3, x_2);
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_unsigned_to_nat(0u);
@ -384,112 +703,14 @@ x_3 = l_Lake_instToTextList___redArg(x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__4() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__6() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lake_instToTextArray___redArg___lam__1___closed__1;
x_2 = l_Lake_instToTextArray___redArg___lam__1___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__8() {
_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_Lake_instToTextArray___redArg___lam__1___closed__5;
x_2 = l_Lake_instToTextArray___redArg___lam__1___closed__4;
x_3 = l_Lake_instToTextArray___redArg___lam__1___closed__3;
x_4 = l_Lake_instToTextArray___redArg___lam__1___closed__2;
x_5 = l_Lake_instToTextArray___redArg___lam__1___closed__7;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lake_instToTextArray___redArg___lam__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lake_instToTextArray___redArg___lam__1___closed__6;
x_2 = l_Lake_instToTextArray___redArg___lam__1___closed__8;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instToTextArray___redArg___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
x_11 = l_Lake_instToTextList___redArg___lam__1___closed__0;
x_11 = l_Lake_listToLines___redArg___closed__0;
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_get_size(x_2);
x_14 = l_Lake_instToTextArray___redArg___lam__1___closed__9;
x_14 = l_Lake_arrayToLines___redArg___closed__9;
x_15 = lean_nat_dec_lt(x_12, x_13);
if (x_15 == 0)
{
@ -574,7 +795,7 @@ LEAN_EXPORT lean_object* l_Lake_instQueryText___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_Lake_instToTextList___redArg___lam__1___closed__0;
x_2 = l_Lake_listToLines___redArg___closed__0;
return x_2;
}
}
@ -635,11 +856,49 @@ lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryTextList___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = lean_alloc_closure((void*)(l_Lake_instToTextList___redArg___lam__0), 3, 1);
lean_closure_set(x_2, 0, x_1);
x_3 = lean_alloc_closure((void*)(l_Lake_instToTextList___redArg___lam__1), 2, 1);
lean_closure_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryTextList(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = l_Lake_instQueryTextList___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryTextArray___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = lean_alloc_closure((void*)(l_Lake_instToTextList___redArg___lam__0), 3, 1);
lean_closure_set(x_2, 0, x_1);
x_3 = lean_alloc_closure((void*)(l_Lake_instToTextArray___redArg___lam__1), 2, 1);
lean_closure_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryTextArray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = l_Lake_instQueryTextArray___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryTextUnit___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_Lake_instToTextList___redArg___lam__1___closed__0;
x_2 = l_Lake_listToLines___redArg___closed__0;
return x_2;
}
}
@ -724,6 +983,79 @@ lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = lean_apply_1(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList___redArg___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8;
x_3 = lean_array_mk(x_2);
x_4 = l_Lake_arrayToLines___redArg___closed__9;
x_5 = lean_array_size(x_3);
x_6 = 0;
x_7 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), x_4, x_1, x_5, x_6, x_3);
x_8 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = lean_alloc_closure((void*)(l_Lake_instQueryJsonList___redArg___lam__0), 2, 1);
lean_closure_set(x_2, 0, x_1);
x_3 = lean_alloc_closure((void*)(l_Lake_instQueryJsonList___redArg___lam__1), 2, 1);
lean_closure_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonList(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = l_Lake_instQueryJsonList___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonArray___redArg___lam__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; lean_object* x_7;
x_3 = l_Lake_arrayToLines___redArg___closed__9;
x_4 = lean_array_size(x_2);
x_5 = 0;
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map(lean_box(0), lean_box(0), lean_box(0), x_3, x_1, x_4, x_5, x_2);
x_7 = lean_alloc_ctor(4, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonArray___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = lean_alloc_closure((void*)(l_Lake_instQueryJsonList___redArg___lam__0), 2, 1);
lean_closure_set(x_2, 0, x_1);
x_3 = lean_alloc_closure((void*)(l_Lake_instQueryJsonArray___redArg___lam__1), 2, 1);
lean_closure_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonArray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = l_Lake_instQueryJsonArray___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_instQueryJsonUnit___lam__0(lean_object* x_1) {
_start:
{
@ -783,7 +1115,7 @@ _start:
if (x_1 == 0)
{
lean_object* x_2;
x_2 = l_Lake_instToTextList___redArg___lam__1___closed__0;
x_2 = l_Lake_listToLines___redArg___closed__0;
return x_2;
}
else
@ -1144,34 +1476,34 @@ lean_dec_ref(res);
res = initialize_Init_Data_String_TakeDrop(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_listToLines___redArg___lam__0___closed__0 = _init_l_Lake_listToLines___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lake_listToLines___redArg___lam__0___closed__0);
l_Lake_listToLines___redArg___closed__0 = _init_l_Lake_listToLines___redArg___closed__0();
lean_mark_persistent(l_Lake_listToLines___redArg___closed__0);
l_Lake_arrayToLines___redArg___closed__0 = _init_l_Lake_arrayToLines___redArg___closed__0();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__0);
l_Lake_arrayToLines___redArg___closed__1 = _init_l_Lake_arrayToLines___redArg___closed__1();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__1);
l_Lake_arrayToLines___redArg___closed__2 = _init_l_Lake_arrayToLines___redArg___closed__2();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__2);
l_Lake_arrayToLines___redArg___closed__3 = _init_l_Lake_arrayToLines___redArg___closed__3();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__3);
l_Lake_arrayToLines___redArg___closed__4 = _init_l_Lake_arrayToLines___redArg___closed__4();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__4);
l_Lake_arrayToLines___redArg___closed__5 = _init_l_Lake_arrayToLines___redArg___closed__5();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__5);
l_Lake_arrayToLines___redArg___closed__6 = _init_l_Lake_arrayToLines___redArg___closed__6();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__6);
l_Lake_arrayToLines___redArg___closed__7 = _init_l_Lake_arrayToLines___redArg___closed__7();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__7);
l_Lake_arrayToLines___redArg___closed__8 = _init_l_Lake_arrayToLines___redArg___closed__8();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__8);
l_Lake_arrayToLines___redArg___closed__9 = _init_l_Lake_arrayToLines___redArg___closed__9();
lean_mark_persistent(l_Lake_arrayToLines___redArg___closed__9);
l_Lake_instToTextJson___closed__0 = _init_l_Lake_instToTextJson___closed__0();
lean_mark_persistent(l_Lake_instToTextJson___closed__0);
l_Lake_instToTextJson = _init_l_Lake_instToTextJson();
lean_mark_persistent(l_Lake_instToTextJson);
l_Lake_instToTextList___redArg___lam__0___closed__0 = _init_l_Lake_instToTextList___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lake_instToTextList___redArg___lam__0___closed__0);
l_Lake_instToTextList___redArg___lam__1___closed__0 = _init_l_Lake_instToTextList___redArg___lam__1___closed__0();
lean_mark_persistent(l_Lake_instToTextList___redArg___lam__1___closed__0);
l_Lake_instToTextArray___redArg___lam__1___closed__0 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__0();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__0);
l_Lake_instToTextArray___redArg___lam__1___closed__1 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__1();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__1);
l_Lake_instToTextArray___redArg___lam__1___closed__2 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__2();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__2);
l_Lake_instToTextArray___redArg___lam__1___closed__3 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__3();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__3);
l_Lake_instToTextArray___redArg___lam__1___closed__4 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__4();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__4);
l_Lake_instToTextArray___redArg___lam__1___closed__5 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__5();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__5);
l_Lake_instToTextArray___redArg___lam__1___closed__6 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__6();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__6);
l_Lake_instToTextArray___redArg___lam__1___closed__7 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__7();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__7);
l_Lake_instToTextArray___redArg___lam__1___closed__8 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__8();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__8);
l_Lake_instToTextArray___redArg___lam__1___closed__9 = _init_l_Lake_instToTextArray___redArg___lam__1___closed__9();
lean_mark_persistent(l_Lake_instToTextArray___redArg___lam__1___closed__9);
l_Lake_instQueryText___closed__0 = _init_l_Lake_instQueryText___closed__0();
lean_mark_persistent(l_Lake_instQueryText___closed__0);
l_Lake_instQueryTextUnit___closed__0 = _init_l_Lake_instQueryTextUnit___closed__0();

View file

@ -37,6 +37,7 @@ static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit_
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__17;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__0(size_t, size_t, lean_object*);
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__4;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___closed__8;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___closed__3;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
@ -56,8 +57,10 @@ static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLi
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__3;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__8;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__2;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___closed__4;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__11;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__13;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__4;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__9;
@ -91,6 +94,7 @@ LEAN_EXPORT lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTarget
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__15;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___closed__5;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__5;
LEAN_EXPORT lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit__1();
@ -101,6 +105,7 @@ static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit_
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__7;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13;
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__17;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__11;
@ -112,6 +117,7 @@ static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__4;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__9;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__0;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__3;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__5;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__13;
@ -123,6 +129,7 @@ static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLi
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__0;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__1;
lean_object* l_Lean_Name_mkStr1(lean_object*);
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__16;
@ -132,6 +139,7 @@ static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyL
lean_object* lean_array_get_size(lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__17;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
LEAN_EXPORT lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit(lean_object*, lean_object*, lean_object*);
lean_object* l_Lake_Name_quoteFrom(lean_object*, lean_object*, uint8_t);
@ -139,6 +147,7 @@ static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit_
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__8;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit__1___closed__0;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetKeyLit___closed__9;
static lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__16;
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__0() {
_start:
{
@ -1111,7 +1120,7 @@ static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTarge
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("PartialBuildKey.mk", 18, 18);
x_1 = lean_mk_string_unchecked("BuildKey.module", 15, 15);
return x_1;
}
}
@ -1128,51 +1137,53 @@ static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTarge
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("PartialBuildKey", 15, 15);
x_1 = lean_mk_string_unchecked("module", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__5() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("mk", 2, 2);
return x_1;
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__4;
x_2 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__7;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__5;
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__4;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__5;
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__4;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__4;
x_2 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__7;
x_3 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__10;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__8() {
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__7;
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9() {
_start:
{
@ -1185,6 +1196,96 @@ lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9;
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__11() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("PartialBuildKey.mk", 18, 18);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__11;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("PartialBuildKey", 15, 15);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("mk", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14;
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14;
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13;
x_3 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__10;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__16;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__17;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -1223,253 +1324,249 @@ return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
lean_object* x_17; uint8_t x_18;
x_17 = lean_ctor_get(x_15, 0);
lean_inc(x_17);
lean_dec_ref(x_15);
x_18 = l_Lean_Syntax_getArg(x_1, x_9);
x_19 = l_Lean_TSyntax_getId(x_18);
x_20 = !lean_is_exclusive(x_2);
if (x_20 == 0)
x_18 = !lean_is_exclusive(x_2);
if (x_18 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t 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;
x_21 = lean_ctor_get(x_2, 1);
x_22 = lean_ctor_get(x_2, 2);
x_23 = lean_ctor_get(x_2, 5);
x_24 = 0;
x_25 = l_Lake_Name_quoteFrom(x_18, x_19, x_24);
x_26 = lean_unsigned_to_nat(0u);
x_27 = l_Lean_Syntax_getArg(x_1, x_26);
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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;
x_19 = lean_ctor_get(x_2, 1);
x_20 = lean_ctor_get(x_2, 2);
x_21 = lean_ctor_get(x_2, 5);
x_22 = l_Lean_Syntax_getArg(x_1, x_9);
x_23 = l_Lean_TSyntax_getId(x_22);
x_24 = lean_unsigned_to_nat(0u);
x_25 = l_Lean_Syntax_getArg(x_1, x_24);
lean_dec(x_1);
x_28 = lean_box(0);
lean_inc(x_27);
x_29 = l_Lake_Name_quoteFrom(x_27, x_28, x_24);
x_30 = l_Lean_replaceRef(x_27, x_23);
lean_dec(x_23);
lean_dec(x_27);
lean_inc(x_30);
lean_inc(x_22);
lean_inc(x_21);
lean_ctor_set(x_2, 5, x_30);
x_31 = l_Lean_SourceInfo_fromRef(x_30, x_24);
lean_dec(x_30);
x_32 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__4;
x_33 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__10;
x_34 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__12;
lean_inc(x_22);
lean_inc(x_21);
x_35 = l_Lean_addMacroScope(x_21, x_34, x_22);
x_36 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__17;
lean_inc(x_31);
x_37 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_37, 0, x_31);
lean_ctor_set(x_37, 1, x_33);
lean_ctor_set(x_37, 2, x_35);
lean_ctor_set(x_37, 3, x_36);
x_38 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__17;
lean_inc(x_31);
x_39 = l_Lean_Syntax_node2(x_31, x_38, x_29, x_25);
lean_inc(x_31);
x_40 = l_Lean_Syntax_node2(x_31, x_32, x_37, x_39);
x_41 = l___private_Lake_DSL_Key_0__Lake_DSL_expandFacets(x_40, x_17, x_2, x_3);
if (lean_obj_tag(x_41) == 0)
{
uint8_t x_42;
x_42 = !lean_is_exclusive(x_41);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50;
x_43 = lean_ctor_get(x_41, 0);
x_44 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_45 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_46 = l_Lean_addMacroScope(x_21, x_45, x_22);
x_47 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9;
lean_inc(x_31);
x_48 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_48, 0, x_31);
lean_ctor_set(x_48, 1, x_44);
lean_ctor_set(x_48, 2, x_46);
lean_ctor_set(x_48, 3, x_47);
lean_inc(x_31);
x_49 = l_Lean_Syntax_node1(x_31, x_38, x_43);
x_50 = l_Lean_Syntax_node2(x_31, x_32, x_48, x_49);
lean_ctor_set(x_41, 0, x_50);
return x_41;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60;
x_51 = lean_ctor_get(x_41, 0);
x_52 = lean_ctor_get(x_41, 1);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_41);
x_53 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_54 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_55 = l_Lean_addMacroScope(x_21, x_54, x_22);
x_56 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9;
lean_inc(x_31);
x_57 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_57, 0, x_31);
lean_ctor_set(x_57, 1, x_53);
lean_ctor_set(x_57, 2, x_55);
lean_ctor_set(x_57, 3, x_56);
lean_inc(x_31);
x_58 = l_Lean_Syntax_node1(x_31, x_38, x_51);
x_59 = l_Lean_Syntax_node2(x_31, x_32, x_57, x_58);
x_60 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_52);
return x_60;
}
}
else
{
uint8_t x_61;
lean_dec(x_31);
lean_dec(x_22);
x_26 = 0;
x_27 = l_Lake_Name_quoteFrom(x_22, x_23, x_26);
x_28 = l_Lean_replaceRef(x_25, x_21);
lean_dec(x_21);
x_61 = !lean_is_exclusive(x_41);
if (x_61 == 0)
lean_dec(x_25);
lean_inc(x_28);
lean_inc(x_20);
lean_inc(x_19);
lean_ctor_set(x_2, 5, x_28);
x_29 = l_Lean_SourceInfo_fromRef(x_28, x_26);
lean_dec(x_28);
x_30 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__4;
x_31 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_32 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__5;
lean_inc(x_20);
lean_inc(x_19);
x_33 = l_Lean_addMacroScope(x_19, x_32, x_20);
x_34 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10;
lean_inc(x_29);
x_35 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_35, 0, x_29);
lean_ctor_set(x_35, 1, x_31);
lean_ctor_set(x_35, 2, x_33);
lean_ctor_set(x_35, 3, x_34);
x_36 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__17;
lean_inc(x_29);
x_37 = l_Lean_Syntax_node1(x_29, x_36, x_27);
lean_inc(x_29);
x_38 = l_Lean_Syntax_node2(x_29, x_30, x_35, x_37);
x_39 = l___private_Lake_DSL_Key_0__Lake_DSL_expandFacets(x_38, x_17, x_2, x_3);
if (lean_obj_tag(x_39) == 0)
{
return x_41;
uint8_t x_40;
x_40 = !lean_is_exclusive(x_39);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
x_41 = lean_ctor_get(x_39, 0);
x_42 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12;
x_43 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15;
x_44 = l_Lean_addMacroScope(x_19, x_43, x_20);
x_45 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18;
lean_inc(x_29);
x_46 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_46, 0, x_29);
lean_ctor_set(x_46, 1, x_42);
lean_ctor_set(x_46, 2, x_44);
lean_ctor_set(x_46, 3, x_45);
lean_inc(x_29);
x_47 = l_Lean_Syntax_node1(x_29, x_36, x_41);
x_48 = l_Lean_Syntax_node2(x_29, x_30, x_46, x_47);
lean_ctor_set(x_39, 0, x_48);
return x_39;
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64;
x_62 = lean_ctor_get(x_41, 0);
x_63 = lean_ctor_get(x_41, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_41);
x_64 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_64, 0, x_62);
lean_ctor_set(x_64, 1, x_63);
return x_64;
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
x_49 = lean_ctor_get(x_39, 0);
x_50 = lean_ctor_get(x_39, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_39);
x_51 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12;
x_52 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15;
x_53 = l_Lean_addMacroScope(x_19, x_52, x_20);
x_54 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18;
lean_inc(x_29);
x_55 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_55, 0, x_29);
lean_ctor_set(x_55, 1, x_51);
lean_ctor_set(x_55, 2, x_53);
lean_ctor_set(x_55, 3, x_54);
lean_inc(x_29);
x_56 = l_Lean_Syntax_node1(x_29, x_36, x_49);
x_57 = l_Lean_Syntax_node2(x_29, x_30, x_55, x_56);
x_58 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_58, 0, x_57);
lean_ctor_set(x_58, 1, x_50);
return x_58;
}
}
else
{
uint8_t x_59;
lean_dec(x_29);
lean_dec(x_20);
lean_dec(x_19);
x_59 = !lean_is_exclusive(x_39);
if (x_59 == 0)
{
return x_39;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62;
x_60 = lean_ctor_get(x_39, 0);
x_61 = lean_ctor_get(x_39, 1);
lean_inc(x_61);
lean_inc(x_60);
lean_dec(x_39);
x_62 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_62, 0, x_60);
lean_ctor_set(x_62, 1, x_61);
return x_62;
}
}
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89;
x_65 = lean_ctor_get(x_2, 0);
x_66 = lean_ctor_get(x_2, 1);
x_67 = lean_ctor_get(x_2, 2);
x_68 = lean_ctor_get(x_2, 3);
x_69 = lean_ctor_get(x_2, 4);
x_70 = lean_ctor_get(x_2, 5);
lean_inc(x_70);
lean_inc(x_69);
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87;
x_63 = lean_ctor_get(x_2, 0);
x_64 = lean_ctor_get(x_2, 1);
x_65 = lean_ctor_get(x_2, 2);
x_66 = lean_ctor_get(x_2, 3);
x_67 = lean_ctor_get(x_2, 4);
x_68 = lean_ctor_get(x_2, 5);
lean_inc(x_68);
lean_inc(x_67);
lean_inc(x_66);
lean_inc(x_65);
lean_inc(x_64);
lean_inc(x_63);
lean_dec(x_2);
x_71 = 0;
x_72 = l_Lake_Name_quoteFrom(x_18, x_19, x_71);
x_73 = lean_unsigned_to_nat(0u);
x_74 = l_Lean_Syntax_getArg(x_1, x_73);
x_69 = l_Lean_Syntax_getArg(x_1, x_9);
x_70 = l_Lean_TSyntax_getId(x_69);
x_71 = lean_unsigned_to_nat(0u);
x_72 = l_Lean_Syntax_getArg(x_1, x_71);
lean_dec(x_1);
x_75 = lean_box(0);
lean_inc(x_74);
x_76 = l_Lake_Name_quoteFrom(x_74, x_75, x_71);
x_77 = l_Lean_replaceRef(x_74, x_70);
lean_dec(x_70);
lean_dec(x_74);
x_73 = 0;
x_74 = l_Lake_Name_quoteFrom(x_69, x_70, x_73);
x_75 = l_Lean_replaceRef(x_72, x_68);
lean_dec(x_68);
lean_dec(x_72);
lean_inc(x_75);
lean_inc(x_65);
lean_inc(x_64);
x_76 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_76, 0, x_63);
lean_ctor_set(x_76, 1, x_64);
lean_ctor_set(x_76, 2, x_65);
lean_ctor_set(x_76, 3, x_66);
lean_ctor_set(x_76, 4, x_67);
lean_ctor_set(x_76, 5, x_75);
x_77 = l_Lean_SourceInfo_fromRef(x_75, x_73);
lean_dec(x_75);
x_78 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__4;
x_79 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_80 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__5;
lean_inc(x_65);
lean_inc(x_64);
x_81 = l_Lean_addMacroScope(x_64, x_80, x_65);
x_82 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10;
lean_inc(x_77);
lean_inc(x_67);
lean_inc(x_66);
x_78 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_78, 0, x_65);
lean_ctor_set(x_78, 1, x_66);
lean_ctor_set(x_78, 2, x_67);
lean_ctor_set(x_78, 3, x_68);
lean_ctor_set(x_78, 4, x_69);
lean_ctor_set(x_78, 5, x_77);
x_79 = l_Lean_SourceInfo_fromRef(x_77, x_71);
lean_dec(x_77);
x_80 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__4;
x_81 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__10;
x_82 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__12;
lean_inc(x_67);
lean_inc(x_66);
x_83 = l_Lean_addMacroScope(x_66, x_82, x_67);
x_84 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit___closed__17;
lean_inc(x_79);
x_85 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_85, 0, x_79);
lean_ctor_set(x_85, 1, x_81);
lean_ctor_set(x_85, 2, x_83);
lean_ctor_set(x_85, 3, x_84);
x_86 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__17;
lean_inc(x_79);
x_87 = l_Lean_Syntax_node2(x_79, x_86, x_76, x_72);
lean_inc(x_79);
x_88 = l_Lean_Syntax_node2(x_79, x_80, x_85, x_87);
x_89 = l___private_Lake_DSL_Key_0__Lake_DSL_expandFacets(x_88, x_17, x_78, x_3);
if (lean_obj_tag(x_89) == 0)
x_83 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_83, 0, x_77);
lean_ctor_set(x_83, 1, x_79);
lean_ctor_set(x_83, 2, x_81);
lean_ctor_set(x_83, 3, x_82);
x_84 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__17;
lean_inc(x_77);
x_85 = l_Lean_Syntax_node1(x_77, x_84, x_74);
lean_inc(x_77);
x_86 = l_Lean_Syntax_node2(x_77, x_78, x_83, x_85);
x_87 = l___private_Lake_DSL_Key_0__Lake_DSL_expandFacets(x_86, x_17, x_76, x_3);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100;
x_90 = lean_ctor_get(x_89, 0);
lean_inc(x_90);
x_91 = lean_ctor_get(x_89, 1);
lean_inc(x_91);
if (lean_is_exclusive(x_89)) {
lean_ctor_release(x_89, 0);
lean_ctor_release(x_89, 1);
x_92 = x_89;
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98;
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
if (lean_is_exclusive(x_87)) {
lean_ctor_release(x_87, 0);
lean_ctor_release(x_87, 1);
x_90 = x_87;
} else {
lean_dec_ref(x_89);
x_92 = lean_box(0);
lean_dec_ref(x_87);
x_90 = lean_box(0);
}
x_93 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_94 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_95 = l_Lean_addMacroScope(x_66, x_94, x_67);
x_96 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9;
lean_inc(x_79);
x_97 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_97, 0, x_79);
lean_ctor_set(x_97, 1, x_93);
lean_ctor_set(x_97, 2, x_95);
lean_ctor_set(x_97, 3, x_96);
lean_inc(x_79);
x_98 = l_Lean_Syntax_node1(x_79, x_86, x_90);
x_99 = l_Lean_Syntax_node2(x_79, x_80, x_97, x_98);
if (lean_is_scalar(x_92)) {
x_100 = lean_alloc_ctor(0, 2, 0);
x_91 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12;
x_92 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15;
x_93 = l_Lean_addMacroScope(x_64, x_92, x_65);
x_94 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18;
lean_inc(x_77);
x_95 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_95, 0, x_77);
lean_ctor_set(x_95, 1, x_91);
lean_ctor_set(x_95, 2, x_93);
lean_ctor_set(x_95, 3, x_94);
lean_inc(x_77);
x_96 = l_Lean_Syntax_node1(x_77, x_84, x_88);
x_97 = l_Lean_Syntax_node2(x_77, x_78, x_95, x_96);
if (lean_is_scalar(x_90)) {
x_98 = lean_alloc_ctor(0, 2, 0);
} else {
x_100 = x_92;
x_98 = x_90;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_91);
return x_100;
lean_ctor_set(x_98, 0, x_97);
lean_ctor_set(x_98, 1, x_89);
return x_98;
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104;
lean_dec(x_79);
lean_dec(x_67);
lean_dec(x_66);
x_101 = lean_ctor_get(x_89, 0);
lean_inc(x_101);
x_102 = lean_ctor_get(x_89, 1);
lean_inc(x_102);
if (lean_is_exclusive(x_89)) {
lean_ctor_release(x_89, 0);
lean_ctor_release(x_89, 1);
x_103 = x_89;
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102;
lean_dec(x_77);
lean_dec(x_65);
lean_dec(x_64);
x_99 = lean_ctor_get(x_87, 0);
lean_inc(x_99);
x_100 = lean_ctor_get(x_87, 1);
lean_inc(x_100);
if (lean_is_exclusive(x_87)) {
lean_ctor_release(x_87, 0);
lean_ctor_release(x_87, 1);
x_101 = x_87;
} else {
lean_dec_ref(x_89);
x_103 = lean_box(0);
lean_dec_ref(x_87);
x_101 = lean_box(0);
}
if (lean_is_scalar(x_103)) {
x_104 = lean_alloc_ctor(1, 2, 0);
if (lean_is_scalar(x_101)) {
x_102 = lean_alloc_ctor(1, 2, 0);
} else {
x_104 = x_103;
x_102 = x_101;
}
lean_ctor_set(x_104, 0, x_101);
lean_ctor_set(x_104, 1, x_102);
return x_104;
lean_ctor_set(x_102, 0, x_99);
lean_ctor_set(x_102, 1, x_100);
return x_102;
}
}
}
@ -1780,20 +1877,20 @@ goto block_132;
block_110:
{
uint8_t x_59;
x_59 = !lean_is_exclusive(x_54);
x_59 = !lean_is_exclusive(x_55);
if (x_59 == 0)
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63;
x_60 = lean_ctor_get(x_54, 1);
x_61 = lean_ctor_get(x_54, 2);
x_62 = lean_ctor_get(x_54, 5);
x_60 = lean_ctor_get(x_55, 1);
x_61 = lean_ctor_get(x_55, 2);
x_62 = lean_ctor_get(x_55, 5);
x_63 = l_Lean_replaceRef(x_53, x_62);
lean_dec(x_62);
lean_dec(x_53);
lean_inc(x_63);
lean_inc(x_61);
lean_inc(x_60);
lean_ctor_set(x_54, 5, x_63);
lean_ctor_set(x_55, 5, x_63);
if (lean_obj_tag(x_57) == 1)
{
lean_object* x_64; lean_object* x_65;
@ -1803,8 +1900,8 @@ lean_dec(x_60);
x_64 = lean_ctor_get(x_57, 0);
lean_inc(x_64);
lean_dec_ref(x_57);
lean_inc_ref(x_54);
x_65 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit(x_58, x_64, x_54, x_56);
lean_inc_ref(x_55);
x_65 = l___private_Lake_DSL_Key_0__Lake_DSL_expandPackageTargetLit(x_58, x_64, x_55, x_56);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; lean_object* x_67;
@ -1813,17 +1910,17 @@ lean_inc(x_66);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
lean_dec_ref(x_65);
x_5 = x_55;
x_5 = x_54;
x_6 = x_66;
x_7 = x_54;
x_7 = x_55;
x_8 = x_67;
goto block_47;
}
else
{
uint8_t x_68;
lean_dec_ref(x_54);
lean_dec_ref(x_55);
lean_dec_ref(x_54);
x_68 = !lean_is_exclusive(x_65);
if (x_68 == 0)
{
@ -1866,9 +1963,9 @@ x_80 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__p
lean_inc(x_73);
x_81 = l_Lean_Syntax_node1(x_73, x_80, x_58);
x_82 = l_Lean_Syntax_node2(x_73, x_74, x_79, x_81);
x_5 = x_55;
x_5 = x_54;
x_6 = x_82;
x_7 = x_54;
x_7 = x_55;
x_8 = x_56;
goto block_47;
}
@ -1876,19 +1973,19 @@ goto block_47;
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90;
x_83 = lean_ctor_get(x_54, 0);
x_84 = lean_ctor_get(x_54, 1);
x_85 = lean_ctor_get(x_54, 2);
x_86 = lean_ctor_get(x_54, 3);
x_87 = lean_ctor_get(x_54, 4);
x_88 = lean_ctor_get(x_54, 5);
x_83 = lean_ctor_get(x_55, 0);
x_84 = lean_ctor_get(x_55, 1);
x_85 = lean_ctor_get(x_55, 2);
x_86 = lean_ctor_get(x_55, 3);
x_87 = lean_ctor_get(x_55, 4);
x_88 = lean_ctor_get(x_55, 5);
lean_inc(x_88);
lean_inc(x_87);
lean_inc(x_86);
lean_inc(x_85);
lean_inc(x_84);
lean_inc(x_83);
lean_dec(x_54);
lean_dec(x_55);
x_89 = l_Lean_replaceRef(x_53, x_88);
lean_dec(x_88);
lean_dec(x_53);
@ -1921,7 +2018,7 @@ lean_inc(x_93);
x_94 = lean_ctor_get(x_92, 1);
lean_inc(x_94);
lean_dec_ref(x_92);
x_5 = x_55;
x_5 = x_54;
x_6 = x_93;
x_7 = x_90;
x_8 = x_94;
@ -1931,7 +2028,7 @@ else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98;
lean_dec_ref(x_90);
lean_dec_ref(x_55);
lean_dec_ref(x_54);
x_95 = lean_ctor_get(x_92, 0);
lean_inc(x_95);
x_96 = lean_ctor_get(x_92, 1);
@ -1976,7 +2073,7 @@ x_107 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__
lean_inc(x_100);
x_108 = l_Lean_Syntax_node1(x_100, x_107, x_58);
x_109 = l_Lean_Syntax_node2(x_100, x_101, x_106, x_108);
x_5 = x_55;
x_5 = x_54;
x_6 = x_109;
x_7 = x_90;
x_8 = x_56;
@ -2020,8 +2117,8 @@ x_125 = lean_box(0);
x_126 = 0;
lean_inc(x_53);
x_127 = l_Lake_Name_quoteFrom(x_53, x_125, x_126);
x_54 = x_114;
x_55 = x_123;
x_54 = x_123;
x_55 = x_114;
x_56 = x_115;
x_57 = x_113;
x_58 = x_127;
@ -2036,8 +2133,8 @@ lean_dec_ref(x_124);
x_129 = l_Lean_TSyntax_getId(x_128);
x_130 = 0;
x_131 = l_Lake_Name_quoteFrom(x_128, x_129, x_130);
x_54 = x_114;
x_55 = x_123;
x_54 = x_123;
x_55 = x_114;
x_56 = x_115;
x_57 = x_113;
x_58 = x_131;
@ -2070,10 +2167,10 @@ x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
lean_dec(x_14);
x_17 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__4;
x_18 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_19 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_18 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12;
x_19 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15;
x_20 = l_Lean_addMacroScope(x_12, x_19, x_13);
x_21 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9;
x_21 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18;
lean_inc(x_16);
x_22 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_22, 0, x_16);
@ -2106,10 +2203,10 @@ x_31 = 0;
x_32 = l_Lean_SourceInfo_fromRef(x_30, x_31);
lean_dec(x_30);
x_33 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lake_DSL_Key_0__Lake_DSL_expandFacets_spec__1___redArg___closed__4;
x_34 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__3;
x_35 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__6;
x_34 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12;
x_35 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15;
x_36 = l_Lean_addMacroScope(x_28, x_35, x_29);
x_37 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9;
x_37 = l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18;
lean_inc(x_32);
x_38 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_38, 0, x_32);
@ -2309,6 +2406,24 @@ l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__8 = _ini
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__8);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__9);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__10);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__11 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__11();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__11);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__12);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__13);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__14);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__15);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__16 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__16();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__16);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__17 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__17();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__17);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___closed__18);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__0 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__0();
lean_mark_persistent(l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__0);
l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__1 = _init_l___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit___regBuiltin___private_Lake_DSL_Key_0__Lake_DSL_expandModuleTargetKeyLit__1___closed__1();

View file

@ -1,6 +1,6 @@
// Lean compiler output
// Module: Lean.Compiler.InlineAttrs
// Imports: public import Lean.Attributes
// Imports: public import Lean.Attributes import Lean.Meta.RecExt
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
@ -32,7 +32,6 @@ static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___a
static lean_object* l_Lean_Compiler_initFn___closed__22_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_inline_elim(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__0;
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__6;
static lean_object* l_Lean_Compiler_initFn___closed__26_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__0;
LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -59,14 +58,12 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_inlineAttrs;
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_initFn___closed__16_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_declRange__3();
lean_object* l_Lean_stringToMessageData(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_docString__1___boxed(lean_object*);
lean_object* l_Lean_MessageData_note(lean_object*);
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__4;
LEAN_EXPORT lean_object* l_Lean_ofExcept___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1___redArg___closed__3;
static lean_object* l_Lean_Compiler_initFn___closed__24_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__3;
@ -75,7 +72,6 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_inlineIfReduce_elim
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_inline_elim___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*);
@ -98,7 +94,6 @@ LEAN_EXPORT uint64_t l_Lean_Compiler_instHashableInlineAttributeKind_hash(uint8_
static lean_object* l_Lean_Compiler_initFn___closed__30_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_docString__1();
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_inlineIfReduce_elim___redArg___boxed(lean_object*);
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__5;
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_toCtorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_initFn___closed__11_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
@ -114,7 +109,6 @@ LEAN_EXPORT lean_object* l_Lean_ofExcept___at___00Lean_Compiler_initFn_00___x40_
static lean_object* l_Lean_Compiler_initFn___closed__15_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
lean_object* l_Lean_registerEnumAttributes___redArg(lean_object*, lean_object*, uint8_t, lean_object*);
static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___redArg___closed__2;
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__1;
lean_object* lean_st_ref_get(lean_object*);
static lean_object* l_Lean_Compiler_initFn___closed__4_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___redArg___closed__8;
@ -126,22 +120,17 @@ LEAN_EXPORT uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasIn
static lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_declRange__3___closed__2;
lean_object* l_Lean_Expr_constName_x21(lean_object*);
static lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_declRange__3___closed__4;
LEAN_EXPORT lean_object* l_Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___redArg___closed__12;
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_macroInline_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_instHashableInlineAttributeKind_hash___boxed(lean_object*);
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__4;
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__3;
LEAN_EXPORT lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_hasInlineAttrCore___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_initFn___lam__1___closed__4_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_declRange__3___closed__3;
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_alwaysInline_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline(lean_object*, lean_object*, lean_object*);
@ -182,13 +171,11 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_instBEqInlineAttributeKind;
static lean_object* l_Lean_Compiler_initFn___closed__12_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_initFn___closed__23_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_declRange__3___boxed(lean_object*);
lean_object* l_Lean_EnvironmentHeader_moduleNames(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg___closed__2;
uint8_t l_Lean_isBRecOnRecursor(lean_object*, lean_object*);
static lean_object* l_Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___redArg___closed__1;
@ -199,7 +186,6 @@ static lean_object* l_Lean_Compiler_instBEqInlineAttributeKind___closed__0;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_ctorElim___redArg(lean_object*);
lean_object* l_Lean_Compiler_checkIsDefinition(lean_object*, lean_object*);
static lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2;
static lean_object* l_Lean_Compiler_initFn___closed__29_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
uint8_t l_Lean_isPrivateName(lean_object*);
static lean_object* l_Lean_mkUnknownIdentifierMessageCore___at___00Lean_mkUnknownIdentifierMessage___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__3_spec__4___redArg___closed__13;
@ -226,7 +212,6 @@ lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_macroInline_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_inline_elim___redArg___boxed(lean_object*);
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
lean_object* lean_find_expr(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_getInlineAttribute_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_withoutExporting___at___00Lean_Compiler_initFn_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2__spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_noinline_elim(lean_object*, uint8_t, lean_object*, lean_object*);
@ -235,7 +220,6 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_ctorElim(lean_objec
static lean_object* l_Lean_Compiler_inlineAttrs___regBuiltin_Lean_Compiler_inlineAttrs_declRange__3___closed__5;
LEAN_EXPORT lean_object* l_Lean_Compiler_initFn___lam__0_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2____boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_initFn___closed__18_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
uint8_t l_Lean_Expr_isConst(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_noinline_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t);
@ -248,6 +232,7 @@ lean_object* l_Lean_MessageData_ofName(lean_object*);
extern lean_object* l_Lean_Options_empty;
LEAN_EXPORT uint8_t l_Lean_Compiler_hasInlineAttribute(lean_object*, lean_object*);
static lean_object* l_Lean_Compiler_initFn___closed__28_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
lean_object* l_Lean_Meta_isRecursiveDefinition___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Compiler_InlineAttributeKind_toCtorIdx___boxed(lean_object*);
static lean_object* l_Lean_Compiler_initFn___lam__1___closed__0_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_Compiler_initFn___lam__1_00___x40_Lean_Compiler_InlineAttrs_1525986753____hygCtx___hyg_2_(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
@ -721,142 +706,6 @@ x_3 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind
return x_3;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("WellFounded", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("Nat", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("fix", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2;
x_2 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__1;
x_3 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__4() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("_unary", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2;
x_2 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4;
x_4 = l_Lean_Expr_isConst(x_3);
if (x_4 == 0)
{
lean_dec_ref(x_2);
lean_dec(x_1);
return x_4;
}
else
{
lean_object* x_5; uint8_t x_6; uint8_t x_13;
x_5 = l_Lean_Expr_constName_x21(x_3);
lean_inc(x_5);
x_13 = l_Lean_isBRecOnRecursor(x_2, x_5);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15;
x_14 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__6;
x_15 = lean_name_eq(x_5, x_14);
x_6 = x_15;
goto block_12;
}
else
{
x_6 = x_13;
goto block_12;
}
block_12:
{
if (x_6 == 0)
{
lean_object* x_7; uint8_t x_8;
x_7 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__3;
x_8 = lean_name_eq(x_5, x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11;
x_9 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__5;
x_10 = l_Lean_Name_append(x_1, x_9);
x_11 = lean_name_eq(x_5, x_10);
lean_dec(x_10);
lean_dec(x_5);
return x_11;
}
else
{
lean_dec(x_5);
lean_dec(x_1);
return x_8;
}
}
else
{
lean_dec(x_5);
lean_dec(x_1);
return x_6;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5;
x_4 = l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__0() {
_start:
{
@ -1686,167 +1535,211 @@ lean_object* x_7;
x_7 = lean_ctor_get(x_5, 0);
if (lean_obj_tag(x_7) == 1)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
x_8 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_8);
lean_dec_ref(x_7);
x_9 = lean_ctor_get(x_8, 1);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_8, 3);
lean_inc(x_10);
x_9 = lean_ctor_get(x_8, 3);
lean_inc(x_9);
lean_dec_ref(x_8);
x_11 = l_List_lengthTR___redArg(x_10);
x_10 = l_List_lengthTR___redArg(x_9);
lean_dec(x_9);
x_11 = lean_unsigned_to_nat(1u);
x_12 = lean_nat_dec_eq(x_10, x_11);
lean_dec(x_10);
x_12 = lean_unsigned_to_nat(1u);
x_13 = lean_nat_dec_eq(x_11, x_12);
lean_dec(x_11);
if (x_13 == 0)
if (x_12 == 0)
{
lean_object* x_13;
lean_dec(x_1);
x_13 = lean_box(x_12);
lean_ctor_set(x_5, 0, x_13);
return x_5;
}
else
{
lean_object* x_14;
lean_dec_ref(x_9);
lean_dec(x_1);
x_14 = lean_box(x_13);
lean_ctor_set(x_5, 0, x_14);
return x_5;
lean_free_object(x_5);
x_14 = l_Lean_Meta_isRecursiveDefinition___redArg(x_1, x_3);
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; uint8_t x_17;
x_16 = lean_ctor_get(x_14, 0);
x_17 = lean_unbox(x_16);
lean_dec(x_16);
if (x_17 == 0)
{
lean_object* x_18;
x_18 = lean_box(x_12);
lean_ctor_set(x_14, 0, x_18);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
x_15 = lean_st_ref_get(x_3);
x_16 = lean_ctor_get(x_15, 0);
lean_inc_ref(x_16);
lean_dec(x_15);
x_17 = lean_alloc_closure((void*)(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___boxed), 3, 2);
lean_closure_set(x_17, 0, x_1);
lean_closure_set(x_17, 1, x_16);
x_18 = lean_find_expr(x_17, x_9);
lean_dec_ref(x_9);
lean_dec_ref(x_17);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19;
x_19 = lean_box(x_13);
lean_ctor_set(x_5, 0, x_19);
return x_5;
uint8_t x_19; lean_object* x_20;
x_19 = 0;
x_20 = lean_box(x_19);
lean_ctor_set(x_14, 0, x_20);
return x_14;
}
}
else
{
uint8_t x_20; lean_object* x_21;
lean_dec_ref(x_18);
x_20 = 0;
x_21 = lean_box(x_20);
lean_ctor_set(x_5, 0, x_21);
return x_5;
lean_object* x_21; uint8_t x_22;
x_21 = lean_ctor_get(x_14, 0);
lean_inc(x_21);
lean_dec(x_14);
x_22 = lean_unbox(x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24;
x_23 = lean_box(x_12);
x_24 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
else
{
uint8_t x_25; lean_object* x_26; lean_object* x_27;
x_25 = 0;
x_26 = lean_box(x_25);
x_27 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
}
else
{
uint8_t x_22; lean_object* x_23;
return x_14;
}
}
}
else
{
uint8_t x_28; lean_object* x_29;
lean_dec(x_7);
lean_dec(x_1);
x_22 = 0;
x_23 = lean_box(x_22);
lean_ctor_set(x_5, 0, x_23);
x_28 = 0;
x_29 = lean_box(x_28);
lean_ctor_set(x_5, 0, x_29);
return x_5;
}
}
else
{
lean_object* x_24;
x_24 = lean_ctor_get(x_5, 0);
lean_inc(x_24);
lean_object* x_30;
x_30 = lean_ctor_get(x_5, 0);
lean_inc(x_30);
lean_dec(x_5);
if (lean_obj_tag(x_24) == 1)
if (lean_obj_tag(x_30) == 1)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30;
x_25 = lean_ctor_get(x_24, 0);
lean_inc_ref(x_25);
lean_dec_ref(x_24);
x_26 = lean_ctor_get(x_25, 1);
lean_inc_ref(x_26);
x_27 = lean_ctor_get(x_25, 3);
lean_inc(x_27);
lean_dec_ref(x_25);
x_28 = l_List_lengthTR___redArg(x_27);
lean_dec(x_27);
x_29 = lean_unsigned_to_nat(1u);
x_30 = lean_nat_dec_eq(x_28, x_29);
lean_dec(x_28);
if (x_30 == 0)
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35;
x_31 = lean_ctor_get(x_30, 0);
lean_inc_ref(x_31);
lean_dec_ref(x_30);
x_32 = lean_ctor_get(x_31, 3);
lean_inc(x_32);
lean_dec_ref(x_31);
x_33 = l_List_lengthTR___redArg(x_32);
lean_dec(x_32);
x_34 = lean_unsigned_to_nat(1u);
x_35 = lean_nat_dec_eq(x_33, x_34);
lean_dec(x_33);
if (x_35 == 0)
{
lean_object* x_31; lean_object* x_32;
lean_dec_ref(x_26);
lean_object* x_36; lean_object* x_37;
lean_dec(x_1);
x_31 = lean_box(x_30);
x_32 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_32, 0, x_31);
return x_32;
x_36 = lean_box(x_35);
x_37 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_37, 0, x_36);
return x_37;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
x_33 = lean_st_ref_get(x_3);
x_34 = lean_ctor_get(x_33, 0);
lean_inc_ref(x_34);
lean_dec(x_33);
x_35 = lean_alloc_closure((void*)(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___boxed), 3, 2);
lean_closure_set(x_35, 0, x_1);
lean_closure_set(x_35, 1, x_34);
x_36 = lean_find_expr(x_35, x_26);
lean_dec_ref(x_26);
lean_dec_ref(x_35);
if (lean_obj_tag(x_36) == 0)
lean_object* x_38;
x_38 = l_Lean_Meta_isRecursiveDefinition___redArg(x_1, x_3);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_39; lean_object* x_40; uint8_t x_41;
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
if (lean_is_exclusive(x_38)) {
lean_ctor_release(x_38, 0);
x_40 = x_38;
} else {
lean_dec_ref(x_38);
x_40 = lean_box(0);
}
x_41 = lean_unbox(x_39);
lean_dec(x_39);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43;
x_42 = lean_box(x_35);
if (lean_is_scalar(x_40)) {
x_43 = lean_alloc_ctor(0, 1, 0);
} else {
x_43 = x_40;
}
lean_ctor_set(x_43, 0, x_42);
return x_43;
}
else
{
uint8_t x_44; lean_object* x_45; lean_object* x_46;
x_44 = 0;
x_45 = lean_box(x_44);
if (lean_is_scalar(x_40)) {
x_46 = lean_alloc_ctor(0, 1, 0);
} else {
x_46 = x_40;
}
lean_ctor_set(x_46, 0, x_45);
return x_46;
}
}
else
{
lean_object* x_37; lean_object* x_38;
x_37 = lean_box(x_30);
x_38 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_38, 0, x_37);
return x_38;
}
else
{
uint8_t x_39; lean_object* x_40; lean_object* x_41;
lean_dec_ref(x_36);
x_39 = 0;
x_40 = lean_box(x_39);
x_41 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_41, 0, x_40);
return x_41;
}
}
}
else
{
uint8_t x_42; lean_object* x_43; lean_object* x_44;
lean_dec(x_24);
uint8_t x_47; lean_object* x_48; lean_object* x_49;
lean_dec(x_30);
lean_dec(x_1);
x_42 = 0;
x_43 = lean_box(x_42);
x_44 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_44, 0, x_43);
return x_44;
x_47 = 0;
x_48 = lean_box(x_47);
x_49 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_49, 0, x_48);
return x_49;
}
}
}
else
{
uint8_t x_45;
uint8_t x_50;
lean_dec(x_1);
x_45 = !lean_is_exclusive(x_5);
if (x_45 == 0)
x_50 = !lean_is_exclusive(x_5);
if (x_50 == 0)
{
return x_5;
}
else
{
lean_object* x_46; lean_object* x_47;
x_46 = lean_ctor_get(x_5, 0);
lean_inc(x_46);
lean_object* x_51; lean_object* x_52;
x_51 = lean_ctor_get(x_5, 0);
lean_inc(x_51);
lean_dec(x_5);
x_47 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_47, 0, x_46);
return x_47;
x_52 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_52, 0, x_51);
return x_52;
}
}
}
@ -3148,7 +3041,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_unsigned_to_nat(47u);
x_2 = lean_unsigned_to_nat(42u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
@ -3160,7 +3053,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_unsigned_to_nat(63u);
x_2 = lean_unsigned_to_nat(83u);
x_2 = lean_unsigned_to_nat(78u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
@ -3188,7 +3081,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_unsigned_to_nat(19u);
x_2 = lean_unsigned_to_nat(68u);
x_2 = lean_unsigned_to_nat(63u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
@ -3200,7 +3093,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_unsigned_to_nat(30u);
x_2 = lean_unsigned_to_nat(68u);
x_2 = lean_unsigned_to_nat(63u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
@ -3412,6 +3305,7 @@ return x_4;
}
}
lean_object* initialize_Lean_Attributes(uint8_t builtin);
lean_object* initialize_Lean_Meta_RecExt(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Compiler_InlineAttrs(uint8_t builtin) {
lean_object * res;
@ -3420,6 +3314,9 @@ _G_initialized = true;
res = initialize_Lean_Attributes(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_RecExt(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Compiler_instInhabitedInlineAttributeKind_default = _init_l_Lean_Compiler_instInhabitedInlineAttributeKind_default();
l_Lean_Compiler_instInhabitedInlineAttributeKind = _init_l_Lean_Compiler_instInhabitedInlineAttributeKind();
l_Lean_Compiler_instBEqInlineAttributeKind___closed__0 = _init_l_Lean_Compiler_instBEqInlineAttributeKind___closed__0();
@ -3440,20 +3337,6 @@ l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAtt
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__3);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__4 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__4();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_InlineAttributeKind_toAttrString___closed__4);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__0);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__1 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__1();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__1);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__2);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__3 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__3();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__3);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__4 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__4();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__4);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__5 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__5();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__5);
l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__6 = _init_l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__6();
lean_mark_persistent(l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___lam__0___closed__6);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__0 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__0();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__0);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__1 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_throwUnknownIdentifierAt___at___00Lean_throwUnknownConstantAt___at___00Lean_throwUnknownConstant___at___00Lean_getConstInfo___at___00__private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0_spec__0_spec__1_spec__2_spec__4_spec__6_spec__7___closed__1();

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

285
stage0/stdlib/Lean/Meta/RecExt.c generated Normal file
View file

@ -0,0 +1,285 @@
// Lean compiler output
// Module: Lean.Meta.RecExt
// Imports: public import Lean.Attributes
#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
static lean_object* l_Lean_Meta_markAsRecursive___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive___redArg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Meta_initFn___closed__2_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_Meta_initFn_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_();
static lean_object* l_Lean_Meta_markAsRecursive___redArg___closed__1;
uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_st_ref_take(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_st_ref_get(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Meta_markAsRecursive___redArg___closed__0;
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Meta_initFn___closed__0_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_;
static lean_object* l_Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_;
LEAN_EXPORT lean_object* l_Lean_Meta_recExt;
LEAN_EXPORT lean_object* l_Lean_Meta_initFn_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2____boxed(lean_object*);
lean_object* l_Lean_TagDeclarationExtension_tag(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
lean_object* lean_st_ref_set(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr1(lean_object*);
lean_object* l_Lean_mkTagDeclarationExtension(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition___redArg(lean_object*, lean_object*);
static lean_object* _init_l_Lean_Meta_initFn___closed__0_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("recExt", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Meta_initFn___closed__0_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Meta_initFn___closed__2_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_() {
_start:
{
uint8_t x_1; lean_object* x_2;
x_1 = 1;
x_2 = lean_alloc_ctor(3, 0, 1);
lean_ctor_set_uint8(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_initFn_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_2 = l_Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_;
x_3 = l_Lean_Meta_initFn___closed__2_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_;
x_4 = l_Lean_mkTagDeclarationExtension(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_initFn_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2____boxed(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_Lean_Meta_initFn_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_();
return x_2;
}
}
static lean_object* _init_l_Lean_Meta_markAsRecursive___redArg___closed__0() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_markAsRecursive___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Meta_markAsRecursive___redArg___closed__0;
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_Meta_markAsRecursive___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Meta_markAsRecursive___redArg___closed__1;
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; uint8_t x_5;
x_4 = lean_st_ref_take(x_2);
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 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_object* x_12; lean_object* x_13;
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 5);
lean_dec(x_7);
x_8 = l_Lean_Meta_recExt;
x_9 = l_Lean_TagDeclarationExtension_tag(x_8, x_6, x_1);
x_10 = l_Lean_Meta_markAsRecursive___redArg___closed__2;
lean_ctor_set(x_4, 5, x_10);
lean_ctor_set(x_4, 0, x_9);
x_11 = lean_st_ref_set(x_2, x_4);
x_12 = lean_box(0);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
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; lean_object* 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;
x_14 = lean_ctor_get(x_4, 0);
x_15 = lean_ctor_get(x_4, 1);
x_16 = lean_ctor_get(x_4, 2);
x_17 = lean_ctor_get(x_4, 3);
x_18 = lean_ctor_get(x_4, 4);
x_19 = lean_ctor_get(x_4, 6);
x_20 = lean_ctor_get(x_4, 7);
x_21 = lean_ctor_get(x_4, 8);
lean_inc(x_21);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_4);
x_22 = l_Lean_Meta_recExt;
x_23 = l_Lean_TagDeclarationExtension_tag(x_22, x_14, x_1);
x_24 = l_Lean_Meta_markAsRecursive___redArg___closed__2;
x_25 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_15);
lean_ctor_set(x_25, 2, x_16);
lean_ctor_set(x_25, 3, x_17);
lean_ctor_set(x_25, 4, x_18);
lean_ctor_set(x_25, 5, x_24);
lean_ctor_set(x_25, 6, x_19);
lean_ctor_set(x_25, 7, x_20);
lean_ctor_set(x_25, 8, x_21);
x_26 = lean_st_ref_set(x_2, x_25);
x_27 = lean_box(0);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4;
x_4 = l_Lean_Meta_markAsRecursive___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5;
x_5 = l_Lean_Meta_markAsRecursive___redArg(x_1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_markAsRecursive___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_Lean_Meta_markAsRecursive(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11;
x_4 = lean_st_ref_get(x_2);
x_5 = lean_ctor_get(x_4, 0);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = l_Lean_Meta_recExt;
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_7, 2);
lean_inc(x_8);
lean_dec_ref(x_7);
x_9 = l_Lean_TagDeclarationExtension_isTagged(x_6, x_5, x_1, x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4;
x_4 = l_Lean_Meta_isRecursiveDefinition___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5;
x_5 = l_Lean_Meta_isRecursiveDefinition___redArg(x_1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isRecursiveDefinition___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_Lean_Meta_isRecursiveDefinition(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
lean_object* initialize_Lean_Attributes(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Meta_RecExt(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Attributes(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Meta_initFn___closed__0_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_ = _init_l_Lean_Meta_initFn___closed__0_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_();
lean_mark_persistent(l_Lean_Meta_initFn___closed__0_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_);
l_Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_ = _init_l_Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_();
lean_mark_persistent(l_Lean_Meta_initFn___closed__1_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_);
l_Lean_Meta_initFn___closed__2_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_ = _init_l_Lean_Meta_initFn___closed__2_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_();
lean_mark_persistent(l_Lean_Meta_initFn___closed__2_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_);
if (builtin) {res = l_Lean_Meta_initFn_00___x40_Lean_Meta_RecExt_2067193597____hygCtx___hyg_2_();
if (lean_io_result_is_error(res)) return res;
l_Lean_Meta_recExt = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Meta_recExt);
lean_dec_ref(res);
}l_Lean_Meta_markAsRecursive___redArg___closed__0 = _init_l_Lean_Meta_markAsRecursive___redArg___closed__0();
lean_mark_persistent(l_Lean_Meta_markAsRecursive___redArg___closed__0);
l_Lean_Meta_markAsRecursive___redArg___closed__1 = _init_l_Lean_Meta_markAsRecursive___redArg___closed__1();
lean_mark_persistent(l_Lean_Meta_markAsRecursive___redArg___closed__1);
l_Lean_Meta_markAsRecursive___redArg___closed__2 = _init_l_Lean_Meta_markAsRecursive___redArg___closed__2();
lean_mark_persistent(l_Lean_Meta_markAsRecursive___redArg___closed__2);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif