chore: update stage0
This commit is contained in:
parent
5c03ab9630
commit
05d6b8648c
4 changed files with 4535 additions and 3506 deletions
|
|
@ -1,7 +1,5 @@
|
|||
#include "util/options.h"
|
||||
|
||||
// please update
|
||||
|
||||
namespace lean {
|
||||
options get_default_options() {
|
||||
options opts;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
2784
stage0/stdlib/Lean/Meta/Constructions/CtorElim.c
generated
2784
stage0/stdlib/Lean/Meta/Constructions/CtorElim.c
generated
File diff suppressed because it is too large
Load diff
634
stage0/stdlib/Lean/Meta/Constructions/CtorIdx.c
generated
634
stage0/stdlib/Lean/Meta/Constructions/CtorIdx.c
generated
|
|
@ -108,6 +108,7 @@ LEAN_EXPORT lean_object* l_Lean_Option_register___at___initFn____x40_Lean_Meta_C
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Constructions_CtorIdx_0__genCtorIdx;
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___mkCtorIdx_spec__14___redArg___lam__0(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstInfo___at___mkCtorIdx_spec__2_spec__2_spec__2_spec__2_spec__3_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_mkCtorIdx___lam__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mapErrorImp___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at___mkCtorIdx_spec__13___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -141,6 +142,7 @@ extern lean_object* l_Lean_Linter_deprecatedAttr;
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstInfo___at___mkCtorIdx_spec__2_spec__2_spec__2_spec__2_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_mkUnknownIdentifierMessage___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstInfo___at___mkCtorIdx_spec__2_spec__2_spec__2_spec__2_spec__2___closed__16;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at___mkCtorIdx_spec__13___redArg(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_mkCtorIdx___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_throwUnknownConstant___at___Lean_getConstInfo___at___mkCtorIdx_spec__2_spec__2_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_mkCtorIdx___lam__3___closed__0;
|
||||
static lean_object* l_mkCtorIdx___lam__3___closed__4;
|
||||
|
|
@ -6186,7 +6188,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_mkCtorIdx___lam__3___closed__3;
|
||||
x_2 = lean_unsigned_to_nat(62u);
|
||||
x_3 = lean_unsigned_to_nat(41u);
|
||||
x_3 = lean_unsigned_to_nat(42u);
|
||||
x_4 = l_mkCtorIdx___lam__3___closed__2;
|
||||
x_5 = l_mkCtorIdx___lam__3___closed__1;
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
@ -6881,6 +6883,200 @@ lean_ctor_set(x_8, 1, x_3);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_mkCtorIdx___lam__5(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_8 = lean_st_ref_take(x_1, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec_ref(x_8);
|
||||
x_11 = !lean_is_exclusive(x_9);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_12 = lean_ctor_get(x_9, 0);
|
||||
x_13 = lean_ctor_get(x_9, 5);
|
||||
lean_dec(x_13);
|
||||
x_14 = l_Lean_Environment_setExporting(x_12, x_2);
|
||||
lean_ctor_set(x_9, 5, x_3);
|
||||
lean_ctor_set(x_9, 0, x_14);
|
||||
x_15 = lean_st_ref_set(x_1, x_9, x_10);
|
||||
x_16 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec_ref(x_15);
|
||||
x_17 = lean_st_ref_take(x_4, x_16);
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec_ref(x_17);
|
||||
x_20 = !lean_is_exclusive(x_18);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; uint8_t x_23;
|
||||
x_21 = lean_ctor_get(x_18, 1);
|
||||
lean_dec(x_21);
|
||||
lean_ctor_set(x_18, 1, x_5);
|
||||
x_22 = lean_st_ref_set(x_4, x_18, x_19);
|
||||
x_23 = !lean_is_exclusive(x_22);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_dec(x_24);
|
||||
x_25 = lean_box(0);
|
||||
lean_ctor_set(x_22, 0, x_25);
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_22);
|
||||
x_27 = lean_box(0);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_28, 1, x_26);
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_29 = lean_ctor_get(x_18, 0);
|
||||
x_30 = lean_ctor_get(x_18, 2);
|
||||
x_31 = lean_ctor_get(x_18, 3);
|
||||
x_32 = lean_ctor_get(x_18, 4);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_18);
|
||||
x_33 = lean_alloc_ctor(0, 5, 0);
|
||||
lean_ctor_set(x_33, 0, x_29);
|
||||
lean_ctor_set(x_33, 1, x_5);
|
||||
lean_ctor_set(x_33, 2, x_30);
|
||||
lean_ctor_set(x_33, 3, x_31);
|
||||
lean_ctor_set(x_33, 4, x_32);
|
||||
x_34 = lean_st_ref_set(x_4, x_33, x_19);
|
||||
x_35 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_35);
|
||||
if (lean_is_exclusive(x_34)) {
|
||||
lean_ctor_release(x_34, 0);
|
||||
lean_ctor_release(x_34, 1);
|
||||
x_36 = x_34;
|
||||
} else {
|
||||
lean_dec_ref(x_34);
|
||||
x_36 = lean_box(0);
|
||||
}
|
||||
x_37 = lean_box(0);
|
||||
if (lean_is_scalar(x_36)) {
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_38 = x_36;
|
||||
}
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_35);
|
||||
return x_38;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
x_39 = lean_ctor_get(x_9, 0);
|
||||
x_40 = lean_ctor_get(x_9, 1);
|
||||
x_41 = lean_ctor_get(x_9, 2);
|
||||
x_42 = lean_ctor_get(x_9, 3);
|
||||
x_43 = lean_ctor_get(x_9, 4);
|
||||
x_44 = lean_ctor_get(x_9, 6);
|
||||
x_45 = lean_ctor_get(x_9, 7);
|
||||
x_46 = lean_ctor_get(x_9, 8);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_40);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_9);
|
||||
x_47 = l_Lean_Environment_setExporting(x_39, x_2);
|
||||
x_48 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_48, 0, x_47);
|
||||
lean_ctor_set(x_48, 1, x_40);
|
||||
lean_ctor_set(x_48, 2, x_41);
|
||||
lean_ctor_set(x_48, 3, x_42);
|
||||
lean_ctor_set(x_48, 4, x_43);
|
||||
lean_ctor_set(x_48, 5, x_3);
|
||||
lean_ctor_set(x_48, 6, x_44);
|
||||
lean_ctor_set(x_48, 7, x_45);
|
||||
lean_ctor_set(x_48, 8, x_46);
|
||||
x_49 = lean_st_ref_set(x_1, x_48, x_10);
|
||||
x_50 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec_ref(x_49);
|
||||
x_51 = lean_st_ref_take(x_4, x_50);
|
||||
x_52 = lean_ctor_get(x_51, 0);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec_ref(x_51);
|
||||
x_54 = lean_ctor_get(x_52, 0);
|
||||
lean_inc_ref(x_54);
|
||||
x_55 = lean_ctor_get(x_52, 2);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_ctor_get(x_52, 3);
|
||||
lean_inc_ref(x_56);
|
||||
x_57 = lean_ctor_get(x_52, 4);
|
||||
lean_inc_ref(x_57);
|
||||
if (lean_is_exclusive(x_52)) {
|
||||
lean_ctor_release(x_52, 0);
|
||||
lean_ctor_release(x_52, 1);
|
||||
lean_ctor_release(x_52, 2);
|
||||
lean_ctor_release(x_52, 3);
|
||||
lean_ctor_release(x_52, 4);
|
||||
x_58 = x_52;
|
||||
} else {
|
||||
lean_dec_ref(x_52);
|
||||
x_58 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_58)) {
|
||||
x_59 = lean_alloc_ctor(0, 5, 0);
|
||||
} else {
|
||||
x_59 = x_58;
|
||||
}
|
||||
lean_ctor_set(x_59, 0, x_54);
|
||||
lean_ctor_set(x_59, 1, x_5);
|
||||
lean_ctor_set(x_59, 2, x_55);
|
||||
lean_ctor_set(x_59, 3, x_56);
|
||||
lean_ctor_set(x_59, 4, x_57);
|
||||
x_60 = lean_st_ref_set(x_4, x_59, x_53);
|
||||
x_61 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_61);
|
||||
if (lean_is_exclusive(x_60)) {
|
||||
lean_ctor_release(x_60, 0);
|
||||
lean_ctor_release(x_60, 1);
|
||||
x_62 = x_60;
|
||||
} else {
|
||||
lean_dec_ref(x_60);
|
||||
x_62 = lean_box(0);
|
||||
}
|
||||
x_63 = lean_box(0);
|
||||
if (lean_is_scalar(x_62)) {
|
||||
x_64 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_64 = x_62;
|
||||
}
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
lean_ctor_set(x_64, 1, x_61);
|
||||
return x_64;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_mkCtorIdx___closed__0() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -6918,7 +7114,7 @@ return x_2;
|
|||
LEAN_EXPORT lean_object* l_mkCtorIdx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; uint8_t 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;
|
||||
lean_object* x_7; uint8_t 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; uint8_t x_16; uint8_t x_125;
|
||||
x_7 = l_mkCtorIdx___closed__1;
|
||||
x_8 = 0;
|
||||
x_9 = lean_box(x_8);
|
||||
|
|
@ -6926,6 +7122,7 @@ lean_inc(x_1);
|
|||
x_10 = lean_alloc_closure((void*)(l_mkCtorIdx___lam__3___boxed), 7, 2);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
lean_closure_set(x_10, 1, x_9);
|
||||
lean_inc(x_1);
|
||||
x_11 = l_Lean_MessageData_ofConstName(x_1, x_8);
|
||||
x_12 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_7);
|
||||
|
|
@ -6936,49 +7133,396 @@ lean_ctor_set(x_14, 0, x_12);
|
|||
lean_ctor_set(x_14, 1, x_13);
|
||||
x_15 = lean_alloc_closure((void*)(l_mkCtorIdx___lam__4), 2, 1);
|
||||
lean_closure_set(x_15, 0, x_14);
|
||||
x_16 = l_Lean_Meta_mapErrorImp___redArg(x_10, x_15, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
x_125 = l_Lean_isPrivateName(x_1);
|
||||
lean_dec(x_1);
|
||||
if (x_125 == 0)
|
||||
{
|
||||
uint8_t x_17;
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_16;
|
||||
uint8_t x_126;
|
||||
x_126 = 1;
|
||||
x_16 = x_126;
|
||||
goto block_124;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_19);
|
||||
x_16 = x_8;
|
||||
goto block_124;
|
||||
}
|
||||
block_124:
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23;
|
||||
x_17 = lean_st_ref_get(x_5, x_6);
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_21;
|
||||
x_21 = !lean_is_exclusive(x_16);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_16, 0);
|
||||
x_23 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_23);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec_ref(x_17);
|
||||
x_20 = lean_st_ref_take(x_5, x_19);
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_16);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
lean_dec_ref(x_20);
|
||||
x_23 = !lean_is_exclusive(x_21);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
||||
x_24 = lean_ctor_get(x_21, 0);
|
||||
x_25 = lean_ctor_get(x_21, 5);
|
||||
lean_dec(x_25);
|
||||
x_26 = l_Lean_Environment_setExporting(x_24, x_16);
|
||||
x_27 = l_Lean_setReducibilityStatus___at___Lean_setReducibleAttribute___at___mkCtorIdx_spec__18_spec__18___redArg___closed__2;
|
||||
lean_ctor_set(x_21, 5, x_27);
|
||||
lean_ctor_set(x_21, 0, x_26);
|
||||
x_28 = lean_st_ref_set(x_5, x_21, x_22);
|
||||
x_29 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec_ref(x_28);
|
||||
x_30 = lean_st_ref_take(x_3, x_29);
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec_ref(x_30);
|
||||
x_33 = !lean_is_exclusive(x_31);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40;
|
||||
x_34 = lean_ctor_get(x_31, 1);
|
||||
lean_dec(x_34);
|
||||
x_35 = l_Lean_setReducibilityStatus___at___Lean_setReducibleAttribute___at___mkCtorIdx_spec__18_spec__18___redArg___closed__3;
|
||||
lean_ctor_set(x_31, 1, x_35);
|
||||
x_36 = lean_st_ref_set(x_3, x_31, x_32);
|
||||
x_37 = lean_ctor_get(x_18, 0);
|
||||
lean_inc_ref(x_37);
|
||||
lean_dec(x_18);
|
||||
x_38 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec_ref(x_36);
|
||||
x_39 = lean_ctor_get_uint8(x_37, sizeof(void*)*8);
|
||||
lean_dec_ref(x_37);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_40 = l_Lean_Meta_mapErrorImp___redArg(x_10, x_15, x_2, x_3, x_4, x_5, x_38);
|
||||
if (lean_obj_tag(x_40) == 0)
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45;
|
||||
x_41 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec_ref(x_40);
|
||||
lean_inc(x_41);
|
||||
x_43 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_43, 0, x_41);
|
||||
x_44 = l_mkCtorIdx___lam__5(x_5, x_39, x_27, x_3, x_35, x_43, x_42);
|
||||
lean_dec_ref(x_43);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_45 = !lean_is_exclusive(x_44);
|
||||
if (x_45 == 0)
|
||||
{
|
||||
lean_object* x_46;
|
||||
x_46 = lean_ctor_get(x_44, 0);
|
||||
lean_dec(x_46);
|
||||
lean_ctor_set(x_44, 0, x_41);
|
||||
return x_44;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48;
|
||||
x_47 = lean_ctor_get(x_44, 1);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_44);
|
||||
x_48 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_41);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
return x_48;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53;
|
||||
x_49 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_49);
|
||||
x_50 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec_ref(x_40);
|
||||
x_51 = lean_box(0);
|
||||
x_52 = l_mkCtorIdx___lam__5(x_5, x_39, x_27, x_3, x_35, x_51, x_50);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_53 = !lean_is_exclusive(x_52);
|
||||
if (x_53 == 0)
|
||||
{
|
||||
lean_object* x_54;
|
||||
x_54 = lean_ctor_get(x_52, 0);
|
||||
lean_dec(x_54);
|
||||
lean_ctor_set_tag(x_52, 1);
|
||||
lean_ctor_set(x_52, 0, x_49);
|
||||
return x_52;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56;
|
||||
x_55 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_52);
|
||||
x_56 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_49);
|
||||
lean_ctor_set(x_56, 1, x_55);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67;
|
||||
x_57 = lean_ctor_get(x_31, 0);
|
||||
x_58 = lean_ctor_get(x_31, 2);
|
||||
x_59 = lean_ctor_get(x_31, 3);
|
||||
x_60 = lean_ctor_get(x_31, 4);
|
||||
lean_inc(x_60);
|
||||
lean_inc(x_59);
|
||||
lean_inc(x_58);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_31);
|
||||
x_61 = l_Lean_setReducibilityStatus___at___Lean_setReducibleAttribute___at___mkCtorIdx_spec__18_spec__18___redArg___closed__3;
|
||||
x_62 = lean_alloc_ctor(0, 5, 0);
|
||||
lean_ctor_set(x_62, 0, x_57);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
lean_ctor_set(x_62, 2, x_58);
|
||||
lean_ctor_set(x_62, 3, x_59);
|
||||
lean_ctor_set(x_62, 4, x_60);
|
||||
x_63 = lean_st_ref_set(x_3, x_62, x_32);
|
||||
x_64 = lean_ctor_get(x_18, 0);
|
||||
lean_inc_ref(x_64);
|
||||
lean_dec(x_18);
|
||||
x_65 = lean_ctor_get(x_63, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec_ref(x_63);
|
||||
x_66 = lean_ctor_get_uint8(x_64, sizeof(void*)*8);
|
||||
lean_dec_ref(x_64);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_67 = l_Lean_Meta_mapErrorImp___redArg(x_10, x_15, x_2, x_3, x_4, x_5, x_65);
|
||||
if (lean_obj_tag(x_67) == 0)
|
||||
{
|
||||
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_68 = lean_ctor_get(x_67, 0);
|
||||
lean_inc(x_68);
|
||||
x_69 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_69);
|
||||
lean_dec_ref(x_67);
|
||||
lean_inc(x_68);
|
||||
x_70 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_70, 0, x_68);
|
||||
x_71 = l_mkCtorIdx___lam__5(x_5, x_66, x_27, x_3, x_61, x_70, x_69);
|
||||
lean_dec_ref(x_70);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_72 = lean_ctor_get(x_71, 1);
|
||||
lean_inc(x_72);
|
||||
if (lean_is_exclusive(x_71)) {
|
||||
lean_ctor_release(x_71, 0);
|
||||
lean_ctor_release(x_71, 1);
|
||||
x_73 = x_71;
|
||||
} else {
|
||||
lean_dec_ref(x_71);
|
||||
x_73 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_73)) {
|
||||
x_74 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_74 = x_73;
|
||||
}
|
||||
lean_ctor_set(x_74, 0, x_68);
|
||||
lean_ctor_set(x_74, 1, x_72);
|
||||
return x_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_75 = lean_ctor_get(x_67, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_76);
|
||||
lean_dec_ref(x_67);
|
||||
x_77 = lean_box(0);
|
||||
x_78 = l_mkCtorIdx___lam__5(x_5, x_66, x_27, x_3, x_61, x_77, x_76);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_79 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_79);
|
||||
if (lean_is_exclusive(x_78)) {
|
||||
lean_ctor_release(x_78, 0);
|
||||
lean_ctor_release(x_78, 1);
|
||||
x_80 = x_78;
|
||||
} else {
|
||||
lean_dec_ref(x_78);
|
||||
x_80 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_80)) {
|
||||
x_81 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_81 = x_80;
|
||||
lean_ctor_set_tag(x_81, 1);
|
||||
}
|
||||
lean_ctor_set(x_81, 0, x_75);
|
||||
lean_ctor_set(x_81, 1, x_79);
|
||||
return x_81;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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; 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; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109;
|
||||
x_82 = lean_ctor_get(x_21, 0);
|
||||
x_83 = lean_ctor_get(x_21, 1);
|
||||
x_84 = lean_ctor_get(x_21, 2);
|
||||
x_85 = lean_ctor_get(x_21, 3);
|
||||
x_86 = lean_ctor_get(x_21, 4);
|
||||
x_87 = lean_ctor_get(x_21, 6);
|
||||
x_88 = lean_ctor_get(x_21, 7);
|
||||
x_89 = lean_ctor_get(x_21, 8);
|
||||
lean_inc(x_89);
|
||||
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_inc(x_82);
|
||||
lean_dec(x_21);
|
||||
x_90 = l_Lean_Environment_setExporting(x_82, x_16);
|
||||
x_91 = l_Lean_setReducibilityStatus___at___Lean_setReducibleAttribute___at___mkCtorIdx_spec__18_spec__18___redArg___closed__2;
|
||||
x_92 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_92, 0, x_90);
|
||||
lean_ctor_set(x_92, 1, x_83);
|
||||
lean_ctor_set(x_92, 2, x_84);
|
||||
lean_ctor_set(x_92, 3, x_85);
|
||||
lean_ctor_set(x_92, 4, x_86);
|
||||
lean_ctor_set(x_92, 5, x_91);
|
||||
lean_ctor_set(x_92, 6, x_87);
|
||||
lean_ctor_set(x_92, 7, x_88);
|
||||
lean_ctor_set(x_92, 8, x_89);
|
||||
x_93 = lean_st_ref_set(x_5, x_92, x_22);
|
||||
x_94 = lean_ctor_get(x_93, 1);
|
||||
lean_inc(x_94);
|
||||
lean_dec_ref(x_93);
|
||||
x_95 = lean_st_ref_take(x_3, x_94);
|
||||
x_96 = lean_ctor_get(x_95, 0);
|
||||
lean_inc(x_96);
|
||||
x_97 = lean_ctor_get(x_95, 1);
|
||||
lean_inc(x_97);
|
||||
lean_dec_ref(x_95);
|
||||
x_98 = lean_ctor_get(x_96, 0);
|
||||
lean_inc_ref(x_98);
|
||||
x_99 = lean_ctor_get(x_96, 2);
|
||||
lean_inc(x_99);
|
||||
x_100 = lean_ctor_get(x_96, 3);
|
||||
lean_inc_ref(x_100);
|
||||
x_101 = lean_ctor_get(x_96, 4);
|
||||
lean_inc_ref(x_101);
|
||||
if (lean_is_exclusive(x_96)) {
|
||||
lean_ctor_release(x_96, 0);
|
||||
lean_ctor_release(x_96, 1);
|
||||
lean_ctor_release(x_96, 2);
|
||||
lean_ctor_release(x_96, 3);
|
||||
lean_ctor_release(x_96, 4);
|
||||
x_102 = x_96;
|
||||
} else {
|
||||
lean_dec_ref(x_96);
|
||||
x_102 = lean_box(0);
|
||||
}
|
||||
x_103 = l_Lean_setReducibilityStatus___at___Lean_setReducibleAttribute___at___mkCtorIdx_spec__18_spec__18___redArg___closed__3;
|
||||
if (lean_is_scalar(x_102)) {
|
||||
x_104 = lean_alloc_ctor(0, 5, 0);
|
||||
} else {
|
||||
x_104 = x_102;
|
||||
}
|
||||
lean_ctor_set(x_104, 0, x_98);
|
||||
lean_ctor_set(x_104, 1, x_103);
|
||||
lean_ctor_set(x_104, 2, x_99);
|
||||
lean_ctor_set(x_104, 3, x_100);
|
||||
lean_ctor_set(x_104, 4, x_101);
|
||||
x_105 = lean_st_ref_set(x_3, x_104, x_97);
|
||||
x_106 = lean_ctor_get(x_18, 0);
|
||||
lean_inc_ref(x_106);
|
||||
lean_dec(x_18);
|
||||
x_107 = lean_ctor_get(x_105, 1);
|
||||
lean_inc(x_107);
|
||||
lean_dec_ref(x_105);
|
||||
x_108 = lean_ctor_get_uint8(x_106, sizeof(void*)*8);
|
||||
lean_dec_ref(x_106);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_109 = l_Lean_Meta_mapErrorImp___redArg(x_10, x_15, x_2, x_3, x_4, x_5, x_107);
|
||||
if (lean_obj_tag(x_109) == 0)
|
||||
{
|
||||
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116;
|
||||
x_110 = lean_ctor_get(x_109, 0);
|
||||
lean_inc(x_110);
|
||||
x_111 = lean_ctor_get(x_109, 1);
|
||||
lean_inc(x_111);
|
||||
lean_dec_ref(x_109);
|
||||
lean_inc(x_110);
|
||||
x_112 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_112, 0, x_110);
|
||||
x_113 = l_mkCtorIdx___lam__5(x_5, x_108, x_91, x_3, x_103, x_112, x_111);
|
||||
lean_dec_ref(x_112);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_114 = lean_ctor_get(x_113, 1);
|
||||
lean_inc(x_114);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_115 = x_113;
|
||||
} else {
|
||||
lean_dec_ref(x_113);
|
||||
x_115 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_115)) {
|
||||
x_116 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_116 = x_115;
|
||||
}
|
||||
lean_ctor_set(x_116, 0, x_110);
|
||||
lean_ctor_set(x_116, 1, x_114);
|
||||
return x_116;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123;
|
||||
x_117 = lean_ctor_get(x_109, 0);
|
||||
lean_inc(x_117);
|
||||
x_118 = lean_ctor_get(x_109, 1);
|
||||
lean_inc(x_118);
|
||||
lean_dec_ref(x_109);
|
||||
x_119 = lean_box(0);
|
||||
x_120 = l_mkCtorIdx___lam__5(x_5, x_108, x_91, x_3, x_103, x_119, x_118);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_121 = lean_ctor_get(x_120, 1);
|
||||
lean_inc(x_121);
|
||||
if (lean_is_exclusive(x_120)) {
|
||||
lean_ctor_release(x_120, 0);
|
||||
lean_ctor_release(x_120, 1);
|
||||
x_122 = x_120;
|
||||
} else {
|
||||
lean_dec_ref(x_120);
|
||||
x_122 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_122)) {
|
||||
x_123 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_123 = x_122;
|
||||
lean_ctor_set_tag(x_123, 1);
|
||||
}
|
||||
lean_ctor_set(x_123, 0, x_117);
|
||||
lean_ctor_set(x_123, 1, x_121);
|
||||
return x_123;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7519,6 +8063,18 @@ x_9 = l_mkCtorIdx___lam__3(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_mkCtorIdx___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
x_8 = lean_unbox(x_2);
|
||||
x_9 = l_mkCtorIdx___lam__5(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_AddDecl(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue