chore: update stage0
This commit is contained in:
parent
2584b6abf9
commit
263a77fa89
30 changed files with 29548 additions and 29949 deletions
53
stage0/stdlib/Lean/Compiler/ImplementedByAttr.c
generated
53
stage0/stdlib/Lean/Compiler/ImplementedByAttr.c
generated
|
|
@ -80,7 +80,7 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_implementedByAttr___regBuiltin_Lean_Com
|
|||
static lean_object* l_Lean_Compiler_implementedByAttr___regBuiltin_Lean_Compiler_implementedByAttr_declRange__3___closed__2;
|
||||
static lean_object* l_Lean_Compiler_initFn___closed__2____x40_Lean_Compiler_ImplementedByAttr___hyg_3_;
|
||||
lean_object* l_Lean_Name_mkStr1(lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Compiler_implementedByAttr___regBuiltin_Lean_Compiler_implementedByAttr_declRange__3___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Compiler_implementedByAttr;
|
||||
lean_object* l_Lean_throwError___at___Lean_throwErrorAt___at___Lean_throwUnknownIdentifierAt___at___Lean_throwUnknownConstantAt___at___Lean_filterFieldList___at___Lean_realizeGlobalConstCore_spec__0_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -978,7 +978,7 @@ lean_inc_ref(x_3);
|
|||
x_9 = l_Lean_Attribute_Builtin_getIdent(x_2, x_3, x_4, x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_9, 1);
|
||||
|
|
@ -990,60 +990,61 @@ lean_closure_set(x_13, 0, x_10);
|
|||
lean_closure_set(x_13, 1, x_12);
|
||||
lean_closure_set(x_13, 2, x_7);
|
||||
lean_closure_set(x_13, 3, x_1);
|
||||
x_14 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_13, x_3, x_4, x_11);
|
||||
return x_14;
|
||||
x_14 = 1;
|
||||
x_15 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_13, x_14, x_3, x_4, x_11);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_15;
|
||||
uint8_t x_16;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
lean_dec(x_1);
|
||||
x_15 = !lean_is_exclusive(x_9);
|
||||
if (x_15 == 0)
|
||||
x_16 = !lean_is_exclusive(x_9);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_16 = lean_ctor_get(x_9, 0);
|
||||
x_17 = lean_ctor_get(x_9, 1);
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_9, 0);
|
||||
x_18 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_9);
|
||||
x_18 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_16);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
return x_18;
|
||||
x_19 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_19;
|
||||
uint8_t x_20;
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_19 = !lean_is_exclusive(x_6);
|
||||
if (x_19 == 0)
|
||||
x_20 = !lean_is_exclusive(x_6);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_6, 0);
|
||||
x_21 = lean_ctor_get(x_6, 1);
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_21 = lean_ctor_get(x_6, 0);
|
||||
x_22 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_6);
|
||||
x_22 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_20);
|
||||
lean_ctor_set(x_22, 1, x_21);
|
||||
return x_22;
|
||||
x_23 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_21);
|
||||
lean_ctor_set(x_23, 1, x_22);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
519
stage0/stdlib/Lean/CoreM.c
generated
519
stage0/stdlib/Lean/CoreM.c
generated
|
|
@ -535,7 +535,7 @@ lean_object* l_Lean_throwMaxRecDepthAt___redArg(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at___Lean_addTraceAsMessages___at___Lean_Core_wrapAsyncAsSnapshot_spec__0_spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_instMonadEnvCoreM___lam__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_setMessageLog___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_instMonadExceptOf___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_catchInternalId___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -608,6 +608,7 @@ LEAN_EXPORT lean_object* l_Lean_Core_checkMaxHeartbeatsCore___redArg(lean_object
|
|||
static lean_object* l_Lean_Core_initFn___closed__12____x40_Lean_CoreM___hyg_915_;
|
||||
static lean_object* l_Lean_Core_initFn___closed__8____x40_Lean_CoreM___hyg_915_;
|
||||
static lean_object* l___auto___closed__2____x40_Lean_CoreM___hyg_4837_;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Name_hasMacroScopes(lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
static lean_object* l___auto___closed__7____x40_Lean_CoreM___hyg_4837_;
|
||||
|
|
@ -673,6 +674,7 @@ static lean_object* l_Lean_Core_initFn___closed__3____x40_Lean_CoreM___hyg_4799_
|
|||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_CoreM___hyg_153_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_CoreM_run___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentArray_toArray___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_logMessageKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_catchInternalIds___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -806,7 +808,7 @@ static lean_object* l_Lean_addTraceAsMessages___at___Lean_Core_wrapAsyncAsSnapsh
|
|||
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Core_withRestoreOrSaveFull___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_CoreM_0__Lean_supportedRecursors___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_addTraceAsMessages___at___Lean_Core_wrapAsyncAsSnapshot_spec__0_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Core_wrapAsyncAsSnapshot___redArg___lam__3___closed__8;
|
||||
static double l_Lean_withTraceNode___at___Lean_Core_wrapAsyncAsSnapshot_spec__18___redArg___closed__5;
|
||||
|
|
@ -23432,226 +23434,235 @@ return x_34;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
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; lean_object* x_12; uint8_t x_13;
|
||||
x_5 = lean_st_ref_get(x_3, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_6, 0);
|
||||
lean_inc_ref(x_7);
|
||||
lean_dec(x_6);
|
||||
x_8 = lean_ctor_get(x_5, 1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = lean_apply_3(x_1, x_3, x_4, x_5);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_7 = lean_st_ref_get(x_4, x_5);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
lean_dec_ref(x_5);
|
||||
x_9 = lean_ctor_get_uint8(x_7, sizeof(void*)*8);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc_ref(x_9);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec_ref(x_7);
|
||||
x_10 = lean_st_ref_take(x_3, x_8);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec_ref(x_10);
|
||||
x_13 = !lean_is_exclusive(x_11);
|
||||
if (x_13 == 0)
|
||||
x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8);
|
||||
lean_dec_ref(x_9);
|
||||
x_12 = lean_st_ref_take(x_4, x_10);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec_ref(x_12);
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_14 = lean_ctor_get(x_11, 0);
|
||||
x_15 = lean_ctor_get(x_11, 5);
|
||||
lean_dec(x_15);
|
||||
x_16 = 0;
|
||||
x_17 = l_Lean_Environment_setExporting(x_14, x_16);
|
||||
x_18 = l_Lean_Core_instInhabitedCache___closed__2;
|
||||
lean_ctor_set(x_11, 5, x_18);
|
||||
lean_ctor_set(x_11, 0, x_17);
|
||||
x_19 = lean_st_ref_set(x_3, x_11, x_12);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec_ref(x_19);
|
||||
lean_inc(x_3);
|
||||
x_21 = lean_apply_3(x_1, x_2, x_3, x_20);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
x_17 = lean_ctor_get(x_13, 5);
|
||||
lean_dec(x_17);
|
||||
x_18 = 0;
|
||||
x_19 = l_Lean_Environment_setExporting(x_16, x_18);
|
||||
x_20 = l_Lean_Core_instInhabitedCache___closed__2;
|
||||
lean_ctor_set(x_13, 5, x_20);
|
||||
lean_ctor_set(x_13, 0, x_19);
|
||||
x_21 = lean_st_ref_set(x_4, x_13, x_14);
|
||||
x_22 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec_ref(x_21);
|
||||
lean_inc(x_22);
|
||||
x_24 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
x_25 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_18, x_24, x_23);
|
||||
lean_dec_ref(x_24);
|
||||
lean_dec(x_3);
|
||||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
lean_inc(x_4);
|
||||
x_23 = lean_apply_3(x_1, x_3, x_4, x_22);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_27;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_27);
|
||||
lean_ctor_set(x_25, 0, x_22);
|
||||
return x_25;
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec_ref(x_23);
|
||||
lean_inc(x_24);
|
||||
x_26 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
x_27 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_20, x_26, x_25);
|
||||
lean_dec_ref(x_26);
|
||||
lean_dec(x_4);
|
||||
x_28 = !lean_is_exclusive(x_27);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29;
|
||||
x_29 = lean_ctor_get(x_27, 0);
|
||||
lean_dec(x_29);
|
||||
lean_ctor_set(x_27, 0, x_24);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29;
|
||||
x_28 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_25);
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_22);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34;
|
||||
x_30 = lean_ctor_get(x_21, 0);
|
||||
lean_object* x_30; lean_object* x_31;
|
||||
x_30 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec_ref(x_21);
|
||||
x_32 = lean_box(0);
|
||||
x_33 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_18, x_32, x_31);
|
||||
lean_dec(x_3);
|
||||
x_34 = !lean_is_exclusive(x_33);
|
||||
if (x_34 == 0)
|
||||
lean_dec(x_27);
|
||||
x_31 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_24);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35;
|
||||
x_35 = lean_ctor_get(x_33, 0);
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36;
|
||||
x_32 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec_ref(x_23);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_20, x_34, x_33);
|
||||
lean_dec(x_4);
|
||||
x_36 = !lean_is_exclusive(x_35);
|
||||
if (x_36 == 0)
|
||||
{
|
||||
lean_object* x_37;
|
||||
x_37 = lean_ctor_get(x_35, 0);
|
||||
lean_dec(x_37);
|
||||
lean_ctor_set_tag(x_35, 1);
|
||||
lean_ctor_set(x_35, 0, x_32);
|
||||
return x_35;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39;
|
||||
x_38 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_35);
|
||||
lean_ctor_set_tag(x_33, 1);
|
||||
lean_ctor_set(x_33, 0, x_30);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37;
|
||||
x_36 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_33);
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_30);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
return x_37;
|
||||
x_39 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_32);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
return x_39;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t 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;
|
||||
x_38 = lean_ctor_get(x_11, 0);
|
||||
x_39 = lean_ctor_get(x_11, 1);
|
||||
x_40 = lean_ctor_get(x_11, 2);
|
||||
x_41 = lean_ctor_get(x_11, 3);
|
||||
x_42 = lean_ctor_get(x_11, 4);
|
||||
x_43 = lean_ctor_get(x_11, 6);
|
||||
x_44 = lean_ctor_get(x_11, 7);
|
||||
x_45 = lean_ctor_get(x_11, 8);
|
||||
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; uint8_t 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;
|
||||
x_40 = lean_ctor_get(x_13, 0);
|
||||
x_41 = lean_ctor_get(x_13, 1);
|
||||
x_42 = lean_ctor_get(x_13, 2);
|
||||
x_43 = lean_ctor_get(x_13, 3);
|
||||
x_44 = lean_ctor_get(x_13, 4);
|
||||
x_45 = lean_ctor_get(x_13, 6);
|
||||
x_46 = lean_ctor_get(x_13, 7);
|
||||
x_47 = lean_ctor_get(x_13, 8);
|
||||
lean_inc(x_47);
|
||||
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_inc(x_38);
|
||||
lean_dec(x_11);
|
||||
x_46 = 0;
|
||||
x_47 = l_Lean_Environment_setExporting(x_38, x_46);
|
||||
x_48 = l_Lean_Core_instInhabitedCache___closed__2;
|
||||
x_49 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_49, 0, x_47);
|
||||
lean_ctor_set(x_49, 1, x_39);
|
||||
lean_ctor_set(x_49, 2, x_40);
|
||||
lean_ctor_set(x_49, 3, x_41);
|
||||
lean_ctor_set(x_49, 4, x_42);
|
||||
lean_ctor_set(x_49, 5, x_48);
|
||||
lean_ctor_set(x_49, 6, x_43);
|
||||
lean_ctor_set(x_49, 7, x_44);
|
||||
lean_ctor_set(x_49, 8, x_45);
|
||||
x_50 = lean_st_ref_set(x_3, x_49, x_12);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec_ref(x_50);
|
||||
lean_inc(x_3);
|
||||
x_52 = lean_apply_3(x_1, x_2, x_3, x_51);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
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;
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
lean_dec(x_13);
|
||||
x_48 = 0;
|
||||
x_49 = l_Lean_Environment_setExporting(x_40, x_48);
|
||||
x_50 = l_Lean_Core_instInhabitedCache___closed__2;
|
||||
x_51 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_51, 0, x_49);
|
||||
lean_ctor_set(x_51, 1, x_41);
|
||||
lean_ctor_set(x_51, 2, x_42);
|
||||
lean_ctor_set(x_51, 3, x_43);
|
||||
lean_ctor_set(x_51, 4, x_44);
|
||||
lean_ctor_set(x_51, 5, x_50);
|
||||
lean_ctor_set(x_51, 6, x_45);
|
||||
lean_ctor_set(x_51, 7, x_46);
|
||||
lean_ctor_set(x_51, 8, x_47);
|
||||
x_52 = lean_st_ref_set(x_4, x_51, x_14);
|
||||
x_53 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec_ref(x_52);
|
||||
lean_inc(x_53);
|
||||
x_55 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_55, 0, x_53);
|
||||
x_56 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_48, x_55, x_54);
|
||||
lean_dec_ref(x_55);
|
||||
lean_dec(x_3);
|
||||
x_57 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_57);
|
||||
if (lean_is_exclusive(x_56)) {
|
||||
lean_ctor_release(x_56, 0);
|
||||
lean_ctor_release(x_56, 1);
|
||||
x_58 = x_56;
|
||||
lean_inc(x_4);
|
||||
x_54 = lean_apply_3(x_1, x_3, x_4, x_53);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
{
|
||||
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;
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_56);
|
||||
lean_dec_ref(x_54);
|
||||
lean_inc(x_55);
|
||||
x_57 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_57, 0, x_55);
|
||||
x_58 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_50, x_57, x_56);
|
||||
lean_dec_ref(x_57);
|
||||
lean_dec(x_4);
|
||||
x_59 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_59);
|
||||
if (lean_is_exclusive(x_58)) {
|
||||
lean_ctor_release(x_58, 0);
|
||||
lean_ctor_release(x_58, 1);
|
||||
x_60 = x_58;
|
||||
} else {
|
||||
lean_dec_ref(x_56);
|
||||
x_58 = lean_box(0);
|
||||
lean_dec_ref(x_58);
|
||||
x_60 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_58)) {
|
||||
x_59 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_60)) {
|
||||
x_61 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_59 = x_58;
|
||||
x_61 = x_60;
|
||||
}
|
||||
lean_ctor_set(x_59, 0, x_53);
|
||||
lean_ctor_set(x_59, 1, x_57);
|
||||
return x_59;
|
||||
lean_ctor_set(x_61, 0, x_55);
|
||||
lean_ctor_set(x_61, 1, x_59);
|
||||
return x_61;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_60 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec_ref(x_52);
|
||||
x_62 = lean_box(0);
|
||||
x_63 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_3, x_9, x_48, x_62, x_61);
|
||||
lean_dec(x_3);
|
||||
x_64 = lean_ctor_get(x_63, 1);
|
||||
lean_inc(x_64);
|
||||
if (lean_is_exclusive(x_63)) {
|
||||
lean_ctor_release(x_63, 0);
|
||||
lean_ctor_release(x_63, 1);
|
||||
x_65 = x_63;
|
||||
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_62 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_62);
|
||||
x_63 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec_ref(x_54);
|
||||
x_64 = lean_box(0);
|
||||
x_65 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___lam__0(x_4, x_11, x_50, x_64, x_63);
|
||||
lean_dec(x_4);
|
||||
x_66 = lean_ctor_get(x_65, 1);
|
||||
lean_inc(x_66);
|
||||
if (lean_is_exclusive(x_65)) {
|
||||
lean_ctor_release(x_65, 0);
|
||||
lean_ctor_release(x_65, 1);
|
||||
x_67 = x_65;
|
||||
} else {
|
||||
lean_dec_ref(x_63);
|
||||
x_65 = lean_box(0);
|
||||
lean_dec_ref(x_65);
|
||||
x_67 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_65)) {
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_67)) {
|
||||
x_68 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_66 = x_65;
|
||||
lean_ctor_set_tag(x_66, 1);
|
||||
x_68 = x_67;
|
||||
lean_ctor_set_tag(x_68, 1);
|
||||
}
|
||||
lean_ctor_set(x_66, 0, x_60);
|
||||
lean_ctor_set(x_66, 1, x_64);
|
||||
return x_66;
|
||||
lean_ctor_set(x_68, 0, x_62);
|
||||
lean_ctor_set(x_68, 1, x_66);
|
||||
return x_68;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_2, x_3, x_4, x_5);
|
||||
return x_6;
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
|
||||
|
|
@ -23803,53 +23814,54 @@ x_13 = lean_array_get_size(x_1);
|
|||
x_14 = lean_nat_dec_lt(x_12, x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
uint8_t x_15; lean_object* x_16;
|
||||
lean_dec(x_13);
|
||||
lean_free_object(x_6);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_1);
|
||||
x_15 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_3, x_4, x_9);
|
||||
return x_15;
|
||||
x_15 = 1;
|
||||
x_16 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_15, x_3, x_4, x_9);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_16;
|
||||
lean_object* x_17;
|
||||
lean_dec(x_13);
|
||||
lean_free_object(x_6);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_1);
|
||||
x_16 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_3, x_4, x_9);
|
||||
return x_16;
|
||||
x_17 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_14, x_3, x_4, x_9);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; uint8_t x_21;
|
||||
x_17 = lean_ctor_get(x_8, 0);
|
||||
lean_inc_ref(x_17);
|
||||
lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; uint8_t x_22;
|
||||
x_18 = lean_ctor_get(x_8, 0);
|
||||
lean_inc_ref(x_18);
|
||||
lean_dec(x_8);
|
||||
x_18 = l_Lean_Environment_constants(x_17);
|
||||
x_19 = 0;
|
||||
x_20 = lean_usize_of_nat(x_13);
|
||||
x_19 = l_Lean_Environment_constants(x_18);
|
||||
x_20 = 0;
|
||||
x_21 = lean_usize_of_nat(x_13);
|
||||
lean_dec(x_13);
|
||||
x_21 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_18, x_1, x_19, x_20);
|
||||
x_22 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_19, x_1, x_20, x_21);
|
||||
lean_dec_ref(x_1);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
lean_free_object(x_6);
|
||||
x_22 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_3, x_4, x_9);
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23;
|
||||
lean_free_object(x_6);
|
||||
x_23 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_11, x_14, x_3, x_4, x_9);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24;
|
||||
lean_dec_ref(x_11);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
x_23 = lean_box(0);
|
||||
lean_ctor_set(x_6, 0, x_23);
|
||||
x_24 = lean_box(0);
|
||||
lean_ctor_set(x_6, 0, x_24);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
|
|
@ -23857,69 +23869,70 @@ return x_6;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; 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_24 = lean_ctor_get(x_6, 0);
|
||||
x_25 = lean_ctor_get(x_6, 1);
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31;
|
||||
x_25 = lean_ctor_get(x_6, 0);
|
||||
x_26 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_6);
|
||||
x_26 = lean_box(x_2);
|
||||
x_27 = lean_box(x_2);
|
||||
lean_inc_ref(x_1);
|
||||
x_27 = lean_alloc_closure((void*)(l_Lean_compileDecls_doCompile___lam__0___boxed), 5, 2);
|
||||
lean_closure_set(x_27, 0, x_1);
|
||||
lean_closure_set(x_27, 1, x_26);
|
||||
x_28 = lean_unsigned_to_nat(0u);
|
||||
x_29 = lean_array_get_size(x_1);
|
||||
x_30 = lean_nat_dec_lt(x_28, x_29);
|
||||
if (x_30 == 0)
|
||||
x_28 = lean_alloc_closure((void*)(l_Lean_compileDecls_doCompile___lam__0___boxed), 5, 2);
|
||||
lean_closure_set(x_28, 0, x_1);
|
||||
lean_closure_set(x_28, 1, x_27);
|
||||
x_29 = lean_unsigned_to_nat(0u);
|
||||
x_30 = lean_array_get_size(x_1);
|
||||
x_31 = lean_nat_dec_lt(x_29, x_30);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
lean_object* x_31;
|
||||
lean_dec(x_29);
|
||||
lean_dec(x_24);
|
||||
uint8_t x_32; lean_object* x_33;
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_25);
|
||||
lean_dec_ref(x_1);
|
||||
x_31 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_27, x_3, x_4, x_25);
|
||||
return x_31;
|
||||
x_32 = 1;
|
||||
x_33 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_28, x_32, x_3, x_4, x_26);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x_30 == 0)
|
||||
if (x_31 == 0)
|
||||
{
|
||||
lean_object* x_32;
|
||||
lean_dec(x_29);
|
||||
lean_dec(x_24);
|
||||
lean_object* x_34;
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_25);
|
||||
lean_dec_ref(x_1);
|
||||
x_32 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_27, x_3, x_4, x_25);
|
||||
return x_32;
|
||||
x_34 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_28, x_31, x_3, x_4, x_26);
|
||||
return x_34;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; uint8_t x_37;
|
||||
x_33 = lean_ctor_get(x_24, 0);
|
||||
lean_inc_ref(x_33);
|
||||
lean_dec(x_24);
|
||||
x_34 = l_Lean_Environment_constants(x_33);
|
||||
x_35 = 0;
|
||||
x_36 = lean_usize_of_nat(x_29);
|
||||
lean_dec(x_29);
|
||||
x_37 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_34, x_1, x_35, x_36);
|
||||
lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; uint8_t x_39;
|
||||
x_35 = lean_ctor_get(x_25, 0);
|
||||
lean_inc_ref(x_35);
|
||||
lean_dec(x_25);
|
||||
x_36 = l_Lean_Environment_constants(x_35);
|
||||
x_37 = 0;
|
||||
x_38 = lean_usize_of_nat(x_30);
|
||||
lean_dec(x_30);
|
||||
x_39 = l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1(x_36, x_1, x_37, x_38);
|
||||
lean_dec_ref(x_1);
|
||||
if (x_37 == 0)
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_38;
|
||||
x_38 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_27, x_3, x_4, x_25);
|
||||
return x_38;
|
||||
lean_object* x_40;
|
||||
x_40 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_28, x_31, x_3, x_4, x_26);
|
||||
return x_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40;
|
||||
lean_dec_ref(x_27);
|
||||
lean_object* x_41; lean_object* x_42;
|
||||
lean_dec_ref(x_28);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
x_39 = lean_box(0);
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_39);
|
||||
lean_ctor_set(x_40, 1, x_25);
|
||||
return x_40;
|
||||
x_41 = lean_box(0);
|
||||
x_42 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_26);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -23937,6 +23950,24 @@ lean_dec(x_1);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_6; lean_object* x_7;
|
||||
x_6 = lean_unbox(x_2);
|
||||
x_7 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_1, x_6, x_3, x_4, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_7; lean_object* x_8;
|
||||
x_7 = lean_unbox(x_3);
|
||||
x_8 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0(x_1, x_2, x_7, x_4, x_5, x_6);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_compileDecls_doCompile_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
1748
stage0/stdlib/Lean/DefEqAttrib.c
generated
1748
stage0/stdlib/Lean/DefEqAttrib.c
generated
File diff suppressed because it is too large
Load diff
5
stage0/stdlib/Lean/Elab/App.c
generated
5
stage0/stdlib/Lean/Elab/App.c
generated
|
|
@ -50233,7 +50233,6 @@ lean_inc(x_239);
|
|||
lean_dec(x_233);
|
||||
lean_inc(x_239);
|
||||
x_240 = l_Lean_isPrivateNameFromImportedModule(x_238, x_239);
|
||||
lean_dec_ref(x_238);
|
||||
if (x_240 == 0)
|
||||
{
|
||||
lean_free_object(x_234);
|
||||
|
|
@ -50322,7 +50321,6 @@ lean_inc(x_254);
|
|||
lean_dec(x_233);
|
||||
lean_inc(x_254);
|
||||
x_255 = l_Lean_isPrivateNameFromImportedModule(x_253, x_254);
|
||||
lean_dec_ref(x_253);
|
||||
if (x_255 == 0)
|
||||
{
|
||||
lean_free_object(x_225);
|
||||
|
|
@ -50455,7 +50453,6 @@ lean_inc(x_279);
|
|||
lean_dec(x_273);
|
||||
lean_inc(x_279);
|
||||
x_280 = l_Lean_isPrivateNameFromImportedModule(x_278, x_279);
|
||||
lean_dec_ref(x_278);
|
||||
if (x_280 == 0)
|
||||
{
|
||||
lean_dec(x_277);
|
||||
|
|
@ -50606,7 +50603,6 @@ lean_inc(x_309);
|
|||
lean_dec(x_303);
|
||||
lean_inc(x_309);
|
||||
x_310 = l_Lean_isPrivateNameFromImportedModule(x_308, x_309);
|
||||
lean_dec_ref(x_308);
|
||||
if (x_310 == 0)
|
||||
{
|
||||
lean_dec(x_307);
|
||||
|
|
@ -50811,7 +50807,6 @@ lean_inc(x_346);
|
|||
lean_dec(x_340);
|
||||
lean_inc(x_346);
|
||||
x_347 = l_Lean_isPrivateNameFromImportedModule(x_345, x_346);
|
||||
lean_dec_ref(x_345);
|
||||
if (x_347 == 0)
|
||||
{
|
||||
lean_dec(x_344);
|
||||
|
|
|
|||
3
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
3
stage0/stdlib/Lean/Elab/BuiltinNotation.c
generated
|
|
@ -3193,7 +3193,6 @@ x_205 = l_Lean_Syntax_getArgs(x_145);
|
|||
lean_dec(x_145);
|
||||
lean_inc(x_80);
|
||||
x_206 = l_Lean_isPrivateNameFromImportedModule(x_86, x_80);
|
||||
lean_dec_ref(x_86);
|
||||
if (x_206 == 0)
|
||||
{
|
||||
lean_object* x_207;
|
||||
|
|
@ -4399,7 +4398,6 @@ x_456 = l_Lean_Syntax_getArgs(x_418);
|
|||
lean_dec(x_418);
|
||||
lean_inc(x_376);
|
||||
x_457 = l_Lean_isPrivateNameFromImportedModule(x_382, x_376);
|
||||
lean_dec_ref(x_382);
|
||||
if (x_457 == 0)
|
||||
{
|
||||
lean_object* x_458;
|
||||
|
|
@ -5160,7 +5158,6 @@ x_634 = l_Lean_Syntax_getArgs(x_596);
|
|||
lean_dec(x_596);
|
||||
lean_inc(x_554);
|
||||
x_635 = l_Lean_isPrivateNameFromImportedModule(x_560, x_554);
|
||||
lean_dec_ref(x_560);
|
||||
if (x_635 == 0)
|
||||
{
|
||||
lean_object* x_636;
|
||||
|
|
|
|||
181
stage0/stdlib/Lean/Elab/BuiltinTerm.c
generated
181
stage0/stdlib/Lean/Elab/BuiltinTerm.c
generated
|
|
@ -664,9 +664,8 @@ static lean_object* l_Lean_throwUnknownConstantAt___at___Lean_Elab_Term_elabValu
|
|||
static lean_object* l_Lean_Elab_throwIllFormedSyntax___at___Lean_Elab_Term_elabStrLit_spec__0___redArg___closed__0;
|
||||
lean_object* l_Lean_Elab_Term_withTermInfoContext_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabValueOf___regBuiltin_Lean_Elab_Term_elabValueOf__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___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*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabDeclName___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabClear___regBuiltin_Lean_Elab_Term_elabClear__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPipeCompletion___regBuiltin_Lean_Elab_Term_elabPipeCompletion_declRange__3(lean_object*);
|
||||
static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at___Lean_Elab_Term_elabOpen_spec__4___closed__18;
|
||||
|
|
@ -676,7 +675,7 @@ static lean_object* l_Lean_Elab_Term_elabCompletion___regBuiltin_Lean_Elab_Term_
|
|||
static lean_object* l_Lean_Elab_Term_elabLetMVar___regBuiltin_Lean_Elab_Term_elabLetMVar__1___closed__0;
|
||||
static lean_object* l_Lean_Elab_Term_elabClear___regBuiltin_Lean_Elab_Term_elabClear__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNumLit___regBuiltin_Lean_Elab_Term_elabNumLit__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(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_List_forIn_x27_loop___at___Lean_Elab_OpenDecl_elabOpenDecl___at___Lean_Elab_Term_elabOpen_spec__4_spec__43___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabLetMVar___regBuiltin_Lean_Elab_Term_elabLetMVar_declRange__3___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabOmission___regBuiltin_Lean_Elab_Term_elabOmission__1(lean_object*);
|
||||
|
|
@ -884,6 +883,7 @@ static lean_object* l_Lean_Elab_Term_elabSetOption___closed__1;
|
|||
static lean_object* l_Lean_Elab_Term_elabSetOption___regBuiltin_Lean_Elab_Term_elabSetOption__1___closed__0;
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_OpenDecl_elabOpenDecl___at___Lean_Elab_Term_elabOpen_spec__4_spec__47_spec__47___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabCharLit___regBuiltin_Lean_Elab_Term_elabCharLit__1___closed__1;
|
||||
lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_filterTR_loop___at___Lean_filterFieldList___at___Lean_realizeGlobalConstCore_spec__0_spec__0(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabQuotedName___regBuiltin_Lean_Elab_Term_elabQuotedName_declRange__3___closed__1;
|
||||
static lean_object* l_Lean_Elab_Term_elabStrLit___regBuiltin_Lean_Elab_Term_elabStrLit__1___closed__3;
|
||||
|
|
@ -25398,110 +25398,110 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5, x_1);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___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_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
lean_inc(x_10);
|
||||
lean_inc_ref(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc_ref(x_7);
|
||||
x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_3, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
lean_object* x_11;
|
||||
lean_inc(x_9);
|
||||
lean_inc_ref(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc_ref(x_6);
|
||||
x_11 = l_Lean_Elab_Term_elabTermAndSynthesize(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16;
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec_ref(x_12);
|
||||
x_15 = 0;
|
||||
lean_inc(x_10);
|
||||
lean_inc_ref(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc_ref(x_7);
|
||||
lean_inc(x_4);
|
||||
x_16 = l_Lean_Meta_mkAuxDefinitionFor(x_4, x_13, x_15, x_7, x_8, x_9, x_10, x_14);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
lean_dec_ref(x_11);
|
||||
x_14 = 0;
|
||||
lean_inc(x_9);
|
||||
lean_inc_ref(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc_ref(x_6);
|
||||
lean_inc(x_3);
|
||||
x_15 = l_Lean_Meta_mkAuxDefinitionFor(x_3, x_12, x_14, x_6, x_7, x_8, x_9, x_13);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec_ref(x_16);
|
||||
x_19 = 0;
|
||||
x_20 = l_Lean_Meta_setInlineAttribute(x_4, x_19, x_7, x_8, x_9, x_10, x_18);
|
||||
lean_dec(x_10);
|
||||
lean_dec_ref(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
lean_dec_ref(x_15);
|
||||
x_18 = 0;
|
||||
x_19 = l_Lean_Meta_setInlineAttribute(x_3, x_18, x_6, x_7, x_8, x_9, x_17);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
uint8_t x_21;
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
uint8_t x_20;
|
||||
x_20 = !lean_is_exclusive(x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_dec(x_22);
|
||||
lean_ctor_set(x_20, 0, x_17);
|
||||
return x_20;
|
||||
lean_object* x_21;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_21);
|
||||
lean_ctor_set(x_19, 0, x_16);
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_20);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_17);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
lean_object* x_22; lean_object* x_23;
|
||||
x_22 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_19);
|
||||
x_23 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_16);
|
||||
lean_ctor_set(x_23, 1, x_22);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
lean_dec(x_17);
|
||||
x_25 = !lean_is_exclusive(x_20);
|
||||
if (x_25 == 0)
|
||||
uint8_t x_24;
|
||||
lean_dec(x_16);
|
||||
x_24 = !lean_is_exclusive(x_19);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
return x_20;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_20, 0);
|
||||
x_27 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_27);
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_25 = lean_ctor_get(x_19, 0);
|
||||
x_26 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_20);
|
||||
x_28 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
return x_28;
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_19);
|
||||
x_27 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_25);
|
||||
lean_ctor_set(x_27, 1, x_26);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_10);
|
||||
lean_dec_ref(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_4);
|
||||
return x_16;
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_3);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_10);
|
||||
lean_dec_ref(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_4);
|
||||
return x_12;
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_3);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -25588,7 +25588,7 @@ return x_20;
|
|||
}
|
||||
else
|
||||
{
|
||||
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_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_21 = l_Lean_Elab_Term_elabPrivateDecl___closed__3;
|
||||
x_22 = l_Lean_mkAuxDeclName___at___Lean_Elab_Term_mkAuxName_spec__0___redArg(x_21, x_8, x_16);
|
||||
x_23 = lean_ctor_get(x_22, 0);
|
||||
|
|
@ -25596,27 +25596,16 @@ lean_inc(x_23);
|
|||
x_24 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec_ref(x_22);
|
||||
x_25 = lean_box(x_11);
|
||||
x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabPrivateDecl___lam__0___boxed), 11, 4);
|
||||
lean_closure_set(x_26, 0, x_19);
|
||||
lean_closure_set(x_26, 1, x_2);
|
||||
lean_closure_set(x_26, 2, x_25);
|
||||
lean_closure_set(x_26, 3, x_23);
|
||||
x_27 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_24);
|
||||
return x_27;
|
||||
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabPrivateDecl___lam__0), 10, 3);
|
||||
lean_closure_set(x_25, 0, x_19);
|
||||
lean_closure_set(x_25, 1, x_2);
|
||||
lean_closure_set(x_25, 2, x_23);
|
||||
x_26 = l_Lean_withoutExporting___at___Lean_Meta_abstractProof___at___Lean_Elab_Term_runTactic_spec__0_spec__0___redArg(x_25, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_24);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPrivateDecl___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = lean_unbox(x_3);
|
||||
x_13 = l_Lean_Elab_Term_elabPrivateDecl___lam__0(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_elabPrivateDecl___regBuiltin_Lean_Elab_Term_elabPrivateDecl__1___closed__0() {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
755
stage0/stdlib/Lean/Elab/ComputedFields.c
generated
755
stage0/stdlib/Lean/Elab/ComputedFields.c
generated
|
|
@ -57,7 +57,7 @@ lean_object* lean_array_push(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_whnfHeadPred___at___Lean_Elab_ComputedFields_getComputedFieldValue_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_ComputedFields_computedFieldAttr___regBuiltin_Lean_Elab_ComputedFields_computedFieldAttr_docString__1___closed__0;
|
||||
static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_overrideComputedFields_spec__2_spec__2___closed__0;
|
||||
static lean_object* l_Lean_Elab_ComputedFields_overrideCasesOn___lam__2___closed__2;
|
||||
|
|
@ -251,6 +251,7 @@ LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields
|
|||
static lean_object* l_Lean_Elab_ComputedFields_computedFieldAttr___regBuiltin_Lean_Elab_ComputedFields_computedFieldAttr_declRange__3___closed__4;
|
||||
static lean_object* l_Lean_Elab_ComputedFields_initFn___closed__5____x40_Lean_Elab_ComputedFields___hyg_5_;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_ComputedFields_overrideConstructors_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_ComputedFields_mkUnsafeCastTo___closed__0;
|
||||
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_initFn___lam__0____x40_Lean_Elab_ComputedFields___hyg_5____boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -306,11 +307,12 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_lo
|
|||
lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t);
|
||||
static lean_object* l_Lean_getConstInfoCtor___at___Lean_Elab_ComputedFields_isScalarField_spec__0___closed__1;
|
||||
static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_validateComputedFields_spec__2_spec__2___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_instantiateForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_overrideComputedFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___Lean_Meta_withLocalDeclD___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__3_spec__3___redArg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_getConstInfo___at_____private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getConfig___redArg(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_validateComputedFields_spec__2_spec__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_ComputedFields_overrideComputedFields_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -6159,384 +6161,393 @@ return x_64;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(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, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_8 = lean_st_ref_get(x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
x_11 = lean_ctor_get(x_8, 1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_10 = lean_st_ref_get(x_7, x_8);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec_ref(x_8);
|
||||
x_12 = lean_ctor_get_uint8(x_10, sizeof(void*)*8);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec_ref(x_10);
|
||||
x_13 = lean_st_ref_take(x_6, x_11);
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec_ref(x_13);
|
||||
x_16 = !lean_is_exclusive(x_14);
|
||||
if (x_16 == 0)
|
||||
x_14 = lean_ctor_get_uint8(x_12, sizeof(void*)*8);
|
||||
lean_dec_ref(x_12);
|
||||
x_15 = lean_st_ref_take(x_7, x_13);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec_ref(x_15);
|
||||
x_18 = !lean_is_exclusive(x_16);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; uint8_t 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; uint8_t x_27;
|
||||
x_17 = lean_ctor_get(x_14, 0);
|
||||
x_18 = lean_ctor_get(x_14, 5);
|
||||
lean_dec(x_18);
|
||||
x_19 = 0;
|
||||
x_20 = l_Lean_Environment_setExporting(x_17, x_19);
|
||||
x_21 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2;
|
||||
lean_ctor_set(x_14, 5, x_21);
|
||||
lean_ctor_set(x_14, 0, x_20);
|
||||
x_22 = lean_st_ref_set(x_6, x_14, x_15);
|
||||
x_23 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec_ref(x_22);
|
||||
x_24 = lean_st_ref_take(x_4, x_23);
|
||||
x_25 = lean_ctor_get(x_24, 0);
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29;
|
||||
x_19 = lean_ctor_get(x_16, 0);
|
||||
x_20 = lean_ctor_get(x_16, 5);
|
||||
lean_dec(x_20);
|
||||
x_21 = 0;
|
||||
x_22 = l_Lean_Environment_setExporting(x_19, x_21);
|
||||
x_23 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2;
|
||||
lean_ctor_set(x_16, 5, x_23);
|
||||
lean_ctor_set(x_16, 0, x_22);
|
||||
x_24 = lean_st_ref_set(x_7, x_16, x_17);
|
||||
x_25 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec_ref(x_24);
|
||||
x_27 = !lean_is_exclusive(x_25);
|
||||
if (x_27 == 0)
|
||||
x_26 = lean_st_ref_take(x_5, x_25);
|
||||
x_27 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_27);
|
||||
x_28 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec_ref(x_26);
|
||||
x_29 = !lean_is_exclusive(x_27);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_28 = lean_ctor_get(x_25, 1);
|
||||
lean_dec(x_28);
|
||||
x_29 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7;
|
||||
lean_ctor_set(x_25, 1, x_29);
|
||||
x_30 = lean_st_ref_set(x_4, x_25, x_26);
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec_ref(x_30);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
x_32 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_31);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37;
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_30 = lean_ctor_get(x_27, 1);
|
||||
lean_dec(x_30);
|
||||
x_31 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7;
|
||||
lean_ctor_set(x_27, 1, x_31);
|
||||
x_32 = lean_st_ref_set(x_5, x_27, x_28);
|
||||
x_33 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_33);
|
||||
x_34 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec_ref(x_32);
|
||||
lean_inc(x_33);
|
||||
x_35 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
x_36 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_29, x_35, x_34);
|
||||
lean_dec_ref(x_35);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_37 = !lean_is_exclusive(x_36);
|
||||
if (x_37 == 0)
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_5);
|
||||
x_34 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_33);
|
||||
if (lean_obj_tag(x_34) == 0)
|
||||
{
|
||||
lean_object* x_38;
|
||||
x_38 = lean_ctor_get(x_36, 0);
|
||||
lean_dec(x_38);
|
||||
lean_ctor_set(x_36, 0, x_33);
|
||||
return x_36;
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39;
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec_ref(x_34);
|
||||
lean_inc(x_35);
|
||||
x_37 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
x_38 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_31, x_37, x_36);
|
||||
lean_dec_ref(x_37);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
x_39 = !lean_is_exclusive(x_38);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40;
|
||||
x_40 = lean_ctor_get(x_38, 0);
|
||||
lean_dec(x_40);
|
||||
lean_ctor_set(x_38, 0, x_35);
|
||||
return x_38;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40;
|
||||
x_39 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_36);
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_33);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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_32, 0);
|
||||
lean_object* x_41; lean_object* x_42;
|
||||
x_41 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec_ref(x_32);
|
||||
x_43 = lean_box(0);
|
||||
x_44 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_29, x_43, x_42);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_45 = !lean_is_exclusive(x_44);
|
||||
if (x_45 == 0)
|
||||
lean_dec(x_38);
|
||||
x_42 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_35);
|
||||
lean_ctor_set(x_42, 1, x_41);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46;
|
||||
x_46 = lean_ctor_get(x_44, 0);
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47;
|
||||
x_43 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_44);
|
||||
lean_dec_ref(x_34);
|
||||
x_45 = lean_box(0);
|
||||
x_46 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_31, x_45, x_44);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
x_47 = !lean_is_exclusive(x_46);
|
||||
if (x_47 == 0)
|
||||
{
|
||||
lean_object* x_48;
|
||||
x_48 = lean_ctor_get(x_46, 0);
|
||||
lean_dec(x_48);
|
||||
lean_ctor_set_tag(x_46, 1);
|
||||
lean_ctor_set(x_46, 0, x_43);
|
||||
return x_46;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50;
|
||||
x_49 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_46);
|
||||
lean_ctor_set_tag(x_44, 1);
|
||||
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(1, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_41);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
return x_48;
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_43);
|
||||
lean_ctor_set(x_50, 1, x_49);
|
||||
return x_50;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_49 = lean_ctor_get(x_25, 0);
|
||||
x_50 = lean_ctor_get(x_25, 2);
|
||||
x_51 = lean_ctor_get(x_25, 3);
|
||||
x_52 = lean_ctor_get(x_25, 4);
|
||||
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;
|
||||
x_51 = lean_ctor_get(x_27, 0);
|
||||
x_52 = lean_ctor_get(x_27, 2);
|
||||
x_53 = lean_ctor_get(x_27, 3);
|
||||
x_54 = lean_ctor_get(x_27, 4);
|
||||
lean_inc(x_54);
|
||||
lean_inc(x_53);
|
||||
lean_inc(x_52);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_25);
|
||||
x_53 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7;
|
||||
x_54 = lean_alloc_ctor(0, 5, 0);
|
||||
lean_ctor_set(x_54, 0, x_49);
|
||||
lean_ctor_set(x_54, 1, x_53);
|
||||
lean_ctor_set(x_54, 2, x_50);
|
||||
lean_ctor_set(x_54, 3, x_51);
|
||||
lean_ctor_set(x_54, 4, x_52);
|
||||
x_55 = lean_st_ref_set(x_4, x_54, x_26);
|
||||
x_56 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_56);
|
||||
lean_dec_ref(x_55);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
x_57 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_56);
|
||||
if (lean_obj_tag(x_57) == 0)
|
||||
{
|
||||
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_58 = lean_ctor_get(x_57, 0);
|
||||
lean_dec(x_27);
|
||||
x_55 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7;
|
||||
x_56 = lean_alloc_ctor(0, 5, 0);
|
||||
lean_ctor_set(x_56, 0, x_51);
|
||||
lean_ctor_set(x_56, 1, x_55);
|
||||
lean_ctor_set(x_56, 2, x_52);
|
||||
lean_ctor_set(x_56, 3, x_53);
|
||||
lean_ctor_set(x_56, 4, x_54);
|
||||
x_57 = lean_st_ref_set(x_5, x_56, x_28);
|
||||
x_58 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_58);
|
||||
x_59 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec_ref(x_57);
|
||||
lean_inc(x_58);
|
||||
x_60 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
x_61 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_53, x_60, x_59);
|
||||
lean_dec_ref(x_60);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_62 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_62);
|
||||
if (lean_is_exclusive(x_61)) {
|
||||
lean_ctor_release(x_61, 0);
|
||||
lean_ctor_release(x_61, 1);
|
||||
x_63 = x_61;
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_5);
|
||||
x_59 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_58);
|
||||
if (lean_obj_tag(x_59) == 0)
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
x_60 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec_ref(x_59);
|
||||
lean_inc(x_60);
|
||||
x_62 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
x_63 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_55, x_62, x_61);
|
||||
lean_dec_ref(x_62);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
x_64 = lean_ctor_get(x_63, 1);
|
||||
lean_inc(x_64);
|
||||
if (lean_is_exclusive(x_63)) {
|
||||
lean_ctor_release(x_63, 0);
|
||||
lean_ctor_release(x_63, 1);
|
||||
x_65 = x_63;
|
||||
} else {
|
||||
lean_dec_ref(x_61);
|
||||
x_63 = lean_box(0);
|
||||
lean_dec_ref(x_63);
|
||||
x_65 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_63)) {
|
||||
x_64 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_65)) {
|
||||
x_66 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_64 = x_63;
|
||||
x_66 = x_65;
|
||||
}
|
||||
lean_ctor_set(x_64, 0, x_58);
|
||||
lean_ctor_set(x_64, 1, x_62);
|
||||
return x_64;
|
||||
lean_ctor_set(x_66, 0, x_60);
|
||||
lean_ctor_set(x_66, 1, x_64);
|
||||
return x_66;
|
||||
}
|
||||
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; lean_object* x_71;
|
||||
x_65 = lean_ctor_get(x_57, 0);
|
||||
lean_inc(x_65);
|
||||
x_66 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_66);
|
||||
lean_dec_ref(x_57);
|
||||
x_67 = lean_box(0);
|
||||
x_68 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_21, x_4, x_53, x_67, x_66);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_69 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_69);
|
||||
if (lean_is_exclusive(x_68)) {
|
||||
lean_ctor_release(x_68, 0);
|
||||
lean_ctor_release(x_68, 1);
|
||||
x_70 = x_68;
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73;
|
||||
x_67 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_68);
|
||||
lean_dec_ref(x_59);
|
||||
x_69 = lean_box(0);
|
||||
x_70 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_23, x_5, x_55, x_69, x_68);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
x_71 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_71);
|
||||
if (lean_is_exclusive(x_70)) {
|
||||
lean_ctor_release(x_70, 0);
|
||||
lean_ctor_release(x_70, 1);
|
||||
x_72 = x_70;
|
||||
} else {
|
||||
lean_dec_ref(x_68);
|
||||
x_70 = lean_box(0);
|
||||
lean_dec_ref(x_70);
|
||||
x_72 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_70)) {
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_72)) {
|
||||
x_73 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_71 = x_70;
|
||||
lean_ctor_set_tag(x_71, 1);
|
||||
x_73 = x_72;
|
||||
lean_ctor_set_tag(x_73, 1);
|
||||
}
|
||||
lean_ctor_set(x_71, 0, x_65);
|
||||
lean_ctor_set(x_71, 1, x_69);
|
||||
return x_71;
|
||||
lean_ctor_set(x_73, 0, x_67);
|
||||
lean_ctor_set(x_73, 1, x_71);
|
||||
return x_73;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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; uint8_t 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; 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_72 = lean_ctor_get(x_14, 0);
|
||||
x_73 = lean_ctor_get(x_14, 1);
|
||||
x_74 = lean_ctor_get(x_14, 2);
|
||||
x_75 = lean_ctor_get(x_14, 3);
|
||||
x_76 = lean_ctor_get(x_14, 4);
|
||||
x_77 = lean_ctor_get(x_14, 6);
|
||||
x_78 = lean_ctor_get(x_14, 7);
|
||||
x_79 = lean_ctor_get(x_14, 8);
|
||||
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; uint8_t 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;
|
||||
x_74 = lean_ctor_get(x_16, 0);
|
||||
x_75 = lean_ctor_get(x_16, 1);
|
||||
x_76 = lean_ctor_get(x_16, 2);
|
||||
x_77 = lean_ctor_get(x_16, 3);
|
||||
x_78 = lean_ctor_get(x_16, 4);
|
||||
x_79 = lean_ctor_get(x_16, 6);
|
||||
x_80 = lean_ctor_get(x_16, 7);
|
||||
x_81 = lean_ctor_get(x_16, 8);
|
||||
lean_inc(x_81);
|
||||
lean_inc(x_80);
|
||||
lean_inc(x_79);
|
||||
lean_inc(x_78);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_inc(x_75);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_14);
|
||||
x_80 = 0;
|
||||
x_81 = l_Lean_Environment_setExporting(x_72, x_80);
|
||||
x_82 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2;
|
||||
x_83 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_83, 0, x_81);
|
||||
lean_ctor_set(x_83, 1, x_73);
|
||||
lean_ctor_set(x_83, 2, x_74);
|
||||
lean_ctor_set(x_83, 3, x_75);
|
||||
lean_ctor_set(x_83, 4, x_76);
|
||||
lean_ctor_set(x_83, 5, x_82);
|
||||
lean_ctor_set(x_83, 6, x_77);
|
||||
lean_ctor_set(x_83, 7, x_78);
|
||||
lean_ctor_set(x_83, 8, x_79);
|
||||
x_84 = lean_st_ref_set(x_6, x_83, x_15);
|
||||
x_85 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_85);
|
||||
lean_dec_ref(x_84);
|
||||
x_86 = lean_st_ref_take(x_4, x_85);
|
||||
x_87 = lean_ctor_get(x_86, 0);
|
||||
lean_dec(x_16);
|
||||
x_82 = 0;
|
||||
x_83 = l_Lean_Environment_setExporting(x_74, x_82);
|
||||
x_84 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__2;
|
||||
x_85 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_85, 0, x_83);
|
||||
lean_ctor_set(x_85, 1, x_75);
|
||||
lean_ctor_set(x_85, 2, x_76);
|
||||
lean_ctor_set(x_85, 3, x_77);
|
||||
lean_ctor_set(x_85, 4, x_78);
|
||||
lean_ctor_set(x_85, 5, x_84);
|
||||
lean_ctor_set(x_85, 6, x_79);
|
||||
lean_ctor_set(x_85, 7, x_80);
|
||||
lean_ctor_set(x_85, 8, x_81);
|
||||
x_86 = lean_st_ref_set(x_7, x_85, x_17);
|
||||
x_87 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_87);
|
||||
x_88 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_88);
|
||||
lean_dec_ref(x_86);
|
||||
x_89 = lean_ctor_get(x_87, 0);
|
||||
lean_inc_ref(x_89);
|
||||
x_90 = lean_ctor_get(x_87, 2);
|
||||
x_88 = lean_st_ref_take(x_5, x_87);
|
||||
x_89 = lean_ctor_get(x_88, 0);
|
||||
lean_inc(x_89);
|
||||
x_90 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_90);
|
||||
x_91 = lean_ctor_get(x_87, 3);
|
||||
lean_dec_ref(x_88);
|
||||
x_91 = lean_ctor_get(x_89, 0);
|
||||
lean_inc_ref(x_91);
|
||||
x_92 = lean_ctor_get(x_87, 4);
|
||||
lean_inc_ref(x_92);
|
||||
if (lean_is_exclusive(x_87)) {
|
||||
lean_ctor_release(x_87, 0);
|
||||
lean_ctor_release(x_87, 1);
|
||||
lean_ctor_release(x_87, 2);
|
||||
lean_ctor_release(x_87, 3);
|
||||
lean_ctor_release(x_87, 4);
|
||||
x_93 = x_87;
|
||||
x_92 = lean_ctor_get(x_89, 2);
|
||||
lean_inc(x_92);
|
||||
x_93 = lean_ctor_get(x_89, 3);
|
||||
lean_inc_ref(x_93);
|
||||
x_94 = lean_ctor_get(x_89, 4);
|
||||
lean_inc_ref(x_94);
|
||||
if (lean_is_exclusive(x_89)) {
|
||||
lean_ctor_release(x_89, 0);
|
||||
lean_ctor_release(x_89, 1);
|
||||
lean_ctor_release(x_89, 2);
|
||||
lean_ctor_release(x_89, 3);
|
||||
lean_ctor_release(x_89, 4);
|
||||
x_95 = x_89;
|
||||
} else {
|
||||
lean_dec_ref(x_87);
|
||||
x_93 = lean_box(0);
|
||||
lean_dec_ref(x_89);
|
||||
x_95 = lean_box(0);
|
||||
}
|
||||
x_94 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7;
|
||||
if (lean_is_scalar(x_93)) {
|
||||
x_95 = lean_alloc_ctor(0, 5, 0);
|
||||
x_96 = l_Lean_setEnv___at___Lean_setImplementedBy___at___Lean_Elab_ComputedFields_overrideCasesOn_spec__6_spec__6___redArg___closed__7;
|
||||
if (lean_is_scalar(x_95)) {
|
||||
x_97 = lean_alloc_ctor(0, 5, 0);
|
||||
} else {
|
||||
x_95 = x_93;
|
||||
x_97 = x_95;
|
||||
}
|
||||
lean_ctor_set(x_95, 0, x_89);
|
||||
lean_ctor_set(x_95, 1, x_94);
|
||||
lean_ctor_set(x_95, 2, x_90);
|
||||
lean_ctor_set(x_95, 3, x_91);
|
||||
lean_ctor_set(x_95, 4, x_92);
|
||||
x_96 = lean_st_ref_set(x_4, x_95, x_88);
|
||||
x_97 = lean_ctor_get(x_96, 1);
|
||||
lean_inc(x_97);
|
||||
lean_dec_ref(x_96);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
x_98 = lean_apply_6(x_1, x_2, x_3, x_4, x_5, x_6, x_97);
|
||||
if (lean_obj_tag(x_98) == 0)
|
||||
{
|
||||
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;
|
||||
x_99 = lean_ctor_get(x_98, 0);
|
||||
lean_ctor_set(x_97, 0, x_91);
|
||||
lean_ctor_set(x_97, 1, x_96);
|
||||
lean_ctor_set(x_97, 2, x_92);
|
||||
lean_ctor_set(x_97, 3, x_93);
|
||||
lean_ctor_set(x_97, 4, x_94);
|
||||
x_98 = lean_st_ref_set(x_5, x_97, x_90);
|
||||
x_99 = lean_ctor_get(x_98, 1);
|
||||
lean_inc(x_99);
|
||||
x_100 = lean_ctor_get(x_98, 1);
|
||||
lean_inc(x_100);
|
||||
lean_dec_ref(x_98);
|
||||
lean_inc(x_99);
|
||||
x_101 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_101, 0, x_99);
|
||||
x_102 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_82, x_4, x_94, x_101, x_100);
|
||||
lean_dec_ref(x_101);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_103 = lean_ctor_get(x_102, 1);
|
||||
lean_inc(x_103);
|
||||
if (lean_is_exclusive(x_102)) {
|
||||
lean_ctor_release(x_102, 0);
|
||||
lean_ctor_release(x_102, 1);
|
||||
x_104 = x_102;
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_5);
|
||||
x_100 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_99);
|
||||
if (lean_obj_tag(x_100) == 0)
|
||||
{
|
||||
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;
|
||||
x_101 = lean_ctor_get(x_100, 0);
|
||||
lean_inc(x_101);
|
||||
x_102 = lean_ctor_get(x_100, 1);
|
||||
lean_inc(x_102);
|
||||
lean_dec_ref(x_100);
|
||||
lean_inc(x_101);
|
||||
x_103 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_103, 0, x_101);
|
||||
x_104 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_84, x_5, x_96, x_103, x_102);
|
||||
lean_dec_ref(x_103);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
x_105 = lean_ctor_get(x_104, 1);
|
||||
lean_inc(x_105);
|
||||
if (lean_is_exclusive(x_104)) {
|
||||
lean_ctor_release(x_104, 0);
|
||||
lean_ctor_release(x_104, 1);
|
||||
x_106 = x_104;
|
||||
} else {
|
||||
lean_dec_ref(x_102);
|
||||
x_104 = lean_box(0);
|
||||
lean_dec_ref(x_104);
|
||||
x_106 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_104)) {
|
||||
x_105 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_106)) {
|
||||
x_107 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_105 = x_104;
|
||||
x_107 = x_106;
|
||||
}
|
||||
lean_ctor_set(x_105, 0, x_99);
|
||||
lean_ctor_set(x_105, 1, x_103);
|
||||
return x_105;
|
||||
lean_ctor_set(x_107, 0, x_101);
|
||||
lean_ctor_set(x_107, 1, x_105);
|
||||
return x_107;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112;
|
||||
x_106 = lean_ctor_get(x_98, 0);
|
||||
lean_inc(x_106);
|
||||
x_107 = lean_ctor_get(x_98, 1);
|
||||
lean_inc(x_107);
|
||||
lean_dec_ref(x_98);
|
||||
x_108 = lean_box(0);
|
||||
x_109 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_6, x_12, x_82, x_4, x_94, x_108, x_107);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_110 = lean_ctor_get(x_109, 1);
|
||||
lean_inc(x_110);
|
||||
if (lean_is_exclusive(x_109)) {
|
||||
lean_ctor_release(x_109, 0);
|
||||
lean_ctor_release(x_109, 1);
|
||||
x_111 = x_109;
|
||||
lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114;
|
||||
x_108 = lean_ctor_get(x_100, 0);
|
||||
lean_inc(x_108);
|
||||
x_109 = lean_ctor_get(x_100, 1);
|
||||
lean_inc(x_109);
|
||||
lean_dec_ref(x_100);
|
||||
x_110 = lean_box(0);
|
||||
x_111 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___lam__0(x_7, x_14, x_84, x_5, x_96, x_110, x_109);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_7);
|
||||
x_112 = lean_ctor_get(x_111, 1);
|
||||
lean_inc(x_112);
|
||||
if (lean_is_exclusive(x_111)) {
|
||||
lean_ctor_release(x_111, 0);
|
||||
lean_ctor_release(x_111, 1);
|
||||
x_113 = x_111;
|
||||
} else {
|
||||
lean_dec_ref(x_109);
|
||||
x_111 = lean_box(0);
|
||||
lean_dec_ref(x_111);
|
||||
x_113 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_111)) {
|
||||
x_112 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_113)) {
|
||||
x_114 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_112 = x_111;
|
||||
lean_ctor_set_tag(x_112, 1);
|
||||
x_114 = x_113;
|
||||
lean_ctor_set_tag(x_114, 1);
|
||||
}
|
||||
lean_ctor_set(x_112, 0, x_106);
|
||||
lean_ctor_set(x_112, 1, x_110);
|
||||
return x_112;
|
||||
lean_ctor_set(x_114, 0, x_108);
|
||||
lean_ctor_set(x_114, 1, x_112);
|
||||
return x_114;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
lean_object* x_10;
|
||||
x_10 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2_spec__2___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
|
|
@ -6628,7 +6639,7 @@ return x_26;
|
|||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2_spec__2___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, 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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20;
|
||||
lean_inc_ref(x_1);
|
||||
x_16 = l_Array_append___redArg(x_1, x_8);
|
||||
lean_inc_ref(x_2);
|
||||
|
|
@ -6638,59 +6649,59 @@ x_18 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at___List_forIn_x27_lo
|
|||
lean_closure_set(x_18, 0, x_3);
|
||||
lean_closure_set(x_18, 1, x_4);
|
||||
lean_closure_set(x_18, 2, x_17);
|
||||
x_19 = 1;
|
||||
lean_inc(x_14);
|
||||
lean_inc_ref(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc_ref(x_11);
|
||||
lean_inc_ref(x_10);
|
||||
x_19 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_18, x_10, x_11, x_12, x_13, x_14, x_15);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
x_20 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_18, x_19, x_10, x_11, x_12, x_13, x_14, x_15);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get(x_19, 1);
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec_ref(x_19);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec_ref(x_20);
|
||||
lean_inc(x_14);
|
||||
lean_inc_ref(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc_ref(x_11);
|
||||
x_22 = lean_infer_type(x_2, x_11, x_12, x_13, x_14, x_21);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
x_23 = lean_infer_type(x_2, x_11, x_12, x_13, x_14, x_22);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_23 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_23);
|
||||
x_24 = lean_ctor_get(x_22, 1);
|
||||
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;
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec_ref(x_22);
|
||||
x_25 = l_List_mapM_loop___at___Lean_Elab_ComputedFields_mkImplType_spec__1___lam__0___closed__1;
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec_ref(x_23);
|
||||
x_26 = l_List_mapM_loop___at___Lean_Elab_ComputedFields_mkImplType_spec__1___lam__0___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_26 = l_Lean_Name_append(x_3, x_25);
|
||||
x_27 = l_Lean_Expr_const___override(x_26, x_5);
|
||||
x_28 = l_Array_append___redArg(x_1, x_20);
|
||||
lean_dec(x_20);
|
||||
x_29 = l_Array_append___redArg(x_28, x_8);
|
||||
x_30 = l_Lean_mkAppN(x_27, x_29);
|
||||
lean_dec_ref(x_29);
|
||||
x_27 = l_Lean_Name_append(x_3, x_26);
|
||||
x_28 = l_Lean_Expr_const___override(x_27, x_5);
|
||||
x_29 = l_Array_append___redArg(x_1, x_21);
|
||||
lean_dec(x_21);
|
||||
x_30 = l_Array_append___redArg(x_29, x_8);
|
||||
x_31 = l_Lean_mkAppN(x_28, x_30);
|
||||
lean_dec_ref(x_30);
|
||||
lean_inc(x_14);
|
||||
lean_inc_ref(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc_ref(x_11);
|
||||
x_31 = l_Lean_Elab_ComputedFields_mkUnsafeCastTo(x_9, x_30, x_11, x_12, x_13, x_14, x_24);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
x_32 = l_Lean_Elab_ComputedFields_mkUnsafeCastTo(x_9, x_31, x_11, x_12, x_13, x_14, x_25);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37;
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37;
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec_ref(x_31);
|
||||
x_34 = 0;
|
||||
x_35 = 1;
|
||||
x_34 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec_ref(x_32);
|
||||
x_35 = 0;
|
||||
x_36 = 1;
|
||||
x_37 = l_Lean_Meta_mkLambdaFVars(x_16, x_32, x_34, x_35, x_34, x_35, x_36, x_11, x_12, x_13, x_14, x_33);
|
||||
x_37 = l_Lean_Meta_mkLambdaFVars(x_16, x_33, x_35, x_19, x_35, x_19, x_36, x_11, x_12, x_13, x_14, x_34);
|
||||
if (lean_obj_tag(x_37) == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
|
|
@ -6706,7 +6717,7 @@ lean_inc(x_41);
|
|||
x_42 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_6);
|
||||
lean_ctor_set(x_42, 2, x_23);
|
||||
lean_ctor_set(x_42, 2, x_24);
|
||||
x_43 = lean_box(0);
|
||||
x_44 = 0;
|
||||
x_45 = lean_box(0);
|
||||
|
|
@ -6847,7 +6858,7 @@ return x_49;
|
|||
else
|
||||
{
|
||||
uint8_t x_67;
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_14);
|
||||
lean_dec_ref(x_13);
|
||||
lean_dec(x_12);
|
||||
|
|
@ -6878,7 +6889,7 @@ return x_70;
|
|||
else
|
||||
{
|
||||
uint8_t x_71;
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_24);
|
||||
lean_dec_ref(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_dec_ref(x_13);
|
||||
|
|
@ -6887,19 +6898,19 @@ lean_dec_ref(x_11);
|
|||
lean_dec_ref(x_10);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_3);
|
||||
x_71 = !lean_is_exclusive(x_31);
|
||||
x_71 = !lean_is_exclusive(x_32);
|
||||
if (x_71 == 0)
|
||||
{
|
||||
return x_31;
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_31, 0);
|
||||
x_73 = lean_ctor_get(x_31, 1);
|
||||
x_72 = lean_ctor_get(x_32, 0);
|
||||
x_73 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_31);
|
||||
lean_dec(x_32);
|
||||
x_74 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_74, 0, x_72);
|
||||
lean_ctor_set(x_74, 1, x_73);
|
||||
|
|
@ -6910,7 +6921,7 @@ return x_74;
|
|||
else
|
||||
{
|
||||
uint8_t x_75;
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_21);
|
||||
lean_dec_ref(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_dec_ref(x_13);
|
||||
|
|
@ -6922,19 +6933,19 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_1);
|
||||
x_75 = !lean_is_exclusive(x_22);
|
||||
x_75 = !lean_is_exclusive(x_23);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
return x_22;
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78;
|
||||
x_76 = lean_ctor_get(x_22, 0);
|
||||
x_77 = lean_ctor_get(x_22, 1);
|
||||
x_76 = lean_ctor_get(x_23, 0);
|
||||
x_77 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_23);
|
||||
x_78 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_78, 0, x_76);
|
||||
lean_ctor_set(x_78, 1, x_77);
|
||||
|
|
@ -6957,19 +6968,19 @@ lean_dec(x_5);
|
|||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_79 = !lean_is_exclusive(x_19);
|
||||
x_79 = !lean_is_exclusive(x_20);
|
||||
if (x_79 == 0)
|
||||
{
|
||||
return x_19;
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82;
|
||||
x_80 = lean_ctor_get(x_19, 0);
|
||||
x_81 = lean_ctor_get(x_19, 1);
|
||||
x_80 = lean_ctor_get(x_20, 0);
|
||||
x_81 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_81);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_20);
|
||||
x_82 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_82, 0, x_80);
|
||||
lean_ctor_set(x_82, 1, x_81);
|
||||
|
|
@ -7344,6 +7355,24 @@ lean_dec(x_1);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_9; lean_object* x_10;
|
||||
x_9 = lean_unbox(x_2);
|
||||
x_10 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
x_10 = lean_unbox(x_3);
|
||||
x_11 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Elab_ComputedFields_overrideConstructors_spec__2_spec__2___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -7804,7 +7833,7 @@ lean_inc_ref(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc_ref(x_16);
|
||||
lean_inc_ref(x_15);
|
||||
x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_15, x_16, x_17, x_18, x_19, x_41);
|
||||
x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_32, x_15, x_16, x_17, x_18, x_19, x_41);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
|
|
@ -8561,7 +8590,7 @@ lean_inc_ref(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc_ref(x_16);
|
||||
lean_inc_ref(x_15);
|
||||
x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_15, x_16, x_17, x_18, x_19, x_161);
|
||||
x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_32, x_15, x_16, x_17, x_18, x_19, x_161);
|
||||
if (lean_obj_tag(x_175) == 0)
|
||||
{
|
||||
lean_object* x_176; lean_object* x_177; lean_object* x_178;
|
||||
|
|
@ -9345,7 +9374,7 @@ lean_inc_ref(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc_ref(x_16);
|
||||
lean_inc_ref(x_15);
|
||||
x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_15, x_16, x_17, x_18, x_19, x_283);
|
||||
x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_32, x_15, x_16, x_17, x_18, x_19, x_283);
|
||||
if (lean_obj_tag(x_299) == 0)
|
||||
{
|
||||
lean_object* x_300; lean_object* x_301; lean_object* x_302;
|
||||
|
|
@ -10230,7 +10259,7 @@ lean_inc_ref(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc_ref(x_16);
|
||||
lean_inc_ref(x_15);
|
||||
x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_15, x_16, x_17, x_18, x_19, x_41);
|
||||
x_55 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_54, x_32, x_15, x_16, x_17, x_18, x_19, x_41);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
|
|
@ -10987,7 +11016,7 @@ lean_inc_ref(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc_ref(x_16);
|
||||
lean_inc_ref(x_15);
|
||||
x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_15, x_16, x_17, x_18, x_19, x_161);
|
||||
x_175 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_174, x_32, x_15, x_16, x_17, x_18, x_19, x_161);
|
||||
if (lean_obj_tag(x_175) == 0)
|
||||
{
|
||||
lean_object* x_176; lean_object* x_177; lean_object* x_178;
|
||||
|
|
@ -11771,7 +11800,7 @@ lean_inc_ref(x_18);
|
|||
lean_inc(x_17);
|
||||
lean_inc_ref(x_16);
|
||||
lean_inc_ref(x_15);
|
||||
x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_15, x_16, x_17, x_18, x_19, x_283);
|
||||
x_299 = l_Lean_withoutExporting___at___Lean_Elab_ComputedFields_overrideConstructors_spec__1___redArg(x_298, x_32, x_15, x_16, x_17, x_18, x_19, x_283);
|
||||
if (lean_obj_tag(x_299) == 0)
|
||||
{
|
||||
lean_object* x_300; lean_object* x_301; lean_object* x_302;
|
||||
|
|
|
|||
4140
stage0/stdlib/Lean/Elab/Declaration.c
generated
4140
stage0/stdlib/Lean/Elab/Declaration.c
generated
File diff suppressed because it is too large
Load diff
3001
stage0/stdlib/Lean/Elab/Deriving/BEq.c
generated
3001
stage0/stdlib/Lean/Elab/Deriving/BEq.c
generated
File diff suppressed because it is too large
Load diff
639
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
639
stage0/stdlib/Lean/Elab/Deriving/Basic.c
generated
|
|
@ -27,12 +27,13 @@ extern lean_object* l_Lean_declRangeExt;
|
|||
static lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_name_append_after(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_processDefDeriving___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_658_(lean_object*);
|
||||
uint8_t l_Lean_Exception_isInterrupt(lean_object*);
|
||||
static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__4;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_defaultHandler___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_derivingHandlersRef;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_tryApplyDefHandler(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -45,18 +46,22 @@ static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving
|
|||
lean_object* l_Lean_MessageData_ofList(lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
static lean_object* l_Lean_Elab_defaultHandler___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_Term_processDefDeriving___closed__0;
|
||||
static lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0___closed__2;
|
||||
lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*, uint8_t);
|
||||
static lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0___closed__3;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_defaultHandler___closed__0;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
lean_object* l_Lean_DeclarationRange_ofStringPositions(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
lean_object* l_Lean_Elab_Command_liftCoreM___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -64,13 +69,13 @@ lean_object* l_Lean_stringToMessageData(lean_object*);
|
|||
lean_object* lean_name_append_before(lean_object*, lean_object*);
|
||||
lean_object* l_List_mapTR_loop___at___Lean_Meta_substCore_spec__3(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1910_(lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
lean_object* l_Lean_initializing(lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDeriving_spec__0___closed__0;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
static lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_elabDeriving(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -87,15 +92,14 @@ static lean_object* l_Lean_Elab_elabDeriving___closed__2;
|
|||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2_spec__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* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__2;
|
||||
static lean_object* l_Lean_Elab_elabDeriving___closed__3;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0(size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_defaultHandler___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__4;
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
|
|
@ -106,27 +110,28 @@ uint8_t lean_is_out_param(lean_object*);
|
|||
lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__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_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_DerivingClassView_applyHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_registerDerivingHandler___closed__2;
|
||||
lean_object* l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1900_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getDeclarationRange_x3f___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_RBNode_find___at___Lean_NameMap_contains_spec__0___redArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appFn_x21(lean_object*);
|
||||
static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__5;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_getOptDerivingClasses___closed__1;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_getRef___redArg(lean_object*, lean_object*);
|
||||
|
|
@ -136,10 +141,10 @@ LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___Lean_Elab_Term_processDefDer
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3(lean_object*);
|
||||
static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__7;
|
||||
lean_object* l_Lean_instantiateMVars___at___Lean_Elab_Term_MVarErrorInfo_logError_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___closed__0;
|
||||
lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getOptDerivingClasses(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at_____aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1_spec__2(uint8_t, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -153,14 +158,15 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__3;
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
static lean_object* l_Lean_Elab_registerDerivingHandler___closed__0;
|
||||
static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MapDeclarationExtension_insert___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___closed__5;
|
||||
static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1_spec__2___redArg___closed__6;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
static lean_object* l_Lean_Elab_defaultHandler___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving_declRange__3___closed__6;
|
||||
|
|
@ -168,8 +174,10 @@ static lean_object* l_Lean_addDeclarationRanges___at___Lean_Elab_addDeclarationR
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_mkSimpCongrTheorem_spec__1_spec__2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___closed__1;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
lean_object* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t);
|
||||
uint8_t l_Lean_isPrivateName(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at___Lean_Elab_Term_processDefDeriving_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_getString_x21(lean_object*);
|
||||
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
|
||||
|
|
@ -177,6 +185,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_
|
|||
lean_object* l_Lean_Elab_liftMacroM___at_____private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_____private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_liftTermElabM___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
|
|
@ -188,17 +198,19 @@ lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_o
|
|||
lean_object* l_Lean_Expr_bindingBody_x21(lean_object*);
|
||||
lean_object* l_Lean_throwError___at___Lean_Elab_Term_throwErrorIfErrors_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___closed__4;
|
||||
static lean_object* l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
lean_object* l_Lean_Elab_logException___at___Lean_Elab_Command_runLinters_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(lean_object*, size_t, size_t);
|
||||
lean_object* l_Lean_addAndCompile(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_elabDeriving___regBuiltin_Lean_Elab_elabDeriving__1___closed__2;
|
||||
uint8_t l_Lean_Exception_isRuntime(lean_object*);
|
||||
static lean_object* l_Lean_Elab_applyDerivingHandlers___closed__0;
|
||||
lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t);
|
||||
uint8_t l_Lean_Expr_isForall(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_applyDerivingHandlers___lam__1___closed__0;
|
||||
|
|
@ -207,7 +219,6 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
|||
lean_object* l_Lean_MessageData_ofName(lean_object*);
|
||||
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Deriving_Basic_0__Lean_Elab_Term_mkInst_x3f_go_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -3878,6 +3889,369 @@ x_11 = l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0___re
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8;
|
||||
x_5 = lean_st_ref_take(x_1, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_7);
|
||||
lean_dec_ref(x_5);
|
||||
x_8 = !lean_is_exclusive(x_6);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_9 = lean_ctor_get(x_6, 0);
|
||||
x_10 = l_Lean_Environment_setExporting(x_9, x_2);
|
||||
lean_ctor_set(x_6, 0, x_10);
|
||||
x_11 = lean_st_ref_set(x_1, x_6, x_7);
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
lean_dec(x_13);
|
||||
x_14 = lean_box(0);
|
||||
lean_ctor_set(x_11, 0, x_14);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_11);
|
||||
x_16 = lean_box(0);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_18 = lean_ctor_get(x_6, 0);
|
||||
x_19 = lean_ctor_get(x_6, 1);
|
||||
x_20 = lean_ctor_get(x_6, 2);
|
||||
x_21 = lean_ctor_get(x_6, 3);
|
||||
x_22 = lean_ctor_get(x_6, 4);
|
||||
x_23 = lean_ctor_get(x_6, 5);
|
||||
x_24 = lean_ctor_get(x_6, 6);
|
||||
x_25 = lean_ctor_get(x_6, 7);
|
||||
x_26 = lean_ctor_get(x_6, 8);
|
||||
x_27 = lean_ctor_get(x_6, 9);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_6);
|
||||
x_28 = l_Lean_Environment_setExporting(x_18, x_2);
|
||||
x_29 = lean_alloc_ctor(0, 10, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_19);
|
||||
lean_ctor_set(x_29, 2, x_20);
|
||||
lean_ctor_set(x_29, 3, x_21);
|
||||
lean_ctor_set(x_29, 4, x_22);
|
||||
lean_ctor_set(x_29, 5, x_23);
|
||||
lean_ctor_set(x_29, 6, x_24);
|
||||
lean_ctor_set(x_29, 7, x_25);
|
||||
lean_ctor_set(x_29, 8, x_26);
|
||||
lean_ctor_set(x_29, 9, x_27);
|
||||
x_30 = lean_st_ref_set(x_1, x_29, x_7);
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
if (lean_is_exclusive(x_30)) {
|
||||
lean_ctor_release(x_30, 0);
|
||||
lean_ctor_release(x_30, 1);
|
||||
x_32 = x_30;
|
||||
} else {
|
||||
lean_dec_ref(x_30);
|
||||
x_32 = lean_box(0);
|
||||
}
|
||||
x_33 = lean_box(0);
|
||||
if (lean_is_scalar(x_32)) {
|
||||
x_34 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_34 = x_32;
|
||||
}
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_31);
|
||||
return x_34;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = lean_apply_3(x_1, x_3, x_4, x_5);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_7 = lean_st_ref_get(x_4, x_5);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc_ref(x_9);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec_ref(x_7);
|
||||
x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8);
|
||||
lean_dec_ref(x_9);
|
||||
x_12 = lean_st_ref_take(x_4, x_10);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec_ref(x_12);
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
x_17 = 0;
|
||||
x_18 = l_Lean_Environment_setExporting(x_16, x_17);
|
||||
lean_ctor_set(x_13, 0, x_18);
|
||||
x_19 = lean_st_ref_set(x_4, x_13, x_14);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec_ref(x_19);
|
||||
lean_inc(x_4);
|
||||
x_21 = lean_apply_3(x_1, x_3, x_4, x_20);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec_ref(x_21);
|
||||
lean_inc(x_22);
|
||||
x_24 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
x_25 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_24, x_23);
|
||||
lean_dec_ref(x_24);
|
||||
lean_dec(x_4);
|
||||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_27);
|
||||
lean_ctor_set(x_25, 0, x_22);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29;
|
||||
x_28 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_25);
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_22);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34;
|
||||
x_30 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec_ref(x_21);
|
||||
x_32 = lean_box(0);
|
||||
x_33 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_32, x_31);
|
||||
lean_dec(x_4);
|
||||
x_34 = !lean_is_exclusive(x_33);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_35;
|
||||
x_35 = lean_ctor_get(x_33, 0);
|
||||
lean_dec(x_35);
|
||||
lean_ctor_set_tag(x_33, 1);
|
||||
lean_ctor_set(x_33, 0, x_30);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37;
|
||||
x_36 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_33);
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_30);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53;
|
||||
x_38 = lean_ctor_get(x_13, 0);
|
||||
x_39 = lean_ctor_get(x_13, 1);
|
||||
x_40 = lean_ctor_get(x_13, 2);
|
||||
x_41 = lean_ctor_get(x_13, 3);
|
||||
x_42 = lean_ctor_get(x_13, 4);
|
||||
x_43 = lean_ctor_get(x_13, 5);
|
||||
x_44 = lean_ctor_get(x_13, 6);
|
||||
x_45 = lean_ctor_get(x_13, 7);
|
||||
x_46 = lean_ctor_get(x_13, 8);
|
||||
x_47 = lean_ctor_get(x_13, 9);
|
||||
lean_inc(x_47);
|
||||
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_inc(x_38);
|
||||
lean_dec(x_13);
|
||||
x_48 = 0;
|
||||
x_49 = l_Lean_Environment_setExporting(x_38, x_48);
|
||||
x_50 = lean_alloc_ctor(0, 10, 0);
|
||||
lean_ctor_set(x_50, 0, x_49);
|
||||
lean_ctor_set(x_50, 1, x_39);
|
||||
lean_ctor_set(x_50, 2, x_40);
|
||||
lean_ctor_set(x_50, 3, x_41);
|
||||
lean_ctor_set(x_50, 4, x_42);
|
||||
lean_ctor_set(x_50, 5, x_43);
|
||||
lean_ctor_set(x_50, 6, x_44);
|
||||
lean_ctor_set(x_50, 7, x_45);
|
||||
lean_ctor_set(x_50, 8, x_46);
|
||||
lean_ctor_set(x_50, 9, x_47);
|
||||
x_51 = lean_st_ref_set(x_4, x_50, x_14);
|
||||
x_52 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_52);
|
||||
lean_dec_ref(x_51);
|
||||
lean_inc(x_4);
|
||||
x_53 = lean_apply_3(x_1, x_3, x_4, x_52);
|
||||
if (lean_obj_tag(x_53) == 0)
|
||||
{
|
||||
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_54 = lean_ctor_get(x_53, 0);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec_ref(x_53);
|
||||
lean_inc(x_54);
|
||||
x_56 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_56, 0, x_54);
|
||||
x_57 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_56, x_55);
|
||||
lean_dec_ref(x_56);
|
||||
lean_dec(x_4);
|
||||
x_58 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_58);
|
||||
if (lean_is_exclusive(x_57)) {
|
||||
lean_ctor_release(x_57, 0);
|
||||
lean_ctor_release(x_57, 1);
|
||||
x_59 = x_57;
|
||||
} else {
|
||||
lean_dec_ref(x_57);
|
||||
x_59 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_59)) {
|
||||
x_60 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_60 = x_59;
|
||||
}
|
||||
lean_ctor_set(x_60, 0, x_54);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
return x_60;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_61 = lean_ctor_get(x_53, 0);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_ctor_get(x_53, 1);
|
||||
lean_inc(x_62);
|
||||
lean_dec_ref(x_53);
|
||||
x_63 = lean_box(0);
|
||||
x_64 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_4, x_11, x_63, x_62);
|
||||
lean_dec(x_4);
|
||||
x_65 = lean_ctor_get(x_64, 1);
|
||||
lean_inc(x_65);
|
||||
if (lean_is_exclusive(x_64)) {
|
||||
lean_ctor_release(x_64, 0);
|
||||
lean_ctor_release(x_64, 1);
|
||||
x_66 = x_64;
|
||||
} else {
|
||||
lean_dec_ref(x_64);
|
||||
x_66 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_66)) {
|
||||
x_67 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_67 = x_66;
|
||||
lean_ctor_set_tag(x_67, 1);
|
||||
}
|
||||
lean_ctor_set(x_67, 0, x_61);
|
||||
lean_ctor_set(x_67, 1, x_65);
|
||||
return x_67;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(lean_object* x_1, size_t x_2, size_t x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = lean_usize_dec_eq(x_2, x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6;
|
||||
x_5 = lean_array_uget(x_1, x_2);
|
||||
x_6 = l_Lean_isPrivateName(x_5);
|
||||
lean_dec(x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
size_t x_7; size_t x_8;
|
||||
x_7 = 1;
|
||||
x_8 = lean_usize_add(x_2, x_7);
|
||||
x_2 = x_8;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_10;
|
||||
x_10 = 0;
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_applyDerivingHandlers___lam__0___closed__0() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4068,20 +4442,60 @@ return x_3;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12;
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t 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;
|
||||
lean_inc(x_1);
|
||||
x_6 = lean_alloc_closure((void*)(l_Lean_Elab_applyDerivingHandlers___lam__0___boxed), 5, 1);
|
||||
lean_closure_set(x_6, 0, x_1);
|
||||
x_7 = l_Lean_Elab_applyDerivingHandlers___closed__2;
|
||||
x_8 = l_Lean_Elab_registerDerivingHandler___closed__2;
|
||||
lean_inc_ref(x_2);
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_Elab_applyDerivingHandlers___lam__1___boxed), 6, 3);
|
||||
lean_closure_set(x_9, 0, x_8);
|
||||
lean_closure_set(x_9, 1, x_1);
|
||||
lean_closure_set(x_9, 2, x_2);
|
||||
x_10 = 1;
|
||||
x_11 = l_Lean_Elab_defaultHandler___closed__4;
|
||||
x_12 = l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___redArg(x_7, x_6, x_9, x_10, x_11, x_3, x_4, x_5);
|
||||
return x_12;
|
||||
x_12 = lean_box(x_10);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_withTraceNode___at___Lean_Elab_Command_runLinters_spec__6___boxed), 9, 6);
|
||||
lean_closure_set(x_13, 0, lean_box(0));
|
||||
lean_closure_set(x_13, 1, x_7);
|
||||
lean_closure_set(x_13, 2, x_6);
|
||||
lean_closure_set(x_13, 3, x_9);
|
||||
lean_closure_set(x_13, 4, x_12);
|
||||
lean_closure_set(x_13, 5, x_11);
|
||||
x_14 = lean_unsigned_to_nat(0u);
|
||||
x_15 = lean_array_get_size(x_2);
|
||||
x_16 = lean_nat_dec_lt(x_14, x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17;
|
||||
lean_dec(x_15);
|
||||
lean_dec_ref(x_2);
|
||||
x_17 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_13, x_16, x_3, x_4, x_5);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
lean_dec(x_15);
|
||||
lean_dec_ref(x_2);
|
||||
x_18 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_13, x_16, x_3, x_4, x_5);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_19; size_t x_20; uint8_t x_21; lean_object* x_22;
|
||||
x_19 = 0;
|
||||
x_20 = lean_usize_of_nat(x_15);
|
||||
lean_dec(x_15);
|
||||
x_21 = l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(x_2, x_19, x_20);
|
||||
lean_dec_ref(x_2);
|
||||
x_22 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_13, x_21, x_3, x_4, x_5);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Elab_applyDerivingHandlers_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
|
|
@ -4093,6 +4507,49 @@ lean_dec(x_4);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5; lean_object* x_6;
|
||||
x_5 = lean_unbox(x_2);
|
||||
x_6 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___lam__0(x_1, x_5, x_3, x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_6; lean_object* x_7;
|
||||
x_6 = lean_unbox(x_2);
|
||||
x_7 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___redArg(x_1, x_6, x_3, x_4, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_7; lean_object* x_8;
|
||||
x_7 = lean_unbox(x_3);
|
||||
x_8 = l_Lean_withoutExporting___at___Lean_Elab_applyDerivingHandlers_spec__1(x_1, x_2, x_7, x_4, x_5, x_6);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_4 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Array_anyMUnsafe_any___at___Lean_Elab_applyDerivingHandlers_spec__2(x_1, x_4, x_5);
|
||||
lean_dec_ref(x_1);
|
||||
x_7 = lean_box(x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_applyDerivingHandlers___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4754,7 +5211,7 @@ return x_7;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; size_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_35; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58;
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; lean_object* x_12; lean_object* x_35; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58;
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = lean_unsigned_to_nat(1u);
|
||||
x_53 = lean_unsigned_to_nat(2u);
|
||||
|
|
@ -4805,13 +5262,13 @@ block_34:
|
|||
{
|
||||
size_t x_13; lean_object* x_14; lean_object* x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_13 = lean_array_size(x_12);
|
||||
x_14 = l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0(x_13, x_10, x_12);
|
||||
x_14 = l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__0(x_13, x_11, x_12);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_array_size(x_15);
|
||||
x_17 = lean_box_usize(x_16);
|
||||
x_18 = lean_box_usize(x_10);
|
||||
x_18 = lean_box_usize(x_11);
|
||||
x_19 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___Lean_Elab_elabDeriving_spec__1___boxed), 6, 3);
|
||||
lean_closure_set(x_19, 0, x_17);
|
||||
lean_closure_set(x_19, 1, x_18);
|
||||
|
|
@ -4826,9 +5283,9 @@ x_22 = lean_ctor_get(x_20, 1);
|
|||
lean_inc(x_22);
|
||||
lean_dec_ref(x_20);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = lean_array_size(x_11);
|
||||
x_25 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2(x_23, x_21, x_8, x_9, x_11, x_24, x_10, x_23, x_2, x_3, x_22);
|
||||
lean_dec_ref(x_11);
|
||||
x_24 = lean_array_size(x_10);
|
||||
x_25 = l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_elabDeriving_spec__2(x_23, x_21, x_8, x_9, x_10, x_24, x_11, x_23, x_2, x_3, x_22);
|
||||
lean_dec_ref(x_10);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
uint8_t x_26;
|
||||
|
|
@ -4861,7 +5318,7 @@ return x_25;
|
|||
else
|
||||
{
|
||||
uint8_t x_30;
|
||||
lean_dec_ref(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
x_30 = !lean_is_exclusive(x_20);
|
||||
|
|
@ -4905,8 +5362,8 @@ if (x_45 == 0)
|
|||
{
|
||||
lean_dec(x_44);
|
||||
lean_dec_ref(x_42);
|
||||
x_10 = x_37;
|
||||
x_11 = x_39;
|
||||
x_10 = x_39;
|
||||
x_11 = x_37;
|
||||
x_12 = x_43;
|
||||
goto block_34;
|
||||
}
|
||||
|
|
@ -4918,8 +5375,8 @@ if (x_46 == 0)
|
|||
{
|
||||
lean_dec(x_44);
|
||||
lean_dec_ref(x_42);
|
||||
x_10 = x_37;
|
||||
x_11 = x_39;
|
||||
x_10 = x_39;
|
||||
x_11 = x_37;
|
||||
x_12 = x_43;
|
||||
goto block_34;
|
||||
}
|
||||
|
|
@ -4937,8 +5394,8 @@ lean_dec_ref(x_42);
|
|||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec_ref(x_50);
|
||||
x_10 = x_37;
|
||||
x_11 = x_39;
|
||||
x_10 = x_39;
|
||||
x_11 = x_37;
|
||||
x_12 = x_51;
|
||||
goto block_34;
|
||||
}
|
||||
|
|
@ -5431,7 +5888,7 @@ return x_26;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -5441,17 +5898,17 @@ x_3 = l_Lean_Name_str___override(x_2, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_applyDerivingHandlers___closed__0;
|
||||
x_2 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -5459,17 +5916,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_1 = l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -5477,47 +5934,47 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_1 = l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_elabDeriving___closed__0;
|
||||
x_2 = l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_applyDerivingHandlers___closed__0;
|
||||
x_2 = l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_applyDerivingHandlers___closed__1;
|
||||
x_2 = l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -5525,17 +5982,17 @@ x_1 = lean_mk_string_unchecked("Basic", 5, 5);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_1 = l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -5543,33 +6000,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_1 = l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_2 = l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_str___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_() {
|
||||
static lean_object* _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(1900u);
|
||||
x_2 = l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_1 = lean_unsigned_to_nat(1910u);
|
||||
x_2 = l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_3 = l_Lean_Name_num___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1900_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1910_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_Elab_applyDerivingHandlers___closed__2;
|
||||
x_3 = 0;
|
||||
x_4 = l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_;
|
||||
x_4 = l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_;
|
||||
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
}
|
||||
|
|
@ -5698,35 +6155,35 @@ l_Lean_Elab_getOptDerivingClasses___closed__1 = _init_l_Lean_Elab_getOptDeriving
|
|||
lean_mark_persistent(l_Lean_Elab_getOptDerivingClasses___closed__1);
|
||||
l_Lean_Elab_getOptDerivingClasses___closed__2 = _init_l_Lean_Elab_getOptDerivingClasses___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_getOptDerivingClasses___closed__2);
|
||||
l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_ = _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1900_);
|
||||
if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1900_(lean_io_mk_world());
|
||||
l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__0____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__1____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__2____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__3____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__4____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__5____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__6____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__7____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__8____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__9____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__10____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__11____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__12____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_ = _init_l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_();
|
||||
lean_mark_persistent(l_Lean_Elab_initFn___closed__13____x40_Lean_Elab_Deriving_Basic___hyg_1910_);
|
||||
if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Basic___hyg_1910_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
4051
stage0/stdlib/Lean/Elab/Deriving/FromToJson.c
generated
4051
stage0/stdlib/Lean/Elab/Deriving/FromToJson.c
generated
File diff suppressed because it is too large
Load diff
2632
stage0/stdlib/Lean/Elab/Deriving/Inhabited.c
generated
2632
stage0/stdlib/Lean/Elab/Deriving/Inhabited.c
generated
File diff suppressed because it is too large
Load diff
1821
stage0/stdlib/Lean/Elab/Deriving/Nonempty.c
generated
1821
stage0/stdlib/Lean/Elab/Deriving/Nonempty.c
generated
File diff suppressed because it is too large
Load diff
1914
stage0/stdlib/Lean/Elab/Deriving/Repr.c
generated
1914
stage0/stdlib/Lean/Elab/Deriving/Repr.c
generated
File diff suppressed because it is too large
Load diff
740
stage0/stdlib/Lean/Elab/Deriving/Util.c
generated
740
stage0/stdlib/Lean/Elab/Deriving/Util.c
generated
File diff suppressed because it is too large
Load diff
8027
stage0/stdlib/Lean/Elab/PreDefinition/PartialFixpoint/Main.c
generated
8027
stage0/stdlib/Lean/Elab/PreDefinition/PartialFixpoint/Main.c
generated
File diff suppressed because it is too large
Load diff
9
stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c
generated
9
stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c
generated
|
|
@ -264,7 +264,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_____private_Lean_Elab_
|
|||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lam__0___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_WF_groupGoalsByFunction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps(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_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Array_foldlMUnsafe_fold___at___Lean_Elab_WF_solveDecreasingGoals_spec__1_spec__1___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lam__0___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_mapLetDecl___at_____private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loopGo_spec__9(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -15734,7 +15734,7 @@ return x_1;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_WF_solveDecreasingGoals(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14;
|
||||
x_10 = l_Lean_Elab_WF_solveDecreasingGoals___closed__0;
|
||||
x_11 = l_Lean_Elab_WF_solveDecreasingGoals___closed__1;
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Elab_WF_solveDecreasingGoals___lam__0___boxed), 13, 8);
|
||||
|
|
@ -15746,8 +15746,9 @@ lean_closure_set(x_12, 4, x_11);
|
|||
lean_closure_set(x_12, 5, x_10);
|
||||
lean_closure_set(x_12, 6, x_11);
|
||||
lean_closure_set(x_12, 7, x_10);
|
||||
x_13 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_12, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_13;
|
||||
x_13 = 1;
|
||||
x_14 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_12, x_13, x_5, x_6, x_7, x_8, x_9);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Elab_WF_solveDecreasingGoals_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
|
|
|
|||
1358
stage0/stdlib/Lean/Elab/StructInst.c
generated
1358
stage0/stdlib/Lean/Elab/StructInst.c
generated
File diff suppressed because it is too large
Load diff
17044
stage0/stdlib/Lean/Elab/Structure.c
generated
17044
stage0/stdlib/Lean/Elab/Structure.c
generated
File diff suppressed because it is too large
Load diff
1545
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
1545
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
File diff suppressed because it is too large
Load diff
1909
stage0/stdlib/Lean/Environment.c
generated
1909
stage0/stdlib/Lean/Environment.c
generated
File diff suppressed because it is too large
Load diff
2371
stage0/stdlib/Lean/Meta/AbstractNestedProofs.c
generated
2371
stage0/stdlib/Lean/Meta/AbstractNestedProofs.c
generated
File diff suppressed because it is too large
Load diff
326
stage0/stdlib/Lean/Meta/Eqns.c
generated
326
stage0/stdlib/Lean/Meta/Eqns.c
generated
|
|
@ -175,7 +175,7 @@ static lean_object* l_Lean_Meta_initFn___lam__1___closed__22____x40_Lean_Meta_Eq
|
|||
static lean_object* l_Lean_Meta_initFn___closed__1____x40_Lean_Meta_Eqns___hyg_44_;
|
||||
static lean_object* l_Lean_Meta_generateEagerEqns___closed__1;
|
||||
static lean_object* l_Lean_Meta_initFn___closed__3____x40_Lean_Meta_Eqns___hyg_44_;
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_registerGetEqnsFn___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Eqns_0__Lean_Meta_alreadyGenerated_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_task_get_own(lean_object*);
|
||||
|
|
@ -5516,7 +5516,7 @@ x_8 = lean_st_ref_get(x_6, x_7);
|
|||
x_9 = !lean_is_exclusive(x_8);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
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_17;
|
||||
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; uint8_t x_17; lean_object* x_18;
|
||||
x_10 = lean_ctor_get(x_8, 0);
|
||||
x_11 = lean_ctor_get(x_8, 1);
|
||||
x_12 = lean_ctor_get(x_10, 0);
|
||||
|
|
@ -5531,146 +5531,147 @@ x_16 = lean_alloc_closure((void*)(l_Lean_Meta_getUnfoldEqnFor_x3f___lam__0___box
|
|||
lean_closure_set(x_16, 0, x_14);
|
||||
lean_closure_set(x_16, 1, x_1);
|
||||
lean_closure_set(x_16, 2, x_15);
|
||||
x_17 = 1;
|
||||
lean_inc(x_6);
|
||||
lean_inc_ref(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc_ref(x_3);
|
||||
x_17 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_16, x_3, x_4, x_5, x_6, x_11);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
{
|
||||
lean_object* x_18;
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
x_18 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_16, x_17, x_3, x_4, x_5, x_6, x_11);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_dec(x_14);
|
||||
lean_free_object(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
return x_17;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_18, 0);
|
||||
lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = lean_name_eq(x_20, x_14);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
uint8_t x_22;
|
||||
x_22 = !lean_is_exclusive(x_17);
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_name_eq(x_21, x_14);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
||||
x_23 = lean_ctor_get(x_17, 1);
|
||||
lean_dec(x_23);
|
||||
x_24 = lean_ctor_get(x_17, 0);
|
||||
uint8_t x_23;
|
||||
x_23 = !lean_is_exclusive(x_18);
|
||||
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; lean_object* x_33; uint8_t x_34;
|
||||
x_24 = lean_ctor_get(x_18, 1);
|
||||
lean_dec(x_24);
|
||||
x_25 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1;
|
||||
x_26 = l_Lean_MessageData_ofName(x_20);
|
||||
lean_ctor_set_tag(x_17, 7);
|
||||
lean_ctor_set(x_17, 1, x_26);
|
||||
lean_ctor_set(x_17, 0, x_25);
|
||||
x_27 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3;
|
||||
x_25 = lean_ctor_get(x_18, 0);
|
||||
lean_dec(x_25);
|
||||
x_26 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1;
|
||||
x_27 = l_Lean_MessageData_ofName(x_21);
|
||||
lean_ctor_set_tag(x_18, 7);
|
||||
lean_ctor_set(x_18, 1, x_27);
|
||||
lean_ctor_set(x_18, 0, x_26);
|
||||
x_28 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3;
|
||||
lean_ctor_set_tag(x_8, 7);
|
||||
lean_ctor_set(x_8, 1, x_27);
|
||||
lean_ctor_set(x_8, 0, x_17);
|
||||
x_28 = l_Lean_MessageData_ofName(x_14);
|
||||
x_29 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_8);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5;
|
||||
x_31 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
x_32 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_31, x_3, x_4, x_5, x_6, x_19);
|
||||
lean_ctor_set(x_8, 1, x_28);
|
||||
lean_ctor_set(x_8, 0, x_18);
|
||||
x_29 = l_Lean_MessageData_ofName(x_14);
|
||||
x_30 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_8);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
x_31 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5;
|
||||
x_32 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
x_33 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_32, x_3, x_4, x_5, x_6, x_20);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
x_34 = !lean_is_exclusive(x_33);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
return x_32;
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_32, 0);
|
||||
x_35 = lean_ctor_get(x_32, 1);
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_35 = lean_ctor_get(x_33, 0);
|
||||
x_36 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_32);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
lean_dec(x_33);
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
lean_dec(x_17);
|
||||
x_37 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1;
|
||||
x_38 = l_Lean_MessageData_ofName(x_20);
|
||||
x_39 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_37);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
x_40 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3;
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50;
|
||||
lean_dec(x_18);
|
||||
x_38 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1;
|
||||
x_39 = l_Lean_MessageData_ofName(x_21);
|
||||
x_40 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_38);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
x_41 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3;
|
||||
lean_ctor_set_tag(x_8, 7);
|
||||
lean_ctor_set(x_8, 1, x_40);
|
||||
lean_ctor_set(x_8, 0, x_39);
|
||||
x_41 = l_Lean_MessageData_ofName(x_14);
|
||||
x_42 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_8);
|
||||
lean_ctor_set(x_42, 1, x_41);
|
||||
x_43 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5;
|
||||
x_44 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_42);
|
||||
lean_ctor_set(x_44, 1, x_43);
|
||||
x_45 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_44, x_3, x_4, x_5, x_6, x_19);
|
||||
lean_ctor_set(x_8, 1, x_41);
|
||||
lean_ctor_set(x_8, 0, x_40);
|
||||
x_42 = l_Lean_MessageData_ofName(x_14);
|
||||
x_43 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_8);
|
||||
lean_ctor_set(x_43, 1, x_42);
|
||||
x_44 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5;
|
||||
x_45 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
x_46 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_45, x_3, x_4, x_5, x_6, x_20);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
x_46 = lean_ctor_get(x_45, 0);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_ctor_get(x_45, 1);
|
||||
x_47 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_47);
|
||||
if (lean_is_exclusive(x_45)) {
|
||||
lean_ctor_release(x_45, 0);
|
||||
lean_ctor_release(x_45, 1);
|
||||
x_48 = x_45;
|
||||
x_48 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_48);
|
||||
if (lean_is_exclusive(x_46)) {
|
||||
lean_ctor_release(x_46, 0);
|
||||
lean_ctor_release(x_46, 1);
|
||||
x_49 = x_46;
|
||||
} else {
|
||||
lean_dec_ref(x_45);
|
||||
x_48 = lean_box(0);
|
||||
lean_dec_ref(x_46);
|
||||
x_49 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_48)) {
|
||||
x_49 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_49)) {
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_49 = x_48;
|
||||
x_50 = x_49;
|
||||
}
|
||||
lean_ctor_set(x_49, 0, x_46);
|
||||
lean_ctor_set(x_49, 1, x_47);
|
||||
return x_49;
|
||||
lean_ctor_set(x_50, 0, x_47);
|
||||
lean_ctor_set(x_50, 1, x_48);
|
||||
return x_50;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_21);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_14);
|
||||
lean_free_object(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
return x_17;
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5682,137 +5683,138 @@ lean_dec(x_6);
|
|||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
return x_17;
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57;
|
||||
x_50 = lean_ctor_get(x_8, 0);
|
||||
x_51 = lean_ctor_get(x_8, 1);
|
||||
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; uint8_t x_58; lean_object* x_59;
|
||||
x_51 = lean_ctor_get(x_8, 0);
|
||||
x_52 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_52);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_8);
|
||||
x_52 = lean_ctor_get(x_50, 0);
|
||||
lean_inc_ref(x_52);
|
||||
lean_dec(x_50);
|
||||
x_53 = l_Lean_Meta_unfoldThmSuffix___closed__0;
|
||||
x_53 = lean_ctor_get(x_51, 0);
|
||||
lean_inc_ref(x_53);
|
||||
lean_dec(x_51);
|
||||
x_54 = l_Lean_Meta_unfoldThmSuffix___closed__0;
|
||||
lean_inc(x_1);
|
||||
x_54 = l_Lean_Meta_mkEqLikeNameFor(x_52, x_1, x_53);
|
||||
x_55 = lean_box(x_2);
|
||||
lean_inc(x_54);
|
||||
x_56 = lean_alloc_closure((void*)(l_Lean_Meta_getUnfoldEqnFor_x3f___lam__0___boxed), 8, 3);
|
||||
lean_closure_set(x_56, 0, x_54);
|
||||
lean_closure_set(x_56, 1, x_1);
|
||||
lean_closure_set(x_56, 2, x_55);
|
||||
x_55 = l_Lean_Meta_mkEqLikeNameFor(x_53, x_1, x_54);
|
||||
x_56 = lean_box(x_2);
|
||||
lean_inc(x_55);
|
||||
x_57 = lean_alloc_closure((void*)(l_Lean_Meta_getUnfoldEqnFor_x3f___lam__0___boxed), 8, 3);
|
||||
lean_closure_set(x_57, 0, x_55);
|
||||
lean_closure_set(x_57, 1, x_1);
|
||||
lean_closure_set(x_57, 2, x_56);
|
||||
x_58 = 1;
|
||||
lean_inc(x_6);
|
||||
lean_inc_ref(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc_ref(x_3);
|
||||
x_57 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_56, x_3, x_4, x_5, x_6, x_51);
|
||||
if (lean_obj_tag(x_57) == 0)
|
||||
x_59 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_57, x_58, x_3, x_4, x_5, x_6, x_52);
|
||||
if (lean_obj_tag(x_59) == 0)
|
||||
{
|
||||
lean_object* x_58;
|
||||
x_58 = lean_ctor_get(x_57, 0);
|
||||
lean_inc(x_58);
|
||||
if (lean_obj_tag(x_58) == 0)
|
||||
lean_object* x_60;
|
||||
x_60 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_60);
|
||||
if (lean_obj_tag(x_60) == 0)
|
||||
{
|
||||
lean_dec(x_54);
|
||||
lean_dec(x_55);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
return x_57;
|
||||
return x_59;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; uint8_t x_61;
|
||||
x_59 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_59);
|
||||
x_60 = lean_ctor_get(x_58, 0);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_58);
|
||||
x_61 = lean_name_eq(x_60, x_54);
|
||||
if (x_61 == 0)
|
||||
lean_object* x_61; lean_object* x_62; uint8_t x_63;
|
||||
x_61 = lean_ctor_get(x_59, 1);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_ctor_get(x_60, 0);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_60);
|
||||
x_63 = lean_name_eq(x_62, x_55);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
lean_object* x_62; 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; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76;
|
||||
if (lean_is_exclusive(x_57)) {
|
||||
lean_ctor_release(x_57, 0);
|
||||
lean_ctor_release(x_57, 1);
|
||||
x_62 = x_57;
|
||||
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; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78;
|
||||
if (lean_is_exclusive(x_59)) {
|
||||
lean_ctor_release(x_59, 0);
|
||||
lean_ctor_release(x_59, 1);
|
||||
x_64 = x_59;
|
||||
} else {
|
||||
lean_dec_ref(x_57);
|
||||
x_62 = lean_box(0);
|
||||
lean_dec_ref(x_59);
|
||||
x_64 = lean_box(0);
|
||||
}
|
||||
x_63 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1;
|
||||
x_64 = l_Lean_MessageData_ofName(x_60);
|
||||
if (lean_is_scalar(x_62)) {
|
||||
x_65 = lean_alloc_ctor(7, 2, 0);
|
||||
x_65 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__1;
|
||||
x_66 = l_Lean_MessageData_ofName(x_62);
|
||||
if (lean_is_scalar(x_64)) {
|
||||
x_67 = lean_alloc_ctor(7, 2, 0);
|
||||
} else {
|
||||
x_65 = x_62;
|
||||
lean_ctor_set_tag(x_65, 7);
|
||||
x_67 = x_64;
|
||||
lean_ctor_set_tag(x_67, 7);
|
||||
}
|
||||
lean_ctor_set(x_65, 0, x_63);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
x_66 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3;
|
||||
x_67 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_65);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
x_68 = l_Lean_MessageData_ofName(x_54);
|
||||
x_68 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__3;
|
||||
x_69 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
lean_ctor_set(x_69, 1, x_68);
|
||||
x_70 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5;
|
||||
x_70 = l_Lean_MessageData_ofName(x_55);
|
||||
x_71 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_69);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
x_72 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_71, x_3, x_4, x_5, x_6, x_59);
|
||||
x_72 = l_Lean_Meta_getUnfoldEqnFor_x3f___lam__1___closed__5;
|
||||
x_73 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_71);
|
||||
lean_ctor_set(x_73, 1, x_72);
|
||||
x_74 = l_Lean_throwError___at___Lean_getConstInfo___at___Lean_Meta_mkConstWithFreshMVarLevels_spec__0_spec__0___redArg(x_73, x_3, x_4, x_5, x_6, x_61);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
x_73 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_73);
|
||||
x_74 = lean_ctor_get(x_72, 1);
|
||||
lean_inc(x_74);
|
||||
if (lean_is_exclusive(x_72)) {
|
||||
lean_ctor_release(x_72, 0);
|
||||
lean_ctor_release(x_72, 1);
|
||||
x_75 = x_72;
|
||||
x_75 = lean_ctor_get(x_74, 0);
|
||||
lean_inc(x_75);
|
||||
x_76 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_76);
|
||||
if (lean_is_exclusive(x_74)) {
|
||||
lean_ctor_release(x_74, 0);
|
||||
lean_ctor_release(x_74, 1);
|
||||
x_77 = x_74;
|
||||
} else {
|
||||
lean_dec_ref(x_72);
|
||||
x_75 = lean_box(0);
|
||||
lean_dec_ref(x_74);
|
||||
x_77 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_75)) {
|
||||
x_76 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_77)) {
|
||||
x_78 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_76 = x_75;
|
||||
x_78 = x_77;
|
||||
}
|
||||
lean_ctor_set(x_76, 0, x_73);
|
||||
lean_ctor_set(x_76, 1, x_74);
|
||||
return x_76;
|
||||
lean_ctor_set(x_78, 0, x_75);
|
||||
lean_ctor_set(x_78, 1, x_76);
|
||||
return x_78;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_60);
|
||||
lean_dec(x_59);
|
||||
lean_dec(x_54);
|
||||
lean_dec(x_62);
|
||||
lean_dec(x_61);
|
||||
lean_dec(x_55);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
return x_57;
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_54);
|
||||
lean_dec(x_55);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec_ref(x_3);
|
||||
return x_57;
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
646
stage0/stdlib/Lean/Meta/LetToHave.c
generated
646
stage0/stdlib/Lean/Meta/LetToHave.c
generated
|
|
@ -225,7 +225,7 @@ static lean_object* l_Lean_Meta_LetToHave_instInhabitedResult___closed__0;
|
|||
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_findCacheNoBVars_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitProj___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitDepExpr_spec__3_spec__3___closed__3;
|
||||
static uint64_t l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_main___lam__4___closed__10;
|
||||
lean_object* l_Array_mapMUnsafe_map___at_____private_Lean_Util_Trace_0__Lean_addTraceNode___at___Lean_withTraceNode___at___Lean_Core_wrapAsyncAsSnapshot_spec__18_spec__19_spec__19(size_t, size_t, lean_object*);
|
||||
|
|
@ -276,6 +276,7 @@ static lean_object* l_Lean_Meta_letToHave___closed__0;
|
|||
static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_finalize___closed__10;
|
||||
static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go___lam__0___closed__0;
|
||||
lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitDepExpr_spec__3___boxed(lean_object*, lean_object*, 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*);
|
||||
|
|
@ -296,6 +297,7 @@ static lean_object* l_Lean_Loop_forIn_loop___at___Lean_Loop_forIn_loop___at_____
|
|||
uint8_t l_Lean_LocalDecl_isLet(lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go(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_Std_DHashMap_Internal_AssocList_replace___at_____private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit_spec__5___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visit_spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_checkMVar_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -305,7 +307,7 @@ static lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visit
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitDepExpr_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_CollectFVars_main(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_findCacheNoBVars_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___at_____private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_visitLambdaLet_go_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -15913,384 +15915,393 @@ lean_ctor_set(x_5, 5, x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(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_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_7 = lean_st_ref_get(x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc_ref(x_9);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_9 = lean_st_ref_get(x_6, x_7);
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec_ref(x_7);
|
||||
x_11 = lean_ctor_get_uint8(x_9, sizeof(void*)*8);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc_ref(x_11);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec_ref(x_9);
|
||||
x_12 = lean_st_ref_take(x_5, x_10);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec_ref(x_12);
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
x_13 = lean_ctor_get_uint8(x_11, sizeof(void*)*8);
|
||||
lean_dec_ref(x_11);
|
||||
x_14 = lean_st_ref_take(x_6, x_12);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec_ref(x_14);
|
||||
x_17 = !lean_is_exclusive(x_15);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; uint8_t 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; uint8_t x_26;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
x_17 = lean_ctor_get(x_13, 5);
|
||||
lean_dec(x_17);
|
||||
x_18 = 0;
|
||||
x_19 = l_Lean_Environment_setExporting(x_16, x_18);
|
||||
x_20 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2;
|
||||
lean_ctor_set(x_13, 5, x_20);
|
||||
lean_ctor_set(x_13, 0, x_19);
|
||||
x_21 = lean_st_ref_set(x_5, x_13, x_14);
|
||||
x_22 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec_ref(x_21);
|
||||
x_23 = lean_st_ref_take(x_3, x_22);
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_object* x_18; lean_object* x_19; uint8_t 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; uint8_t x_28;
|
||||
x_18 = lean_ctor_get(x_15, 0);
|
||||
x_19 = lean_ctor_get(x_15, 5);
|
||||
lean_dec(x_19);
|
||||
x_20 = 0;
|
||||
x_21 = l_Lean_Environment_setExporting(x_18, x_20);
|
||||
x_22 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2;
|
||||
lean_ctor_set(x_15, 5, x_22);
|
||||
lean_ctor_set(x_15, 0, x_21);
|
||||
x_23 = lean_st_ref_set(x_6, x_15, x_16);
|
||||
x_24 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec_ref(x_23);
|
||||
x_26 = !lean_is_exclusive(x_24);
|
||||
if (x_26 == 0)
|
||||
x_25 = lean_st_ref_take(x_4, x_24);
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec_ref(x_25);
|
||||
x_28 = !lean_is_exclusive(x_26);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_27 = lean_ctor_get(x_24, 1);
|
||||
lean_dec(x_27);
|
||||
x_28 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7;
|
||||
lean_ctor_set(x_24, 1, x_28);
|
||||
x_29 = lean_st_ref_set(x_3, x_24, x_25);
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec_ref(x_29);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_31 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_30);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36;
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_29 = lean_ctor_get(x_26, 1);
|
||||
lean_dec(x_29);
|
||||
x_30 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7;
|
||||
lean_ctor_set(x_26, 1, x_30);
|
||||
x_31 = lean_st_ref_set(x_4, x_26, x_27);
|
||||
x_32 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec_ref(x_31);
|
||||
lean_inc(x_32);
|
||||
x_34 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_34, 0, x_32);
|
||||
x_35 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_28, x_34, x_33);
|
||||
lean_dec_ref(x_34);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_36 = !lean_is_exclusive(x_35);
|
||||
if (x_36 == 0)
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
x_33 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_32);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
{
|
||||
lean_object* x_37;
|
||||
x_37 = lean_ctor_get(x_35, 0);
|
||||
lean_dec(x_37);
|
||||
lean_ctor_set(x_35, 0, x_32);
|
||||
return x_35;
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38;
|
||||
x_34 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec_ref(x_33);
|
||||
lean_inc(x_34);
|
||||
x_36 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
x_37 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_30, x_36, x_35);
|
||||
lean_dec_ref(x_36);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_38 = !lean_is_exclusive(x_37);
|
||||
if (x_38 == 0)
|
||||
{
|
||||
lean_object* x_39;
|
||||
x_39 = lean_ctor_get(x_37, 0);
|
||||
lean_dec(x_39);
|
||||
lean_ctor_set(x_37, 0, x_34);
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39;
|
||||
x_38 = lean_ctor_get(x_35, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_35);
|
||||
x_39 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_32);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
return x_39;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44;
|
||||
x_40 = lean_ctor_get(x_31, 0);
|
||||
lean_object* x_40; lean_object* x_41;
|
||||
x_40 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec_ref(x_31);
|
||||
x_42 = lean_box(0);
|
||||
x_43 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_28, x_42, x_41);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_44 = !lean_is_exclusive(x_43);
|
||||
if (x_44 == 0)
|
||||
lean_dec(x_37);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_34);
|
||||
lean_ctor_set(x_41, 1, x_40);
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_45;
|
||||
x_45 = lean_ctor_get(x_43, 0);
|
||||
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46;
|
||||
x_42 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_42);
|
||||
x_43 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec_ref(x_33);
|
||||
x_44 = lean_box(0);
|
||||
x_45 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_30, x_44, x_43);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_46 = !lean_is_exclusive(x_45);
|
||||
if (x_46 == 0)
|
||||
{
|
||||
lean_object* x_47;
|
||||
x_47 = lean_ctor_get(x_45, 0);
|
||||
lean_dec(x_47);
|
||||
lean_ctor_set_tag(x_45, 1);
|
||||
lean_ctor_set(x_45, 0, x_42);
|
||||
return x_45;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49;
|
||||
x_48 = lean_ctor_get(x_45, 1);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_45);
|
||||
lean_ctor_set_tag(x_43, 1);
|
||||
lean_ctor_set(x_43, 0, x_40);
|
||||
return x_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47;
|
||||
x_46 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_43);
|
||||
x_47 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_40);
|
||||
lean_ctor_set(x_47, 1, x_46);
|
||||
return x_47;
|
||||
x_49 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_42);
|
||||
lean_ctor_set(x_49, 1, x_48);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_48 = lean_ctor_get(x_24, 0);
|
||||
x_49 = lean_ctor_get(x_24, 2);
|
||||
x_50 = lean_ctor_get(x_24, 3);
|
||||
x_51 = lean_ctor_get(x_24, 4);
|
||||
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_50 = lean_ctor_get(x_26, 0);
|
||||
x_51 = lean_ctor_get(x_26, 2);
|
||||
x_52 = lean_ctor_get(x_26, 3);
|
||||
x_53 = lean_ctor_get(x_26, 4);
|
||||
lean_inc(x_53);
|
||||
lean_inc(x_52);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_24);
|
||||
x_52 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7;
|
||||
x_53 = lean_alloc_ctor(0, 5, 0);
|
||||
lean_ctor_set(x_53, 0, x_48);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
lean_ctor_set(x_53, 2, x_49);
|
||||
lean_ctor_set(x_53, 3, x_50);
|
||||
lean_ctor_set(x_53, 4, x_51);
|
||||
x_54 = lean_st_ref_set(x_3, x_53, x_25);
|
||||
x_55 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec_ref(x_54);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_56 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_55);
|
||||
if (lean_obj_tag(x_56) == 0)
|
||||
{
|
||||
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;
|
||||
x_57 = lean_ctor_get(x_56, 0);
|
||||
lean_dec(x_26);
|
||||
x_54 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7;
|
||||
x_55 = lean_alloc_ctor(0, 5, 0);
|
||||
lean_ctor_set(x_55, 0, x_50);
|
||||
lean_ctor_set(x_55, 1, x_54);
|
||||
lean_ctor_set(x_55, 2, x_51);
|
||||
lean_ctor_set(x_55, 3, x_52);
|
||||
lean_ctor_set(x_55, 4, x_53);
|
||||
x_56 = lean_st_ref_set(x_4, x_55, x_27);
|
||||
x_57 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_57);
|
||||
x_58 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec_ref(x_56);
|
||||
lean_inc(x_57);
|
||||
x_59 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
x_60 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_52, x_59, x_58);
|
||||
lean_dec_ref(x_59);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
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;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
x_58 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_57);
|
||||
if (lean_obj_tag(x_58) == 0)
|
||||
{
|
||||
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;
|
||||
x_59 = lean_ctor_get(x_58, 0);
|
||||
lean_inc(x_59);
|
||||
x_60 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_60);
|
||||
lean_dec_ref(x_58);
|
||||
lean_inc(x_59);
|
||||
x_61 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_61, 0, x_59);
|
||||
x_62 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_54, x_61, x_60);
|
||||
lean_dec_ref(x_61);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_63 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_63);
|
||||
if (lean_is_exclusive(x_62)) {
|
||||
lean_ctor_release(x_62, 0);
|
||||
lean_ctor_release(x_62, 1);
|
||||
x_64 = x_62;
|
||||
} else {
|
||||
lean_dec_ref(x_60);
|
||||
x_62 = lean_box(0);
|
||||
lean_dec_ref(x_62);
|
||||
x_64 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_62)) {
|
||||
x_63 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_64)) {
|
||||
x_65 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_63 = x_62;
|
||||
x_65 = x_64;
|
||||
}
|
||||
lean_ctor_set(x_63, 0, x_57);
|
||||
lean_ctor_set(x_63, 1, x_61);
|
||||
return x_63;
|
||||
lean_ctor_set(x_65, 0, x_59);
|
||||
lean_ctor_set(x_65, 1, x_63);
|
||||
return x_65;
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_64 = lean_ctor_get(x_56, 0);
|
||||
lean_inc(x_64);
|
||||
x_65 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec_ref(x_56);
|
||||
x_66 = lean_box(0);
|
||||
x_67 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_20, x_3, x_52, x_66, x_65);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_68 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_68);
|
||||
if (lean_is_exclusive(x_67)) {
|
||||
lean_ctor_release(x_67, 0);
|
||||
lean_ctor_release(x_67, 1);
|
||||
x_69 = x_67;
|
||||
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;
|
||||
x_66 = lean_ctor_get(x_58, 0);
|
||||
lean_inc(x_66);
|
||||
x_67 = lean_ctor_get(x_58, 1);
|
||||
lean_inc(x_67);
|
||||
lean_dec_ref(x_58);
|
||||
x_68 = lean_box(0);
|
||||
x_69 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_22, x_4, x_54, x_68, x_67);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_70 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_70);
|
||||
if (lean_is_exclusive(x_69)) {
|
||||
lean_ctor_release(x_69, 0);
|
||||
lean_ctor_release(x_69, 1);
|
||||
x_71 = x_69;
|
||||
} else {
|
||||
lean_dec_ref(x_67);
|
||||
x_69 = lean_box(0);
|
||||
lean_dec_ref(x_69);
|
||||
x_71 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_69)) {
|
||||
x_70 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_71)) {
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_70 = x_69;
|
||||
lean_ctor_set_tag(x_70, 1);
|
||||
x_72 = x_71;
|
||||
lean_ctor_set_tag(x_72, 1);
|
||||
}
|
||||
lean_ctor_set(x_70, 0, x_64);
|
||||
lean_ctor_set(x_70, 1, x_68);
|
||||
return x_70;
|
||||
lean_ctor_set(x_72, 0, x_66);
|
||||
lean_ctor_set(x_72, 1, x_70);
|
||||
return x_72;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* 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; uint8_t 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; 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;
|
||||
x_71 = lean_ctor_get(x_13, 0);
|
||||
x_72 = lean_ctor_get(x_13, 1);
|
||||
x_73 = lean_ctor_get(x_13, 2);
|
||||
x_74 = lean_ctor_get(x_13, 3);
|
||||
x_75 = lean_ctor_get(x_13, 4);
|
||||
x_76 = lean_ctor_get(x_13, 6);
|
||||
x_77 = lean_ctor_get(x_13, 7);
|
||||
x_78 = lean_ctor_get(x_13, 8);
|
||||
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; uint8_t 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; 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;
|
||||
x_73 = lean_ctor_get(x_15, 0);
|
||||
x_74 = lean_ctor_get(x_15, 1);
|
||||
x_75 = lean_ctor_get(x_15, 2);
|
||||
x_76 = lean_ctor_get(x_15, 3);
|
||||
x_77 = lean_ctor_get(x_15, 4);
|
||||
x_78 = lean_ctor_get(x_15, 6);
|
||||
x_79 = lean_ctor_get(x_15, 7);
|
||||
x_80 = lean_ctor_get(x_15, 8);
|
||||
lean_inc(x_80);
|
||||
lean_inc(x_79);
|
||||
lean_inc(x_78);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_inc(x_75);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_inc(x_71);
|
||||
lean_dec(x_13);
|
||||
x_79 = 0;
|
||||
x_80 = l_Lean_Environment_setExporting(x_71, x_79);
|
||||
x_81 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2;
|
||||
x_82 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_82, 0, x_80);
|
||||
lean_ctor_set(x_82, 1, x_72);
|
||||
lean_ctor_set(x_82, 2, x_73);
|
||||
lean_ctor_set(x_82, 3, x_74);
|
||||
lean_ctor_set(x_82, 4, x_75);
|
||||
lean_ctor_set(x_82, 5, x_81);
|
||||
lean_ctor_set(x_82, 6, x_76);
|
||||
lean_ctor_set(x_82, 7, x_77);
|
||||
lean_ctor_set(x_82, 8, x_78);
|
||||
x_83 = lean_st_ref_set(x_5, x_82, x_14);
|
||||
x_84 = lean_ctor_get(x_83, 1);
|
||||
lean_inc(x_84);
|
||||
lean_dec_ref(x_83);
|
||||
x_85 = lean_st_ref_take(x_3, x_84);
|
||||
x_86 = lean_ctor_get(x_85, 0);
|
||||
lean_dec(x_15);
|
||||
x_81 = 0;
|
||||
x_82 = l_Lean_Environment_setExporting(x_73, x_81);
|
||||
x_83 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__2;
|
||||
x_84 = lean_alloc_ctor(0, 9, 0);
|
||||
lean_ctor_set(x_84, 0, x_82);
|
||||
lean_ctor_set(x_84, 1, x_74);
|
||||
lean_ctor_set(x_84, 2, x_75);
|
||||
lean_ctor_set(x_84, 3, x_76);
|
||||
lean_ctor_set(x_84, 4, x_77);
|
||||
lean_ctor_set(x_84, 5, x_83);
|
||||
lean_ctor_set(x_84, 6, x_78);
|
||||
lean_ctor_set(x_84, 7, x_79);
|
||||
lean_ctor_set(x_84, 8, x_80);
|
||||
x_85 = lean_st_ref_set(x_6, x_84, x_16);
|
||||
x_86 = lean_ctor_get(x_85, 1);
|
||||
lean_inc(x_86);
|
||||
x_87 = lean_ctor_get(x_85, 1);
|
||||
lean_inc(x_87);
|
||||
lean_dec_ref(x_85);
|
||||
x_88 = lean_ctor_get(x_86, 0);
|
||||
lean_inc_ref(x_88);
|
||||
x_89 = lean_ctor_get(x_86, 2);
|
||||
x_87 = lean_st_ref_take(x_4, x_86);
|
||||
x_88 = lean_ctor_get(x_87, 0);
|
||||
lean_inc(x_88);
|
||||
x_89 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_89);
|
||||
x_90 = lean_ctor_get(x_86, 3);
|
||||
lean_dec_ref(x_87);
|
||||
x_90 = lean_ctor_get(x_88, 0);
|
||||
lean_inc_ref(x_90);
|
||||
x_91 = lean_ctor_get(x_86, 4);
|
||||
lean_inc_ref(x_91);
|
||||
if (lean_is_exclusive(x_86)) {
|
||||
lean_ctor_release(x_86, 0);
|
||||
lean_ctor_release(x_86, 1);
|
||||
lean_ctor_release(x_86, 2);
|
||||
lean_ctor_release(x_86, 3);
|
||||
lean_ctor_release(x_86, 4);
|
||||
x_92 = x_86;
|
||||
x_91 = lean_ctor_get(x_88, 2);
|
||||
lean_inc(x_91);
|
||||
x_92 = lean_ctor_get(x_88, 3);
|
||||
lean_inc_ref(x_92);
|
||||
x_93 = lean_ctor_get(x_88, 4);
|
||||
lean_inc_ref(x_93);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
lean_ctor_release(x_88, 2);
|
||||
lean_ctor_release(x_88, 3);
|
||||
lean_ctor_release(x_88, 4);
|
||||
x_94 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_86);
|
||||
x_92 = lean_box(0);
|
||||
lean_dec_ref(x_88);
|
||||
x_94 = lean_box(0);
|
||||
}
|
||||
x_93 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7;
|
||||
if (lean_is_scalar(x_92)) {
|
||||
x_94 = lean_alloc_ctor(0, 5, 0);
|
||||
x_95 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___closed__7;
|
||||
if (lean_is_scalar(x_94)) {
|
||||
x_96 = lean_alloc_ctor(0, 5, 0);
|
||||
} else {
|
||||
x_94 = x_92;
|
||||
x_96 = x_94;
|
||||
}
|
||||
lean_ctor_set(x_94, 0, x_88);
|
||||
lean_ctor_set(x_94, 1, x_93);
|
||||
lean_ctor_set(x_94, 2, x_89);
|
||||
lean_ctor_set(x_94, 3, x_90);
|
||||
lean_ctor_set(x_94, 4, x_91);
|
||||
x_95 = lean_st_ref_set(x_3, x_94, x_87);
|
||||
x_96 = lean_ctor_get(x_95, 1);
|
||||
lean_inc(x_96);
|
||||
lean_dec_ref(x_95);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_97 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_96);
|
||||
if (lean_obj_tag(x_97) == 0)
|
||||
{
|
||||
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;
|
||||
x_98 = lean_ctor_get(x_97, 0);
|
||||
lean_ctor_set(x_96, 0, x_90);
|
||||
lean_ctor_set(x_96, 1, x_95);
|
||||
lean_ctor_set(x_96, 2, x_91);
|
||||
lean_ctor_set(x_96, 3, x_92);
|
||||
lean_ctor_set(x_96, 4, x_93);
|
||||
x_97 = lean_st_ref_set(x_4, x_96, x_89);
|
||||
x_98 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_98);
|
||||
x_99 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_99);
|
||||
lean_dec_ref(x_97);
|
||||
lean_inc(x_98);
|
||||
x_100 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_100, 0, x_98);
|
||||
x_101 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_81, x_3, x_93, x_100, x_99);
|
||||
lean_dec_ref(x_100);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_102 = lean_ctor_get(x_101, 1);
|
||||
lean_inc(x_102);
|
||||
if (lean_is_exclusive(x_101)) {
|
||||
lean_ctor_release(x_101, 0);
|
||||
lean_ctor_release(x_101, 1);
|
||||
x_103 = x_101;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_4);
|
||||
x_99 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_98);
|
||||
if (lean_obj_tag(x_99) == 0)
|
||||
{
|
||||
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;
|
||||
x_100 = lean_ctor_get(x_99, 0);
|
||||
lean_inc(x_100);
|
||||
x_101 = lean_ctor_get(x_99, 1);
|
||||
lean_inc(x_101);
|
||||
lean_dec_ref(x_99);
|
||||
lean_inc(x_100);
|
||||
x_102 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_102, 0, x_100);
|
||||
x_103 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_83, x_4, x_95, x_102, x_101);
|
||||
lean_dec_ref(x_102);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_104 = lean_ctor_get(x_103, 1);
|
||||
lean_inc(x_104);
|
||||
if (lean_is_exclusive(x_103)) {
|
||||
lean_ctor_release(x_103, 0);
|
||||
lean_ctor_release(x_103, 1);
|
||||
x_105 = x_103;
|
||||
} else {
|
||||
lean_dec_ref(x_101);
|
||||
x_103 = lean_box(0);
|
||||
lean_dec_ref(x_103);
|
||||
x_105 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_103)) {
|
||||
x_104 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_105)) {
|
||||
x_106 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_104 = x_103;
|
||||
x_106 = x_105;
|
||||
}
|
||||
lean_ctor_set(x_104, 0, x_98);
|
||||
lean_ctor_set(x_104, 1, x_102);
|
||||
return x_104;
|
||||
lean_ctor_set(x_106, 0, x_100);
|
||||
lean_ctor_set(x_106, 1, x_104);
|
||||
return x_106;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111;
|
||||
x_105 = lean_ctor_get(x_97, 0);
|
||||
lean_inc(x_105);
|
||||
x_106 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_106);
|
||||
lean_dec_ref(x_97);
|
||||
x_107 = lean_box(0);
|
||||
x_108 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_5, x_11, x_81, x_3, x_93, x_107, x_106);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_5);
|
||||
x_109 = lean_ctor_get(x_108, 1);
|
||||
lean_inc(x_109);
|
||||
if (lean_is_exclusive(x_108)) {
|
||||
lean_ctor_release(x_108, 0);
|
||||
lean_ctor_release(x_108, 1);
|
||||
x_110 = x_108;
|
||||
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113;
|
||||
x_107 = lean_ctor_get(x_99, 0);
|
||||
lean_inc(x_107);
|
||||
x_108 = lean_ctor_get(x_99, 1);
|
||||
lean_inc(x_108);
|
||||
lean_dec_ref(x_99);
|
||||
x_109 = lean_box(0);
|
||||
x_110 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___lam__0(x_6, x_13, x_83, x_4, x_95, x_109, x_108);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_6);
|
||||
x_111 = lean_ctor_get(x_110, 1);
|
||||
lean_inc(x_111);
|
||||
if (lean_is_exclusive(x_110)) {
|
||||
lean_ctor_release(x_110, 0);
|
||||
lean_ctor_release(x_110, 1);
|
||||
x_112 = x_110;
|
||||
} else {
|
||||
lean_dec_ref(x_108);
|
||||
x_110 = lean_box(0);
|
||||
lean_dec_ref(x_110);
|
||||
x_112 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_110)) {
|
||||
x_111 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_112)) {
|
||||
x_113 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_111 = x_110;
|
||||
lean_ctor_set_tag(x_111, 1);
|
||||
x_113 = x_112;
|
||||
lean_ctor_set_tag(x_113, 1);
|
||||
}
|
||||
lean_ctor_set(x_111, 0, x_105);
|
||||
lean_ctor_set(x_111, 1, x_109);
|
||||
return x_111;
|
||||
lean_ctor_set(x_113, 0, x_107);
|
||||
lean_ctor_set(x_113, 1, x_111);
|
||||
return x_113;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_8;
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
|
|
@ -16313,7 +16324,7 @@ return x_11;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_letToHave___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12;
|
||||
x_7 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(x_1, x_3, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
|
|
@ -16322,8 +16333,9 @@ lean_inc(x_9);
|
|||
lean_dec_ref(x_7);
|
||||
x_10 = lean_alloc_closure((void*)(l___private_Lean_Meta_LetToHave_0__Lean_Meta_LetToHave_main), 6, 1);
|
||||
lean_closure_set(x_10, 0, x_8);
|
||||
x_11 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_10, x_2, x_3, x_4, x_5, x_9);
|
||||
return x_11;
|
||||
x_11 = 1;
|
||||
x_12 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_10, x_11, x_2, x_3, x_4, x_5, x_9);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_letToHave___closed__0() {
|
||||
|
|
@ -16361,6 +16373,24 @@ lean_dec(x_1);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg___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_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_9; lean_object* x_10;
|
||||
x_9 = lean_unbox(x_3);
|
||||
x_10 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
1705
stage0/stdlib/Lean/Meta/SizeOf.c
generated
1705
stage0/stdlib/Lean/Meta/SizeOf.c
generated
File diff suppressed because it is too large
Load diff
1607
stage0/stdlib/Lean/Meta/Tactic/AuxLemma.c
generated
1607
stage0/stdlib/Lean/Meta/Tactic/AuxLemma.c
generated
File diff suppressed because it is too large
Load diff
14
stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c
generated
14
stage0/stdlib/Lean/Meta/Tactic/Grind/Canon.c
generated
|
|
@ -25,7 +25,6 @@ static lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_
|
|||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Canon_0__Lean_Meta_Grind_Canon_get_x27___redArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_PRange_RangeIterator_instIteratorLoop_loop___at___Std_PRange_RangeIterator_instIteratorLoop_loop___at___Lean_Meta_Grind_Canon_canon_visit_spec__7_spec__7___redArg___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Canon_canon_visit_spec__5(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_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_Meta_Grind_Canon_canon_visit_spec__9___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -183,6 +182,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Canon_0__Lean_Meta_G
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Canon_canonImplicit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Canon_canon___lam__0(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_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Canon_0__Lean_Meta_Grind_Canon_isDefEqBounded___lam__0___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_Canon_canon_visit___closed__5;
|
||||
lean_object* l_instBEqProd___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -7035,7 +7035,7 @@ x_22 = lean_ctor_get(x_17, 1);
|
|||
lean_inc_ref(x_22);
|
||||
lean_dec_ref(x_17);
|
||||
lean_inc_ref(x_4);
|
||||
x_23 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_22, x_4);
|
||||
x_23 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_22, x_4);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_24;
|
||||
|
|
@ -8457,7 +8457,7 @@ x_330 = lean_ctor_get(x_17, 1);
|
|||
lean_inc_ref(x_330);
|
||||
lean_dec_ref(x_17);
|
||||
lean_inc_ref(x_4);
|
||||
x_331 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_330, x_4);
|
||||
x_331 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_330, x_4);
|
||||
if (lean_obj_tag(x_331) == 0)
|
||||
{
|
||||
lean_object* x_332;
|
||||
|
|
@ -13643,7 +13643,7 @@ x_205 = lean_ctor_get(x_201, 2);
|
|||
lean_inc_ref(x_205);
|
||||
lean_dec_ref(x_201);
|
||||
lean_inc(x_197);
|
||||
x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_205, x_197);
|
||||
x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_205, x_197);
|
||||
if (lean_obj_tag(x_206) == 0)
|
||||
{
|
||||
uint8_t x_207;
|
||||
|
|
@ -13699,7 +13699,7 @@ x_212 = lean_ctor_get(x_201, 2);
|
|||
lean_inc_ref(x_212);
|
||||
lean_dec_ref(x_201);
|
||||
lean_inc(x_197);
|
||||
x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_212, x_197);
|
||||
x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_212, x_197);
|
||||
if (lean_obj_tag(x_213) == 0)
|
||||
{
|
||||
uint8_t x_214;
|
||||
|
|
@ -14582,7 +14582,7 @@ x_205 = lean_ctor_get(x_201, 2);
|
|||
lean_inc_ref(x_205);
|
||||
lean_dec_ref(x_201);
|
||||
lean_inc(x_197);
|
||||
x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_205, x_197);
|
||||
x_206 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_205, x_197);
|
||||
if (lean_obj_tag(x_206) == 0)
|
||||
{
|
||||
uint8_t x_207;
|
||||
|
|
@ -14638,7 +14638,7 @@ x_212 = lean_ctor_get(x_201, 2);
|
|||
lean_inc_ref(x_212);
|
||||
lean_dec_ref(x_201);
|
||||
lean_inc(x_197);
|
||||
x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_212, x_197);
|
||||
x_213 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_212, x_197);
|
||||
if (lean_obj_tag(x_213) == 0)
|
||||
{
|
||||
uint8_t x_214;
|
||||
|
|
|
|||
37
stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c
generated
37
stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c
generated
|
|
@ -61,7 +61,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsa
|
|||
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___Lean_Meta_Simp_congr_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_cacheResult(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___Lean_Meta_transformWithCache_visit_visitLet___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__7_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -87,6 +86,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Sim
|
|||
lean_object* l_instBEqOfDecidableEq___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_simpHaveTelescope_simpHaveTelescopeAux___closed__13;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToFVarId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_eqv___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpForall___lam__1(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Expr_withAppAux___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__2_spec__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_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -565,6 +565,7 @@ lean_object* lean_array_fget(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Meta_mkOfEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_simpHaveTelescope_simpHaveTelescopeAux___lam__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___Lean_Meta_Simp_processCongrHypothesis_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addTrace___at___Lean_Meta_Simp_congrArgs_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Option_get___at_____private_Lean_Util_Profile_0__Lean_get__profiler_spec__0(lean_object*, lean_object*);
|
||||
|
|
@ -603,6 +604,7 @@ static lean_object* l_Lean_Meta_Simp_simpForall___lam__3___closed__4;
|
|||
static lean_object* l_Lean_Meta_Simp_withNewLemmas___redArg___closed__6;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_doNotVisit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_instInhabitedHaveTelescopeInfo___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_reprHeadIndex____x40_Lean_HeadIndex___hyg_311_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___Lean_Meta_Simp_trySimpCongrTheorem_x3f_spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
|
|
@ -617,6 +619,7 @@ LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at_____private_Lean_Meta_Tactic
|
|||
lean_object* l_Lean_indentExpr(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__9___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_dsimpGoal_spec__0___redArg___closed__8;
|
||||
static lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpLoop_visitPreContinue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_dsimpGoal___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -642,6 +645,7 @@ static lean_object* l_Lean_Meta_simpGoal___lam__0___closed__2;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_transformWithCache_visit_visitForall___at___Lean_Meta_transformWithCache_visit___at_____private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimpImpl_spec__0_spec__6___lam__0(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_foldRawNatLit___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpLoop_visitPostContinue___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* l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f_spec__0___redArg(lean_object*, lean_object*, size_t, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Simp_getHaveTelescopeInfo___closed__0;
|
||||
static lean_object* l_Lean_Meta_Simp_withNewLemmas___redArg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Simp_backward_dsimp_proofs;
|
||||
|
|
@ -33082,6 +33086,33 @@ return x_23;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Expr_eqv___boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; uint64_t x_4; size_t x_5; lean_object* x_6;
|
||||
x_3 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0;
|
||||
x_4 = l_Lean_Expr_hash(x_2);
|
||||
x_5 = lean_uint64_to_usize(x_4);
|
||||
x_6 = l_Lean_PersistentHashMap_findAux___at___Lean_PersistentHashMap_find_x3f_spec__0___redArg(x_3, x_1, x_5, x_2);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -33096,7 +33127,7 @@ x_5 = lean_ctor_get(x_1, 1);
|
|||
lean_inc_ref(x_5);
|
||||
lean_dec_ref(x_1);
|
||||
lean_inc_ref(x_2);
|
||||
x_6 = l_Lean_PersistentHashMap_find_x3f___at___Lean_Meta_mkAuxLemma_spec__1___redArg(x_5, x_2);
|
||||
x_6 = l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg(x_5, x_2);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22;
|
||||
|
|
@ -44316,6 +44347,8 @@ l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__0 = _init_l_Lean_Meta_Simp_
|
|||
lean_mark_persistent(l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__0);
|
||||
l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__1 = _init_l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Simp_simpLoop_visitPreContinue___closed__1);
|
||||
l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0 = _init_l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0();
|
||||
lean_mark_persistent(l_Lean_PersistentHashMap_find_x3f___at___Lean_SMap_find_x3f___at___Lean_Meta_Simp_simpLoop_spec__0_spec__0___redArg___closed__0);
|
||||
l_Lean_Meta_Simp_simpLoop___closed__0 = _init_l_Lean_Meta_Simp_simpLoop___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Simp_simpLoop___closed__0);
|
||||
l_Lean_Meta_Simp_simpLoop___closed__1 = _init_l_Lean_Meta_Simp_simpLoop___closed__1();
|
||||
|
|
|
|||
626
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c
generated
626
stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c
generated
|
|
@ -344,7 +344,7 @@ lean_object* l_Lean_Expr_appFn_x21(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at___Lean_Meta_Simp_ignoreEquations_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkBadRewrite(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isPerm___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_erase___redArg___lam__2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_ppOrigin___redArg___closed__1;
|
||||
lean_object* l_List_appendTR___redArg(lean_object*, lean_object*);
|
||||
|
|
@ -522,7 +522,7 @@ size_t lean_usize_shift_left(size_t, size_t);
|
|||
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at___Lean_Meta_DiscrTree_insertCore___at___Lean_Meta_SimpTheorems_addSimpTheorem_spec__0_spec__5(lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_binInsertM___at_____private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at___Lean_Meta_DiscrTree_insertCore___at___Lean_Meta_SimpTheorems_addSimpTheorem_spec__0_spec__0_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_SimpExtension_getTheorems___redArg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -2195,11 +2195,12 @@ return x_7;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_isRflTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
lean_object* x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_5 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_isRflTheoremCore), 4, 1);
|
||||
lean_closure_set(x_5, 0, x_1);
|
||||
x_6 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_5, x_2, x_3, x_4);
|
||||
return x_6;
|
||||
x_6 = 1;
|
||||
x_7 = l_Lean_withoutExporting___at___Lean_compileDecls_doCompile_spec__0___redArg(x_5, x_6, x_2, x_3, x_4);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_isRflProof___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
|
|
@ -2266,11 +2267,12 @@ return x_16;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_isRflProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
lean_object* x_7; uint8_t x_8; lean_object* x_9;
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_Meta_isRflProof___lam__0), 6, 1);
|
||||
lean_closure_set(x_7, 0, x_1);
|
||||
x_8 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_7, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_8;
|
||||
x_8 = 1;
|
||||
x_9 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_7, x_8, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_instToFormatSimpTheorem___lam__0(lean_object* x_1) {
|
||||
|
|
@ -7740,7 +7742,7 @@ lean_inc(x_12);
|
|||
lean_inc_ref(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc_ref(x_9);
|
||||
x_31 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_30, x_9, x_10, x_11, x_12, x_22);
|
||||
x_31 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_30, x_2, x_9, x_10, x_11, x_12, x_22);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
|
|
@ -7901,7 +7903,7 @@ lean_inc(x_13);
|
|||
lean_inc_ref(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc_ref(x_10);
|
||||
x_32 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_31, x_10, x_11, x_12, x_13, x_23);
|
||||
x_32 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_31, x_2, x_10, x_11, x_12, x_13, x_23);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
|
|
@ -8094,71 +8096,72 @@ uint8_t x_42;
|
|||
x_42 = lean_unbox(x_28);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_13);
|
||||
x_43 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3;
|
||||
x_44 = l_Lean_Expr_const___override(x_1, x_19);
|
||||
x_45 = lean_box(x_2);
|
||||
x_46 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7);
|
||||
lean_closure_set(x_46, 0, x_30);
|
||||
lean_closure_set(x_46, 1, x_21);
|
||||
lean_closure_set(x_46, 2, x_43);
|
||||
lean_closure_set(x_46, 3, x_44);
|
||||
lean_closure_set(x_46, 4, x_45);
|
||||
lean_closure_set(x_46, 5, x_4);
|
||||
lean_closure_set(x_46, 6, x_28);
|
||||
x_47 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_46, x_5, x_6, x_7, x_8, x_29);
|
||||
if (lean_obj_tag(x_47) == 0)
|
||||
x_43 = 1;
|
||||
x_44 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3;
|
||||
x_45 = l_Lean_Expr_const___override(x_1, x_19);
|
||||
x_46 = lean_box(x_2);
|
||||
x_47 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7);
|
||||
lean_closure_set(x_47, 0, x_30);
|
||||
lean_closure_set(x_47, 1, x_21);
|
||||
lean_closure_set(x_47, 2, x_44);
|
||||
lean_closure_set(x_47, 3, x_45);
|
||||
lean_closure_set(x_47, 4, x_46);
|
||||
lean_closure_set(x_47, 5, x_4);
|
||||
lean_closure_set(x_47, 6, x_28);
|
||||
x_48 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_47, x_43, x_5, x_6, x_7, x_8, x_29);
|
||||
if (lean_obj_tag(x_48) == 0)
|
||||
{
|
||||
uint8_t x_48;
|
||||
x_48 = !lean_is_exclusive(x_47);
|
||||
if (x_48 == 0)
|
||||
uint8_t x_49;
|
||||
x_49 = !lean_is_exclusive(x_48);
|
||||
if (x_49 == 0)
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_47, 0);
|
||||
x_50 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1;
|
||||
x_51 = lean_array_push(x_50, x_49);
|
||||
lean_ctor_set(x_47, 0, x_51);
|
||||
return x_47;
|
||||
lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_50 = lean_ctor_get(x_48, 0);
|
||||
x_51 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1;
|
||||
x_52 = lean_array_push(x_51, x_50);
|
||||
lean_ctor_set(x_48, 0, x_52);
|
||||
return x_48;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_52 = lean_ctor_get(x_47, 0);
|
||||
x_53 = lean_ctor_get(x_47, 1);
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57;
|
||||
x_53 = lean_ctor_get(x_48, 0);
|
||||
x_54 = lean_ctor_get(x_48, 1);
|
||||
lean_inc(x_54);
|
||||
lean_inc(x_53);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_47);
|
||||
x_54 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1;
|
||||
x_55 = lean_array_push(x_54, x_52);
|
||||
x_56 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_53);
|
||||
return x_56;
|
||||
lean_dec(x_48);
|
||||
x_55 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1;
|
||||
x_56 = lean_array_push(x_55, x_53);
|
||||
x_57 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_57, 0, x_56);
|
||||
lean_ctor_set(x_57, 1, x_54);
|
||||
return x_57;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_57;
|
||||
x_57 = !lean_is_exclusive(x_47);
|
||||
if (x_57 == 0)
|
||||
uint8_t x_58;
|
||||
x_58 = !lean_is_exclusive(x_48);
|
||||
if (x_58 == 0)
|
||||
{
|
||||
return x_47;
|
||||
return x_48;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_58 = lean_ctor_get(x_47, 0);
|
||||
x_59 = lean_ctor_get(x_47, 1);
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
x_59 = lean_ctor_get(x_48, 0);
|
||||
x_60 = lean_ctor_get(x_48, 1);
|
||||
lean_inc(x_60);
|
||||
lean_inc(x_59);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_47);
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
return x_60;
|
||||
lean_dec(x_48);
|
||||
x_61 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_59);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
return x_61;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -8232,7 +8235,7 @@ return x_40;
|
|||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_61;
|
||||
uint8_t x_62;
|
||||
lean_dec(x_23);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec_ref(x_21);
|
||||
|
|
@ -8243,29 +8246,29 @@ lean_dec_ref(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_61 = !lean_is_exclusive(x_27);
|
||||
if (x_61 == 0)
|
||||
x_62 = !lean_is_exclusive(x_27);
|
||||
if (x_62 == 0)
|
||||
{
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
x_62 = lean_ctor_get(x_27, 0);
|
||||
x_63 = lean_ctor_get(x_27, 1);
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_63 = lean_ctor_get(x_27, 0);
|
||||
x_64 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_27);
|
||||
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;
|
||||
x_65 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_63);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
return x_65;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_65;
|
||||
uint8_t x_66;
|
||||
lean_dec(x_23);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec_ref(x_21);
|
||||
|
|
@ -8276,29 +8279,29 @@ lean_dec_ref(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_65 = !lean_is_exclusive(x_25);
|
||||
if (x_65 == 0)
|
||||
x_66 = !lean_is_exclusive(x_25);
|
||||
if (x_66 == 0)
|
||||
{
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_66 = lean_ctor_get(x_25, 0);
|
||||
x_67 = lean_ctor_get(x_25, 1);
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69;
|
||||
x_67 = lean_ctor_get(x_25, 0);
|
||||
x_68 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_68);
|
||||
lean_inc(x_67);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_25);
|
||||
x_68 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_68, 0, x_66);
|
||||
lean_ctor_set(x_68, 1, x_67);
|
||||
return x_68;
|
||||
x_69 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
lean_ctor_set(x_69, 1, x_68);
|
||||
return x_69;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_69;
|
||||
uint8_t x_70;
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec_ref(x_21);
|
||||
lean_dec(x_20);
|
||||
|
|
@ -8308,382 +8311,383 @@ lean_dec_ref(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_69 = !lean_is_exclusive(x_22);
|
||||
if (x_69 == 0)
|
||||
x_70 = !lean_is_exclusive(x_22);
|
||||
if (x_70 == 0)
|
||||
{
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_70 = lean_ctor_get(x_22, 0);
|
||||
x_71 = lean_ctor_get(x_22, 1);
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73;
|
||||
x_71 = lean_ctor_get(x_22, 0);
|
||||
x_72 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_72);
|
||||
lean_inc(x_71);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_22);
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_72, 0, x_70);
|
||||
lean_ctor_set(x_72, 1, x_71);
|
||||
return x_72;
|
||||
x_73 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_71);
|
||||
lean_ctor_set(x_73, 1, x_72);
|
||||
return x_73;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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; uint8_t x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86;
|
||||
x_73 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 8);
|
||||
x_74 = lean_ctor_get(x_5, 1);
|
||||
x_75 = lean_ctor_get(x_5, 2);
|
||||
x_76 = lean_ctor_get(x_5, 3);
|
||||
x_77 = lean_ctor_get(x_5, 4);
|
||||
x_78 = lean_ctor_get(x_5, 5);
|
||||
x_79 = lean_ctor_get(x_5, 6);
|
||||
x_80 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 9);
|
||||
x_81 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 10);
|
||||
uint8_t 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; uint8_t x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_74 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 8);
|
||||
x_75 = lean_ctor_get(x_5, 1);
|
||||
x_76 = lean_ctor_get(x_5, 2);
|
||||
x_77 = lean_ctor_get(x_5, 3);
|
||||
x_78 = lean_ctor_get(x_5, 4);
|
||||
x_79 = lean_ctor_get(x_5, 5);
|
||||
x_80 = lean_ctor_get(x_5, 6);
|
||||
x_81 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 9);
|
||||
x_82 = lean_ctor_get_uint8(x_5, sizeof(void*)*7 + 10);
|
||||
lean_inc(x_80);
|
||||
lean_inc(x_79);
|
||||
lean_inc(x_78);
|
||||
lean_inc(x_77);
|
||||
lean_inc(x_76);
|
||||
lean_inc(x_75);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_5);
|
||||
x_82 = lean_box(0);
|
||||
x_83 = lean_box(0);
|
||||
lean_inc(x_13);
|
||||
x_83 = l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_registerCoercion_spec__0_spec__0(x_13, x_82);
|
||||
lean_inc(x_83);
|
||||
x_84 = l_List_mapTR_loop___at___Lean_mkConstWithLevelParams___at___Lean_Meta_registerCoercion_spec__0_spec__0(x_13, x_83);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_1);
|
||||
x_84 = l_Lean_Expr_const___override(x_1, x_83);
|
||||
x_85 = lean_alloc_ctor(0, 7, 11);
|
||||
lean_ctor_set(x_85, 0, x_15);
|
||||
lean_ctor_set(x_85, 1, x_74);
|
||||
lean_ctor_set(x_85, 2, x_75);
|
||||
lean_ctor_set(x_85, 3, x_76);
|
||||
lean_ctor_set(x_85, 4, x_77);
|
||||
lean_ctor_set(x_85, 5, x_78);
|
||||
lean_ctor_set(x_85, 6, x_79);
|
||||
lean_ctor_set_uint64(x_85, sizeof(void*)*7, x_16);
|
||||
lean_ctor_set_uint8(x_85, sizeof(void*)*7 + 8, x_73);
|
||||
lean_ctor_set_uint8(x_85, sizeof(void*)*7 + 9, x_80);
|
||||
lean_ctor_set_uint8(x_85, sizeof(void*)*7 + 10, x_81);
|
||||
x_85 = l_Lean_Expr_const___override(x_1, x_84);
|
||||
x_86 = lean_alloc_ctor(0, 7, 11);
|
||||
lean_ctor_set(x_86, 0, x_15);
|
||||
lean_ctor_set(x_86, 1, x_75);
|
||||
lean_ctor_set(x_86, 2, x_76);
|
||||
lean_ctor_set(x_86, 3, x_77);
|
||||
lean_ctor_set(x_86, 4, x_78);
|
||||
lean_ctor_set(x_86, 5, x_79);
|
||||
lean_ctor_set(x_86, 6, x_80);
|
||||
lean_ctor_set_uint64(x_86, sizeof(void*)*7, x_16);
|
||||
lean_ctor_set_uint8(x_86, sizeof(void*)*7 + 8, x_74);
|
||||
lean_ctor_set_uint8(x_86, sizeof(void*)*7 + 9, x_81);
|
||||
lean_ctor_set_uint8(x_86, sizeof(void*)*7 + 10, x_82);
|
||||
lean_inc(x_8);
|
||||
lean_inc_ref(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc_ref(x_86);
|
||||
lean_inc_ref(x_85);
|
||||
lean_inc_ref(x_84);
|
||||
x_86 = lean_infer_type(x_84, x_85, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_86) == 0)
|
||||
x_87 = lean_infer_type(x_85, x_86, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_87) == 0)
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_86, 0);
|
||||
lean_inc(x_87);
|
||||
x_88 = lean_ctor_get(x_86, 1);
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90;
|
||||
x_88 = lean_ctor_get(x_87, 0);
|
||||
lean_inc(x_88);
|
||||
lean_dec_ref(x_86);
|
||||
x_89 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_89);
|
||||
lean_dec_ref(x_87);
|
||||
lean_inc(x_8);
|
||||
lean_inc_ref(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc_ref(x_85);
|
||||
lean_inc(x_87);
|
||||
x_89 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_87, x_85, x_6, x_7, x_8, x_88);
|
||||
if (lean_obj_tag(x_89) == 0)
|
||||
lean_inc_ref(x_86);
|
||||
lean_inc(x_88);
|
||||
x_90 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_checkTypeIsProp(x_88, x_86, x_6, x_7, x_8, x_89);
|
||||
if (lean_obj_tag(x_90) == 0)
|
||||
{
|
||||
lean_object* x_90; lean_object* x_91;
|
||||
x_90 = lean_ctor_get(x_89, 1);
|
||||
lean_inc(x_90);
|
||||
lean_dec_ref(x_89);
|
||||
lean_object* x_91; lean_object* x_92;
|
||||
x_91 = lean_ctor_get(x_90, 1);
|
||||
lean_inc(x_91);
|
||||
lean_dec_ref(x_90);
|
||||
lean_inc(x_8);
|
||||
lean_inc_ref(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc_ref(x_85);
|
||||
lean_inc(x_87);
|
||||
x_91 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess(x_87, x_85, x_6, x_7, x_8, x_90);
|
||||
if (lean_obj_tag(x_91) == 0)
|
||||
lean_inc_ref(x_86);
|
||||
lean_inc(x_88);
|
||||
x_92 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_shouldPreprocess(x_88, x_86, x_6, x_7, x_8, x_91);
|
||||
if (lean_obj_tag(x_92) == 0)
|
||||
{
|
||||
lean_object* x_92; lean_object* x_93; lean_object* x_94;
|
||||
x_92 = lean_ctor_get(x_91, 0);
|
||||
lean_inc(x_92);
|
||||
x_93 = lean_ctor_get(x_91, 1);
|
||||
lean_object* x_93; lean_object* x_94; lean_object* x_95;
|
||||
x_93 = lean_ctor_get(x_92, 0);
|
||||
lean_inc(x_93);
|
||||
lean_dec_ref(x_91);
|
||||
x_94 = lean_ctor_get(x_92, 1);
|
||||
lean_inc(x_94);
|
||||
lean_dec_ref(x_92);
|
||||
lean_inc(x_1);
|
||||
x_94 = lean_alloc_ctor(0, 1, 2);
|
||||
lean_ctor_set(x_94, 0, x_1);
|
||||
lean_ctor_set_uint8(x_94, sizeof(void*)*1, x_2);
|
||||
lean_ctor_set_uint8(x_94, sizeof(void*)*1 + 1, x_3);
|
||||
x_95 = lean_alloc_ctor(0, 1, 2);
|
||||
lean_ctor_set(x_95, 0, x_1);
|
||||
lean_ctor_set_uint8(x_95, sizeof(void*)*1, x_2);
|
||||
lean_ctor_set_uint8(x_95, sizeof(void*)*1 + 1, x_3);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
uint8_t x_106;
|
||||
x_106 = lean_unbox(x_92);
|
||||
if (x_106 == 0)
|
||||
uint8_t x_107;
|
||||
x_107 = lean_unbox(x_93);
|
||||
if (x_107 == 0)
|
||||
{
|
||||
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111;
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_83);
|
||||
uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113;
|
||||
lean_dec(x_88);
|
||||
lean_dec(x_84);
|
||||
lean_dec(x_13);
|
||||
x_107 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3;
|
||||
x_108 = l_Lean_Expr_const___override(x_1, x_82);
|
||||
x_109 = lean_box(x_2);
|
||||
x_110 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7);
|
||||
lean_closure_set(x_110, 0, x_94);
|
||||
lean_closure_set(x_110, 1, x_84);
|
||||
lean_closure_set(x_110, 2, x_107);
|
||||
lean_closure_set(x_110, 3, x_108);
|
||||
lean_closure_set(x_110, 4, x_109);
|
||||
lean_closure_set(x_110, 5, x_4);
|
||||
lean_closure_set(x_110, 6, x_92);
|
||||
x_111 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_110, x_85, x_6, x_7, x_8, x_93);
|
||||
if (lean_obj_tag(x_111) == 0)
|
||||
x_108 = 1;
|
||||
x_109 = l_List_forIn_x27_loop___at___List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0_spec__0___redArg___closed__3;
|
||||
x_110 = l_Lean_Expr_const___override(x_1, x_83);
|
||||
x_111 = lean_box(x_2);
|
||||
x_112 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_mkSimpTheoremCore___boxed), 12, 7);
|
||||
lean_closure_set(x_112, 0, x_95);
|
||||
lean_closure_set(x_112, 1, x_85);
|
||||
lean_closure_set(x_112, 2, x_109);
|
||||
lean_closure_set(x_112, 3, x_110);
|
||||
lean_closure_set(x_112, 4, x_111);
|
||||
lean_closure_set(x_112, 5, x_4);
|
||||
lean_closure_set(x_112, 6, x_93);
|
||||
x_113 = l_Lean_withoutExporting___at___Lean_Meta_letToHave_spec__0___redArg(x_112, x_108, x_86, x_6, x_7, x_8, x_94);
|
||||
if (lean_obj_tag(x_113) == 0)
|
||||
{
|
||||
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117;
|
||||
x_112 = lean_ctor_get(x_111, 0);
|
||||
lean_inc(x_112);
|
||||
x_113 = lean_ctor_get(x_111, 1);
|
||||
lean_inc(x_113);
|
||||
if (lean_is_exclusive(x_111)) {
|
||||
lean_ctor_release(x_111, 0);
|
||||
lean_ctor_release(x_111, 1);
|
||||
x_114 = x_111;
|
||||
lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119;
|
||||
x_114 = lean_ctor_get(x_113, 0);
|
||||
lean_inc(x_114);
|
||||
x_115 = lean_ctor_get(x_113, 1);
|
||||
lean_inc(x_115);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_116 = x_113;
|
||||
} else {
|
||||
lean_dec_ref(x_111);
|
||||
x_114 = lean_box(0);
|
||||
lean_dec_ref(x_113);
|
||||
x_116 = lean_box(0);
|
||||
}
|
||||
x_115 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1;
|
||||
x_116 = lean_array_push(x_115, x_112);
|
||||
if (lean_is_scalar(x_114)) {
|
||||
x_117 = lean_alloc_ctor(0, 2, 0);
|
||||
x_117 = l_Lean_Meta_mkSimpTheoremFromConst___closed__1;
|
||||
x_118 = lean_array_push(x_117, x_114);
|
||||
if (lean_is_scalar(x_116)) {
|
||||
x_119 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_117 = x_114;
|
||||
x_119 = x_116;
|
||||
}
|
||||
lean_ctor_set(x_117, 0, x_116);
|
||||
lean_ctor_set(x_117, 1, x_113);
|
||||
return x_117;
|
||||
lean_ctor_set(x_119, 0, x_118);
|
||||
lean_ctor_set(x_119, 1, x_115);
|
||||
return x_119;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121;
|
||||
x_118 = lean_ctor_get(x_111, 0);
|
||||
lean_inc(x_118);
|
||||
x_119 = lean_ctor_get(x_111, 1);
|
||||
lean_inc(x_119);
|
||||
if (lean_is_exclusive(x_111)) {
|
||||
lean_ctor_release(x_111, 0);
|
||||
lean_ctor_release(x_111, 1);
|
||||
x_120 = x_111;
|
||||
lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123;
|
||||
x_120 = lean_ctor_get(x_113, 0);
|
||||
lean_inc(x_120);
|
||||
x_121 = lean_ctor_get(x_113, 1);
|
||||
lean_inc(x_121);
|
||||
if (lean_is_exclusive(x_113)) {
|
||||
lean_ctor_release(x_113, 0);
|
||||
lean_ctor_release(x_113, 1);
|
||||
x_122 = x_113;
|
||||
} else {
|
||||
lean_dec_ref(x_111);
|
||||
x_120 = lean_box(0);
|
||||
lean_dec_ref(x_113);
|
||||
x_122 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_120)) {
|
||||
x_121 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_122)) {
|
||||
x_123 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_121 = x_120;
|
||||
x_123 = x_122;
|
||||
}
|
||||
lean_ctor_set(x_121, 0, x_118);
|
||||
lean_ctor_set(x_121, 1, x_119);
|
||||
return x_121;
|
||||
lean_ctor_set(x_123, 0, x_120);
|
||||
lean_ctor_set(x_123, 1, x_121);
|
||||
return x_123;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_92);
|
||||
lean_dec(x_93);
|
||||
lean_dec(x_1);
|
||||
goto block_105;
|
||||
goto block_106;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_92);
|
||||
lean_dec(x_93);
|
||||
lean_dec(x_1);
|
||||
goto block_105;
|
||||
goto block_106;
|
||||
}
|
||||
block_105:
|
||||
block_106:
|
||||
{
|
||||
uint8_t x_95; lean_object* x_96;
|
||||
x_95 = 1;
|
||||
uint8_t x_96; lean_object* x_97;
|
||||
x_96 = 1;
|
||||
lean_inc(x_8);
|
||||
lean_inc_ref(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc_ref(x_85);
|
||||
x_96 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_95, x_84, x_87, x_85, x_6, x_7, x_8, x_93);
|
||||
if (lean_obj_tag(x_96) == 0)
|
||||
lean_inc_ref(x_86);
|
||||
x_97 = l___private_Lean_Meta_Tactic_Simp_SimpTheorems_0__Lean_Meta_preprocess_go(x_3, x_96, x_85, x_88, x_86, x_6, x_7, x_8, x_94);
|
||||
if (lean_obj_tag(x_97) == 0)
|
||||
{
|
||||
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_97 = lean_ctor_get(x_96, 0);
|
||||
lean_inc(x_97);
|
||||
x_98 = lean_ctor_get(x_96, 1);
|
||||
lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101;
|
||||
x_98 = lean_ctor_get(x_97, 0);
|
||||
lean_inc(x_98);
|
||||
lean_dec_ref(x_96);
|
||||
x_99 = l_Lean_Meta_mkSimpTheoremFromConst___closed__0;
|
||||
lean_inc(x_97);
|
||||
x_100 = l_List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0___redArg(x_13, x_95, x_83, x_94, x_2, x_4, x_97, x_97, x_99, x_85, x_6, x_7, x_8, x_98);
|
||||
lean_dec(x_97);
|
||||
return x_100;
|
||||
x_99 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_99);
|
||||
lean_dec_ref(x_97);
|
||||
x_100 = l_Lean_Meta_mkSimpTheoremFromConst___closed__0;
|
||||
lean_inc(x_98);
|
||||
x_101 = l_List_forIn_x27_loop___at___Lean_Meta_mkSimpTheoremFromConst_spec__0___redArg(x_13, x_96, x_84, x_95, x_2, x_4, x_98, x_98, x_100, x_86, x_6, x_7, x_8, x_99);
|
||||
lean_dec(x_98);
|
||||
return x_101;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
lean_dec_ref(x_94);
|
||||
lean_dec_ref(x_85);
|
||||
lean_dec(x_83);
|
||||
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105;
|
||||
lean_dec_ref(x_95);
|
||||
lean_dec_ref(x_86);
|
||||
lean_dec(x_84);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
x_101 = lean_ctor_get(x_96, 0);
|
||||
lean_inc(x_101);
|
||||
x_102 = lean_ctor_get(x_96, 1);
|
||||
x_102 = lean_ctor_get(x_97, 0);
|
||||
lean_inc(x_102);
|
||||
if (lean_is_exclusive(x_96)) {
|
||||
lean_ctor_release(x_96, 0);
|
||||
lean_ctor_release(x_96, 1);
|
||||
x_103 = x_96;
|
||||
x_103 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_103);
|
||||
if (lean_is_exclusive(x_97)) {
|
||||
lean_ctor_release(x_97, 0);
|
||||
lean_ctor_release(x_97, 1);
|
||||
x_104 = x_97;
|
||||
} else {
|
||||
lean_dec_ref(x_96);
|
||||
x_103 = lean_box(0);
|
||||
lean_dec_ref(x_97);
|
||||
x_104 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_103)) {
|
||||
x_104 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_104)) {
|
||||
x_105 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_104 = x_103;
|
||||
x_105 = x_104;
|
||||
}
|
||||
lean_ctor_set(x_104, 0, x_101);
|
||||
lean_ctor_set(x_104, 1, x_102);
|
||||
return x_104;
|
||||
lean_ctor_set(x_105, 0, x_102);
|
||||
lean_ctor_set(x_105, 1, x_103);
|
||||
return x_105;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125;
|
||||
lean_dec(x_87);
|
||||
lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127;
|
||||
lean_dec(x_88);
|
||||
lean_dec_ref(x_86);
|
||||
lean_dec_ref(x_85);
|
||||
lean_dec_ref(x_84);
|
||||
lean_dec(x_83);
|
||||
lean_dec(x_84);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_122 = lean_ctor_get(x_91, 0);
|
||||
lean_inc(x_122);
|
||||
x_123 = lean_ctor_get(x_91, 1);
|
||||
lean_inc(x_123);
|
||||
if (lean_is_exclusive(x_91)) {
|
||||
lean_ctor_release(x_91, 0);
|
||||
lean_ctor_release(x_91, 1);
|
||||
x_124 = x_91;
|
||||
x_124 = lean_ctor_get(x_92, 0);
|
||||
lean_inc(x_124);
|
||||
x_125 = lean_ctor_get(x_92, 1);
|
||||
lean_inc(x_125);
|
||||
if (lean_is_exclusive(x_92)) {
|
||||
lean_ctor_release(x_92, 0);
|
||||
lean_ctor_release(x_92, 1);
|
||||
x_126 = x_92;
|
||||
} else {
|
||||
lean_dec_ref(x_91);
|
||||
x_124 = lean_box(0);
|
||||
lean_dec_ref(x_92);
|
||||
x_126 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_124)) {
|
||||
x_125 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_126)) {
|
||||
x_127 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_125 = x_124;
|
||||
x_127 = x_126;
|
||||
}
|
||||
lean_ctor_set(x_125, 0, x_122);
|
||||
lean_ctor_set(x_125, 1, x_123);
|
||||
return x_125;
|
||||
lean_ctor_set(x_127, 0, x_124);
|
||||
lean_ctor_set(x_127, 1, x_125);
|
||||
return x_127;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129;
|
||||
lean_dec(x_87);
|
||||
lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131;
|
||||
lean_dec(x_88);
|
||||
lean_dec_ref(x_86);
|
||||
lean_dec_ref(x_85);
|
||||
lean_dec_ref(x_84);
|
||||
lean_dec(x_83);
|
||||
lean_dec(x_84);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_126 = lean_ctor_get(x_89, 0);
|
||||
lean_inc(x_126);
|
||||
x_127 = lean_ctor_get(x_89, 1);
|
||||
lean_inc(x_127);
|
||||
if (lean_is_exclusive(x_89)) {
|
||||
lean_ctor_release(x_89, 0);
|
||||
lean_ctor_release(x_89, 1);
|
||||
x_128 = x_89;
|
||||
x_128 = lean_ctor_get(x_90, 0);
|
||||
lean_inc(x_128);
|
||||
x_129 = lean_ctor_get(x_90, 1);
|
||||
lean_inc(x_129);
|
||||
if (lean_is_exclusive(x_90)) {
|
||||
lean_ctor_release(x_90, 0);
|
||||
lean_ctor_release(x_90, 1);
|
||||
x_130 = x_90;
|
||||
} else {
|
||||
lean_dec_ref(x_89);
|
||||
x_128 = lean_box(0);
|
||||
lean_dec_ref(x_90);
|
||||
x_130 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_128)) {
|
||||
x_129 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_130)) {
|
||||
x_131 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_129 = x_128;
|
||||
x_131 = x_130;
|
||||
}
|
||||
lean_ctor_set(x_129, 0, x_126);
|
||||
lean_ctor_set(x_129, 1, x_127);
|
||||
return x_129;
|
||||
lean_ctor_set(x_131, 0, x_128);
|
||||
lean_ctor_set(x_131, 1, x_129);
|
||||
return x_131;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133;
|
||||
lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135;
|
||||
lean_dec_ref(x_86);
|
||||
lean_dec_ref(x_85);
|
||||
lean_dec_ref(x_84);
|
||||
lean_dec(x_83);
|
||||
lean_dec(x_84);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_130 = lean_ctor_get(x_86, 0);
|
||||
lean_inc(x_130);
|
||||
x_131 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_131);
|
||||
if (lean_is_exclusive(x_86)) {
|
||||
lean_ctor_release(x_86, 0);
|
||||
lean_ctor_release(x_86, 1);
|
||||
x_132 = x_86;
|
||||
x_132 = lean_ctor_get(x_87, 0);
|
||||
lean_inc(x_132);
|
||||
x_133 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_133);
|
||||
if (lean_is_exclusive(x_87)) {
|
||||
lean_ctor_release(x_87, 0);
|
||||
lean_ctor_release(x_87, 1);
|
||||
x_134 = x_87;
|
||||
} else {
|
||||
lean_dec_ref(x_86);
|
||||
x_132 = lean_box(0);
|
||||
lean_dec_ref(x_87);
|
||||
x_134 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_132)) {
|
||||
x_133 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_134)) {
|
||||
x_135 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_133 = x_132;
|
||||
x_135 = x_134;
|
||||
}
|
||||
lean_ctor_set(x_133, 0, x_130);
|
||||
lean_ctor_set(x_133, 1, x_131);
|
||||
return x_133;
|
||||
lean_ctor_set(x_135, 0, x_132);
|
||||
lean_ctor_set(x_135, 1, x_133);
|
||||
return x_135;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_134;
|
||||
uint8_t x_136;
|
||||
lean_dec(x_8);
|
||||
lean_dec_ref(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec_ref(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_134 = !lean_is_exclusive(x_10);
|
||||
if (x_134 == 0)
|
||||
x_136 = !lean_is_exclusive(x_10);
|
||||
if (x_136 == 0)
|
||||
{
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_135; lean_object* x_136; lean_object* x_137;
|
||||
x_135 = lean_ctor_get(x_10, 0);
|
||||
x_136 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_136);
|
||||
lean_inc(x_135);
|
||||
lean_object* x_137; lean_object* x_138; lean_object* x_139;
|
||||
x_137 = lean_ctor_get(x_10, 0);
|
||||
x_138 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_138);
|
||||
lean_inc(x_137);
|
||||
lean_dec(x_10);
|
||||
x_137 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_137, 0, x_135);
|
||||
lean_ctor_set(x_137, 1, x_136);
|
||||
return x_137;
|
||||
x_139 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_139, 0, x_137);
|
||||
lean_ctor_set(x_139, 1, x_138);
|
||||
return x_139;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
71
stage0/stdlib/Lean/Modifiers.c
generated
71
stage0/stdlib/Lean/Modifiers.c
generated
|
|
@ -15,6 +15,7 @@ extern "C" {
|
|||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lean_isProtected___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_private_to_user_name(lean_object*);
|
||||
lean_object* l_Lean_Environment_header(lean_object*);
|
||||
static lean_object* l_Lean_initFn___closed__2____x40_Lean_Modifiers___hyg_3_;
|
||||
LEAN_EXPORT lean_object* l_Lean_isPrivateNameFromImportedModule___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addProtected(lean_object*, lean_object*);
|
||||
|
|
@ -25,6 +26,7 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Modifiers___hyg_3_(lean_objec
|
|||
LEAN_EXPORT uint8_t l_Lean_isProtected(lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_initFn___closed__1____x40_Lean_Modifiers___hyg_3_;
|
||||
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*, uint8_t);
|
||||
static lean_object* l_Lean_initFn___closed__0____x40_Lean_Modifiers___hyg_3_;
|
||||
lean_object* l_Lean_Environment_mainModule(lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
|
|
@ -34,6 +36,7 @@ lean_object* l_Lean_TagDeclarationExtension_tag(lean_object*, lean_object*, lean
|
|||
LEAN_EXPORT lean_object* l_Lean_protectedExt;
|
||||
static lean_object* l_Lean_addProtected___closed__0;
|
||||
lean_object* l_Lean_mkTagDeclarationExtension(lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t);
|
||||
lean_object* l_Lean_mkPrivateNameCore(lean_object*, lean_object*);
|
||||
static lean_object* _init_l_Lean_initFn___closed__0____x40_Lean_Modifiers___hyg_3_() {
|
||||
_start:
|
||||
|
|
@ -128,37 +131,64 @@ return x_3;
|
|||
LEAN_EXPORT uint8_t l_Lean_isPrivateNameFromImportedModule(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_private_to_user_name(x_2);
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = l_Lean_Environment_header(x_1);
|
||||
x_4 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 4);
|
||||
lean_dec_ref(x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
lean_inc(x_2);
|
||||
x_5 = lean_private_to_user_name(x_2);
|
||||
if (lean_obj_tag(x_5) == 0)
|
||||
{
|
||||
uint8_t x_4;
|
||||
lean_dec(x_2);
|
||||
x_4 = 0;
|
||||
lean_dec_ref(x_1);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; uint8_t x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Lean_mkPrivateName(x_1, x_5);
|
||||
x_7 = lean_name_eq(x_6, x_2);
|
||||
lean_object* x_6; lean_object* x_7; uint8_t x_8;
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
x_7 = l_Lean_mkPrivateName(x_1, x_6);
|
||||
lean_dec_ref(x_1);
|
||||
x_8 = lean_name_eq(x_7, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_6);
|
||||
if (x_7 == 0)
|
||||
lean_dec(x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = 1;
|
||||
return x_8;
|
||||
uint8_t x_9;
|
||||
x_9 = 1;
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = 0;
|
||||
return x_9;
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_10;
|
||||
lean_inc(x_2);
|
||||
lean_inc_ref(x_1);
|
||||
x_10 = l_Lean_Environment_contains(x_1, x_2, x_4);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; uint8_t x_12;
|
||||
x_11 = l_Lean_Environment_setExporting(x_1, x_10);
|
||||
x_12 = l_Lean_Environment_contains(x_11, x_2, x_4);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_13;
|
||||
lean_dec(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_13 = 0;
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -168,7 +198,6 @@ _start:
|
|||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Lean_isPrivateNameFromImportedModule(x_1, x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue