diff --git a/stage0/library/Init/Data/Hashable.c b/stage0/library/Init/Data/Hashable.c index 4f83bf282e..033b43627b 100644 --- a/stage0/library/Init/Data/Hashable.c +++ b/stage0/library/Init/Data/Hashable.c @@ -15,20 +15,28 @@ extern "C" { #endif lean_object* l_Option_Hashable(lean_object*); lean_object* l_String_Hashable___closed__1; +lean_object* l_List_hash___rarg___boxed(lean_object*, lean_object*); lean_object* l_String_Hashable; size_t l_Nat_hash(lean_object*); lean_object* l_Prod_Hashable___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_Hashable___rarg(lean_object*); +lean_object* l_List_foldl___main___at_List_hash___spec__1(lean_object*); +lean_object* l_List_hash(lean_object*); size_t l_Prod_Hashable___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Option_hash(lean_object*); size_t l_Option_hash___rarg(lean_object*, lean_object*); size_t lean_string_hash(lean_object*); lean_object* l_String_hash___boxed(lean_object*); lean_object* l_Nat_Hashable; +size_t l_List_foldl___main___at_List_hash___spec__1___rarg(lean_object*, size_t, lean_object*); +lean_object* l_List_Hashable(lean_object*); lean_object* l_Prod_Hashable(lean_object*, lean_object*); lean_object* l_mixHash___boxed(lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_List_hash___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Option_hash___rarg___boxed(lean_object*, lean_object*); size_t lean_usize_mix_hash(size_t, size_t); size_t lean_usize_of_nat(lean_object*); +size_t l_List_hash___rarg(lean_object*, lean_object*); lean_object* l_Nat_hash___boxed(lean_object*); lean_object* l_Option_Hashable___rarg(lean_object*); lean_object* l_Nat_Hashable___closed__1; @@ -199,6 +207,95 @@ x_2 = lean_alloc_closure((void*)(l_Option_Hashable___rarg), 1, 0); return x_2; } } +size_t l_List_foldl___main___at_List_hash___spec__1___rarg(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_dec(x_1); +return x_2; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +lean_inc(x_1); +x_6 = lean_apply_1(x_1, x_4); +x_7 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_8 = lean_usize_mix_hash(x_2, x_7); +x_2 = x_8; +x_3 = x_5; +goto _start; +} +} +} +lean_object* l_List_foldl___main___at_List_hash___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_foldl___main___at_List_hash___spec__1___rarg___boxed), 3, 0); +return x_2; +} +} +size_t l_List_hash___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; size_t x_4; +x_3 = 7; +x_4 = l_List_foldl___main___at_List_hash___spec__1___rarg(x_1, x_3, x_2); +return x_4; +} +} +lean_object* l_List_hash(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_hash___rarg___boxed), 2, 0); +return x_2; +} +} +lean_object* l_List_foldl___main___at_List_hash___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_List_foldl___main___at_List_hash___spec__1___rarg(x_1, x_4, x_3); +x_6 = lean_box_usize(x_5); +return x_6; +} +} +lean_object* l_List_hash___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; lean_object* x_4; +x_3 = l_List_hash___rarg(x_1, x_2); +x_4 = lean_box_usize(x_3); +return x_4; +} +} +lean_object* l_List_Hashable___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_hash___rarg___boxed), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_List_Hashable(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_List_Hashable___rarg), 1, 0); +return x_2; +} +} lean_object* initialize_Init_Data_UInt(lean_object*); lean_object* initialize_Init_Data_String_Default(lean_object*); static bool _G_initialized = false; diff --git a/stage0/library/Init/Lean/Compiler/ClosedTermCache.c b/stage0/library/Init/Lean/Compiler/ClosedTermCache.c index 193b5ca898..dfbaaa28cb 100644 --- a/stage0/library/Init/Lean/Compiler/ClosedTermCache.c +++ b/stage0/library/Init/Lean/Compiler/ClosedTermCache.c @@ -29,7 +29,7 @@ lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_getClosedTermName___ extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_closedTermCacheExt___elambda__2(lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkClosedTermCacheExtension___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_closedTermCacheExt___elambda__4___boxed(lean_object*); lean_object* lean_cache_closed_term_name(lean_object*, lean_object*, lean_object*); @@ -256,7 +256,7 @@ else lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_9 = lean_array_fget(x_4, x_5); x_10 = lean_array_fget(x_3, x_5); -x_11 = lean_expr_hash(x_9); +x_11 = l_Lean_Expr_hash(x_9); x_12 = 1; x_13 = x_1 - x_12; x_14 = 5; @@ -595,7 +595,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_hash(x_2); +x_7 = l_Lean_Expr_hash(x_2); x_8 = 1; x_9 = l_PersistentHashMap_insertAux___main___at_Lean_mkClosedTermCacheExtension___spec__3(x_5, x_7, x_8, x_2, x_3); x_10 = lean_unsigned_to_nat(1u); @@ -613,7 +613,7 @@ x_13 = lean_ctor_get(x_1, 1); lean_inc(x_13); lean_inc(x_12); lean_dec(x_1); -x_14 = lean_expr_hash(x_2); +x_14 = l_Lean_Expr_hash(x_2); x_15 = 1; x_16 = l_PersistentHashMap_insertAux___main___at_Lean_mkClosedTermCacheExtension___spec__3(x_12, x_14, x_15, x_2, x_3); x_17 = lean_unsigned_to_nat(1u); @@ -672,7 +672,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; le x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_array_get_size(x_1); -x_7 = lean_expr_hash(x_4); +x_7 = l_Lean_Expr_hash(x_4); x_8 = lean_usize_modn(x_7, x_6); lean_dec(x_6); x_9 = lean_array_uget(x_1, x_8); @@ -693,7 +693,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_15 = lean_array_get_size(x_1); -x_16 = lean_expr_hash(x_12); +x_16 = l_Lean_Expr_hash(x_12); x_17 = lean_usize_modn(x_16, x_15); lean_dec(x_15); x_18 = lean_array_uget(x_1, x_17); @@ -840,7 +840,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; le x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); x_7 = lean_array_get_size(x_6); -x_8 = lean_expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); x_11 = l_AssocList_contains___main___at_Lean_mkClosedTermCacheExtension___spec__7(x_2, x_10); @@ -890,7 +890,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_22 = lean_array_get_size(x_21); -x_23 = lean_expr_hash(x_2); +x_23 = l_Lean_Expr_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); x_26 = l_AssocList_contains___main___at_Lean_mkClosedTermCacheExtension___spec__7(x_2, x_25); @@ -2428,7 +2428,7 @@ _start: { lean_object* x_3; size_t x_4; lean_object* x_5; x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_expr_hash(x_2); +x_4 = l_Lean_Expr_hash(x_2); x_5 = l_PersistentHashMap_findAux___main___at_Lean_getClosedTermName___spec__3(x_3, x_4, x_2); return x_5; } @@ -2471,7 +2471,7 @@ _start: lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; x_3 = lean_ctor_get(x_1, 1); x_4 = lean_array_get_size(x_3); -x_5 = lean_expr_hash(x_2); +x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); diff --git a/stage0/library/Init/Lean/Compiler/ConstFolding.c b/stage0/library/Init/Lean/Compiler/ConstFolding.c index 0eb8bc28f5..bd5f89c138 100644 --- a/stage0/library/Init/Lean/Compiler/ConstFolding.c +++ b/stage0/library/Init/Lean/Compiler/ConstFolding.c @@ -56,6 +56,7 @@ lean_object* l_Lean_Compiler_getNumLit___main(lean_object*); lean_object* l_Lean_Compiler_getBoolLit___closed__2; lean_object* l_Lean_Compiler_numScalarTypes___closed__5; lean_object* l_Lean_Compiler_mkNatLe___closed__4; +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Compiler_unFoldFns___closed__7; lean_object* l_Lean_Compiler_natFoldFns___closed__12; extern lean_object* l_Nat_HasMod___closed__1; @@ -69,7 +70,6 @@ lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__1; lean_object* l_Lean_Compiler_foldStrictOr(uint8_t); lean_object* l_Lean_Compiler_foldUIntSub___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_unFoldFns___closed__3; -lean_object* lean_expr_mk_app(lean_object*, lean_object*); uint8_t l_Lean_Compiler_isToNat(lean_object*); lean_object* l_Lean_Compiler_foldNatDecLe___closed__2; lean_object* l_Lean_Compiler_foldBinUInt(lean_object*, uint8_t, lean_object*, lean_object*); @@ -94,6 +94,7 @@ lean_object* l_Lean_Compiler_numScalarTypes___closed__21; lean_object* l_Lean_Compiler_boolFoldFns___closed__2; lean_object* l_Lean_Compiler_natFoldFns___closed__39; lean_object* l_Lean_Compiler_natFoldFns___closed__31; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Compiler_getBoolLit___closed__3; lean_object* l_Lean_Compiler_foldUIntAdd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2(lean_object*, lean_object*); @@ -123,7 +124,6 @@ lean_object* l_Lean_Compiler_natFoldFns___closed__16; lean_object* l_Lean_Compiler_foldUIntDiv___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_natFoldFns___closed__7; lean_object* l_Lean_Compiler_foldBinOp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_Compiler_getBoolLit___closed__4; extern lean_object* l_Lean_Level_one; lean_object* l_List_foldr___main___at_Lean_Compiler_isOfNat___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -998,14 +998,14 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_obj x_3 = lean_ctor_get(x_1, 2); lean_inc(x_3); x_4 = lean_box(0); -x_5 = lean_expr_mk_const(x_3, x_4); +x_5 = l_Lean_mkConst(x_3, x_4); x_6 = lean_ctor_get(x_1, 4); lean_inc(x_6); lean_dec(x_1); x_7 = lean_nat_mod(x_2, x_6); lean_dec(x_6); x_8 = l_Lean_mkNatLit(x_7); -x_9 = lean_expr_mk_app(x_5, x_8); +x_9 = l_Lean_mkApp(x_5, x_8); return x_9; } } @@ -2068,7 +2068,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_mkNatEq___closed__2; x_2 = l_Lean_Compiler_mkNatEq___closed__3; -x_3 = lean_expr_mk_const(x_1, x_2); +x_3 = l_Lean_mkConst(x_1, x_2); return x_3; } } @@ -2078,7 +2078,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Literal_type___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -2169,7 +2169,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_mkNatLt___closed__4; x_2 = l_Lean_Compiler_mkNatLt___closed__5; -x_3 = lean_expr_mk_const(x_1, x_2); +x_3 = l_Lean_mkConst(x_1, x_2); return x_3; } } @@ -2189,7 +2189,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_mkNatLt___closed__7; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -2251,7 +2251,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_mkNatLe___closed__2; x_2 = l_Lean_Compiler_mkNatLt___closed__5; -x_3 = lean_expr_mk_const(x_1, x_2); +x_3 = l_Lean_mkConst(x_1, x_2); return x_3; } } @@ -2279,7 +2279,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_mkNatLe___closed__5; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } diff --git a/stage0/library/Init/Lean/Compiler/Specialize.c b/stage0/library/Init/Lean/Compiler/Specialize.c index 671cdf7f5b..a6575775bc 100644 --- a/stage0/library/Init/Lean/Compiler/Specialize.c +++ b/stage0/library/Init/Lean/Compiler/Specialize.c @@ -37,7 +37,7 @@ lean_object* l_Lean_registerEnumAttributes___at_Lean_Compiler_mkSpecializeAttrs_ lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_Lean_registerEnumAttributes___at_Lean_Compiler_mkSpecializeAttrs___spec__1___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_Compiler_mkSpecExtension___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_HashMapImp_find___at_Lean_Compiler_getCachedSpecialization___spec__5(lean_object*, lean_object*); extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; lean_object* l_Lean_Compiler_SpecState_Inhabited___closed__2; @@ -3366,7 +3366,7 @@ else lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_9 = lean_array_fget(x_4, x_5); x_10 = lean_array_fget(x_3, x_5); -x_11 = lean_expr_hash(x_9); +x_11 = l_Lean_Expr_hash(x_9); x_12 = 1; x_13 = x_1 - x_12; x_14 = 5; @@ -3705,7 +3705,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_hash(x_2); +x_7 = l_Lean_Expr_hash(x_2); x_8 = 1; x_9 = l_PersistentHashMap_insertAux___main___at_Lean_Compiler_SpecState_addEntry___spec__14(x_5, x_7, x_8, x_2, x_3); x_10 = lean_unsigned_to_nat(1u); @@ -3723,7 +3723,7 @@ x_13 = lean_ctor_get(x_1, 1); lean_inc(x_13); lean_inc(x_12); lean_dec(x_1); -x_14 = lean_expr_hash(x_2); +x_14 = l_Lean_Expr_hash(x_2); x_15 = 1; x_16 = l_PersistentHashMap_insertAux___main___at_Lean_Compiler_SpecState_addEntry___spec__14(x_12, x_14, x_15, x_2, x_3); x_17 = lean_unsigned_to_nat(1u); @@ -3782,7 +3782,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; le x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_array_get_size(x_1); -x_7 = lean_expr_hash(x_4); +x_7 = l_Lean_Expr_hash(x_4); x_8 = lean_usize_modn(x_7, x_6); lean_dec(x_6); x_9 = lean_array_uget(x_1, x_8); @@ -3803,7 +3803,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_15 = lean_array_get_size(x_1); -x_16 = lean_expr_hash(x_12); +x_16 = l_Lean_Expr_hash(x_12); x_17 = lean_usize_modn(x_16, x_15); lean_dec(x_15); x_18 = lean_array_uget(x_1, x_17); @@ -3950,7 +3950,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; le x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); x_7 = lean_array_get_size(x_6); -x_8 = lean_expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); x_11 = l_AssocList_contains___main___at_Lean_Compiler_SpecState_addEntry___spec__18(x_2, x_10); @@ -4000,7 +4000,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_22 = lean_array_get_size(x_21); -x_23 = lean_expr_hash(x_2); +x_23 = l_Lean_Expr_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); x_26 = l_AssocList_contains___main___at_Lean_Compiler_SpecState_addEntry___spec__18(x_2, x_25); @@ -5912,7 +5912,7 @@ _start: { lean_object* x_3; size_t x_4; lean_object* x_5; x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_expr_hash(x_2); +x_4 = l_Lean_Expr_hash(x_2); x_5 = l_PersistentHashMap_findAux___main___at_Lean_Compiler_getCachedSpecialization___spec__3(x_3, x_4, x_2); return x_5; } @@ -5955,7 +5955,7 @@ _start: lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; x_3 = lean_ctor_get(x_1, 1); x_4 = lean_array_get_size(x_3); -x_5 = lean_expr_hash(x_2); +x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); diff --git a/stage0/library/Init/Lean/Compiler/Util.c b/stage0/library/Init/Lean/Compiler/Util.c index c420be253f..6d11581f7f 100644 --- a/stage0/library/Init/Lean/Compiler/Util.c +++ b/stage0/library/Init/Lean/Compiler/Util.c @@ -15,15 +15,16 @@ extern "C" { #endif uint8_t lean_name_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Compiler_atMostOnce_HasAndthen; +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Compiler_atMostOnce_seq(lean_object*, lean_object*, lean_object*); uint8_t l_String_isPrefixOf(lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Init_Lean_Compiler_Util_1__getDeclNamesForCodeGen___spec__1(lean_object*); lean_object* l_Lean_Compiler_mkLcProof___closed__3; -lean_object* lean_expr_mk_app(lean_object*, lean_object*); uint8_t lean_at_most_once(lean_object*, lean_object*); lean_object* l_Lean_Compiler_atMostOnce_HasAndthen___closed__1; lean_object* l_Lean_Compiler_atMostOnce_visit___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_unreachableExpr___closed__2; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); uint8_t l_Lean_Compiler_isEagerLambdaLiftingName___main(lean_object*); lean_object* l_Lean_Compiler_atMostOnce_visit___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_checkIsDefinition___closed__3; @@ -31,7 +32,6 @@ lean_object* l_Lean_Compiler_mkLcProof(lean_object*); lean_object* l_Lean_Compiler_objectType___closed__3; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Compiler_neutralExpr___closed__1; -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_Compiler_objectType; lean_object* l_Lean_Compiler_neutralExpr___closed__3; lean_object* lean_string_append(lean_object*, lean_object*); @@ -94,7 +94,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_neutralExpr___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -130,7 +130,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_unreachableExpr___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -166,7 +166,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_objectType___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -202,7 +202,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_voidType___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -238,7 +238,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Compiler_mkLcProof___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -247,7 +247,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Compiler_mkLcProof___closed__3; -x_3 = lean_expr_mk_app(x_2, x_1); +x_3 = l_Lean_mkApp(x_2, x_1); return x_3; } } diff --git a/stage0/library/Init/Lean/Declaration.c b/stage0/library/Init/Lean/Declaration.c index d2874b120a..341070ae25 100644 --- a/stage0/library/Init/Lean/Declaration.c +++ b/stage0/library/Init/Lean/Declaration.c @@ -28,6 +28,7 @@ lean_object* l_Lean_InductiveVal_nctors___boxed(lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); lean_object* l_Lean_ConstantInfo_isCtor___boxed(lean_object*); uint8_t l_Lean_ConstantInfo_hasValue(lean_object*); +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Name_getPrefix(lean_object*); uint8_t l_Lean_ConstantInfo_isCtor(lean_object*); lean_object* lean_instantiate_value_lparams(lean_object*, lean_object*); @@ -40,7 +41,6 @@ lean_object* l_Lean_InductiveVal_nctors(lean_object*); lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* l_Lean_ConstantInfo_value_x3f___boxed(lean_object*); -extern lean_object* l_Lean_Expr_inhabited; lean_object* l_Lean_ConstantInfo_hints(lean_object*); lean_object* l_Lean_ConstantInfo_value_x21___closed__1; lean_object* l_Lean_ConstantInfo_toConstantVal___boxed(lean_object*); @@ -321,7 +321,7 @@ return x_6; default: { lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_Lean_Expr_inhabited; +x_7 = l_Lean_Expr_Inhabited; x_8 = l_Lean_ConstantInfo_value_x21___closed__3; x_9 = lean_panic_fn(x_8); return x_9; diff --git a/stage0/library/Init/Lean/Elaborator/Basic.c b/stage0/library/Init/Lean/Elaborator/Basic.c index 29ff5dc3a7..ad3882aa36 100644 --- a/stage0/library/Init/Lean/Elaborator/Basic.c +++ b/stage0/library/Init/Lean/Elaborator/Basic.c @@ -145,6 +145,7 @@ lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_empty___at_Lean_mkBuiltinTermElabTable___spec__3; lean_object* l_Lean_Elab_runElab___at_Lean_Elab_processCommand___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_processHeaderAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Elab_updateCmdPos___boxed(lean_object*); extern lean_object* l_Lean_Options_empty; lean_object* l_Lean_Elab_anonymousInstNamePrefix; @@ -161,7 +162,6 @@ lean_object* l_Lean_Elab_getEnv___boxed(lean_object*); lean_object* l_Lean_Elab_getScope(lean_object*); lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_addBuiltinTermElab___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_contains___at_Lean_addBuiltinCommandElab___spec__4___boxed(lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_mk_empty_environment(uint32_t, lean_object*); lean_object* l_Lean_commandElabAttribute___closed__1; @@ -196,7 +196,6 @@ lean_object* l_Lean_Elab_modifyScope___at_Lean_Elab_withInPattern___spec__1(lean lean_object* l_Lean_Elab_mkMessage___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkBuiltinCommandElabTable(lean_object*); lean_object* l_Lean_Elab_updateCmdPos(lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; lean_object* l_Lean_Elab_getNamespace(lean_object*); lean_object* l_Lean_Elab_logErrorAt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -242,6 +241,7 @@ lean_object* l_Lean_addBuiltinTermElab___closed__1; lean_object* l_Lean_Syntax_getId___rarg(lean_object*); lean_object* l_Lean_OpenDecl_HasToString___closed__1; lean_object* l_Lean_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_registerBuiltinCommandElabAttr___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_System_FilePath_dirName(lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); @@ -3793,7 +3793,7 @@ x_9 = l_Lean_nameToExprAux___main(x_3); lean_inc(x_4); x_10 = l_Lean_nameToExprAux___main(x_4); lean_inc(x_4); -x_11 = lean_expr_mk_const(x_4, x_8); +x_11 = l_Lean_mkConst(x_4, x_8); x_12 = l_Lean_Parser_declareBuiltinParser___closed__6; x_13 = lean_array_push(x_12, x_9); x_14 = lean_array_push(x_13, x_10); @@ -11118,7 +11118,7 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_9, 0); lean_dec(x_11); -x_12 = lean_expr_mk_fvar(x_7); +x_12 = l_Lean_mkFVar(x_7); lean_ctor_set(x_9, 0, x_12); return x_9; } @@ -11128,7 +11128,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_9, 1); lean_inc(x_13); lean_dec(x_9); -x_14 = lean_expr_mk_fvar(x_7); +x_14 = l_Lean_mkFVar(x_7); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); diff --git a/stage0/library/Init/Lean/Elaborator/PreTerm.c b/stage0/library/Init/Lean/Elaborator/PreTerm.c index ee98c0ea78..50518a8d0e 100644 --- a/stage0/library/Init/Lean/Elaborator/PreTerm.c +++ b/stage0/library/Init/Lean/Elaborator/PreTerm.c @@ -17,7 +17,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_convertId(lean_object*); extern lean_object* l_Lean_Parser_Level_num___elambda__1___rarg___closed__2; lean_object* l_Lean_mkPreTypeAscription___closed__3; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__2; -lean_object* lean_expr_mk_mdata(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addBuiltinPreTermElab(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertSorry___closed__1; @@ -28,9 +27,7 @@ lean_object* l_Lean_registerBuiltinPreTermElabAttr___closed__3; lean_object* l_Lean_registerBuiltinPreTermElabAttr___closed__5; uint8_t lean_name_dec_eq(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__6; -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__1; lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); -lean_object* lean_expr_mk_sort(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind___rarg(lean_object*); lean_object* l_HashMapImp_find___at_Lean_Elab_toPreTerm___spec__1(lean_object*, lean_object*); @@ -44,6 +41,7 @@ lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_IO_println___at_HasRepr_HasEval___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_builtinPreTermElabTable; lean_object* l_Lean_Elab_convertType___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___boxed(lean_object*); lean_object* l___private_Init_Lean_Elaborator_PreTerm_1__setPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toLevel___main___closed__4; lean_object* l_Lean_Elab_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); @@ -55,6 +53,7 @@ extern lean_object* l_Lean_AttributeImpl_inhabited___closed__5; lean_object* l___private_Init_Lean_Elaborator_PreTerm_4__processBinder___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_convertHole___closed__3; extern lean_object* l_Lean_Parser_Level_max___elambda__1___closed__1; +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_HashMapImp_insert___at_Lean_addBuiltinPreTermElab___spec__3(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_addBuiltinTermElab___closed__2; extern lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___rarg___closed__1; @@ -72,7 +71,6 @@ lean_object* lean_level_mk_mvar(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertSortApp___closed__1; lean_object* l_Lean_registerBuiltinPreTermElabAttr___closed__7; lean_object* l___regBuiltinTermElab_Lean_Elab_convertId___closed__3; -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l_Lean_Elab_convertSort___boxed(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertType___closed__5; lean_object* l_Lean_mkPreTypeAscriptionIfSome(lean_object*, lean_object*); @@ -93,14 +91,15 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elaborator_PreTerm_5__processBinders___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_AssocList_contains___main___at_Lean_addBuiltinPreTermElab___spec__2(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertProp___closed__1; +lean_object* l_Lean_mkMVar(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertForall___closed__1; extern lean_object* l_Lean_Parser_Term_sorry___elambda__1___rarg___closed__2; lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinPreTermElabAttr___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_convertSortApp___closed__3; extern lean_object* l_Lean_Options_empty; lean_object* l_Lean_mkPreTypeAscription___closed__2; -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__3; extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; lean_object* l_Lean_Elab_toLevel___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toPreTerm___closed__2; @@ -109,7 +108,6 @@ lean_object* l_Lean_declareBuiltinPreTermElab___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_convertType___closed__1; lean_object* l_Lean_Level_ofNat___main(lean_object*); lean_object* l_AssocList_find___main___at_Lean_Elab_toPreTerm___spec__2(lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* l_IO_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertType___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_convertSort___closed__2; @@ -127,7 +125,6 @@ lean_object* l___private_Init_Lean_Elaborator_PreTerm_1__setPos___closed__1; lean_object* l_Lean_registerBuiltinPreTermElabAttr___closed__1; lean_object* l_HashMapImp_find___at_Lean_Elab_toPreTerm___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinPreTermElabAttr(lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_Elab_convertSort(lean_object*, lean_object*); lean_object* l_Lean_mkAsPattern(lean_object*, lean_object*); size_t lean_name_hash_usize(lean_object*); @@ -138,6 +135,7 @@ lean_object* lean_old_elaborate(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Lean_Syntax_getArg___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_toLevel___main___closed__2; extern lean_object* l_Lean_Parser_Term_prop___elambda__1___rarg___closed__2; +lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_convertSortApp(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_hole___elambda__1___rarg___closed__1; @@ -146,6 +144,7 @@ lean_object* l_Lean_KVMap_setName(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_sort___elambda__1___rarg___closed__2; uint8_t l_Lean_Syntax_isOfKind___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_convertHole___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited; extern lean_object* l_Lean_Parser_Level_addLit___elambda__1___closed__2; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_type___elambda__1___rarg___closed__2; @@ -158,6 +157,7 @@ lean_object* l_Lean_mkPreTypeAscription(lean_object*, lean_object*); extern lean_object* l_Lean_addBuiltinTermElab___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_convertType___closed__4; lean_object* l_Lean_Syntax_getId___rarg(lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Elab_getUniverses___rarg(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elaborator_PreTerm_5__processBinders(lean_object*, lean_object*, lean_object*); @@ -166,11 +166,11 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_convertProp(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertSorry___closed__2; uint8_t l_HashMapImp_contains___at_Lean_addBuiltinPreTermElab___spec__1(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__2; extern lean_object* l_Lean_Parser_Term_sortApp___elambda__1___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; lean_object* l_Lean_Elab_convertSort___rarg(lean_object*); -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_toLevel___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_instBinder___elambda__1___rarg___closed__2; lean_object* l_List_head_x21___at_Lean_Elab_getScope___spec__1(lean_object*); @@ -194,13 +194,12 @@ uint8_t l_List_elem___main___at_Lean_Parser_addBuiltinLeadingParser___spec__4(le lean_object* l_HashMapImp_expand___at_Lean_addBuiltinPreTermElab___spec__4(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertType(lean_object*); -extern lean_object* l_Lean_Expr_inhabited; extern lean_object* l_Lean_Level_one___closed__1; lean_object* l_AssocList_foldlM___main___at_Lean_addBuiltinPreTermElab___spec__6(lean_object*, lean_object*); lean_object* l_Lean_mkAsIs___closed__2; lean_object* l_HashMapImp_moveEntries___main___at_Lean_addBuiltinPreTermElab___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__1; lean_object* l_Lean_Elab_convertSorry___rarg___closed__2; -lean_object* lean_expr_mk_mvar(lean_object*); lean_object* l_Lean_Elab_toPreTerm___closed__3; lean_object* lean_level_mk_param(lean_object*); extern lean_object* l_Lean_Parser_Term_app___elambda__1___closed__2; @@ -214,7 +213,7 @@ lean_object* l_Lean_Elab_toLevel___main___closed__1; lean_object* lean_io_ref_get(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elaborator_PreTerm_4__processBinder(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mkAnnotation___closed__1; -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__2; +lean_object* l_Lean_mkMData(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__1; size_t lean_usize_modn(size_t, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_convertId___closed__1; @@ -237,10 +236,10 @@ lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_convertType___boxed(lean_object*, lean_object*); lean_object* l_mkHashMapImp___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___rarg___closed__1; +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_convertSortApp(lean_object*); extern lean_object* l_Lean_Parser_Level_ident___elambda__1___rarg___closed__1; lean_object* l_Lean_registerBuiltinPreTermElabAttr___lambda__1___closed__2; -extern lean_object* l_Lean_Expr_inhabited___closed__1; extern lean_object* l_Lean_nameToExprAux___main___closed__4; lean_object* l___private_Init_Lean_Elaborator_PreTerm_4__processBinder___closed__2; extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; @@ -251,6 +250,7 @@ lean_object* l_Lean_Syntax_toNat___rarg(lean_object*); lean_object* l_Lean_Syntax_getPos___rarg(lean_object*); extern lean_object* l_Lean_Parser_Level_imax___elambda__1___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_convertHole___closed__2; +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux(lean_object*); lean_object* l_Lean_Elab_convertProp(lean_object*, lean_object*); lean_object* l_Lean_Elab_getScope___rarg(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -283,12 +283,12 @@ lean_object* l_Lean_Elab_convertForall___boxed(lean_object*, lean_object*, lean_ lean_object* l___private_Init_Lean_Elaborator_PreTerm_4__processBinder___closed__4; lean_object* lean_level_mk_max(lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinPreTermElabAttr___lambda__1___closed__5; +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_convertProp___closed__3; lean_object* l_Lean_declareBuiltinPreTermElab(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTagAttribute___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elaborator_PreTerm_5__processBinders___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___boxed(lean_object*); lean_object* l___private_Init_Lean_Elaborator_PreTerm_5__processBinders___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_toPreTerm___closed__4; lean_object* l_Lean_oldElaborateAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -1259,7 +1259,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_box(0); x_4 = l_Lean_Expr_mkAnnotation___closed__2; x_5 = l_Lean_KVMap_setName(x_3, x_4, x_1); -x_6 = lean_expr_mk_mdata(x_5, x_2); +x_6 = l_Lean_mkMData(x_5, x_2); return x_6; } } @@ -1312,8 +1312,8 @@ lean_object* l_Lean_mkAsPattern(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_expr_mk_fvar(x_1); -x_4 = lean_expr_mk_app(x_3, x_2); +x_3 = l_Lean_mkFVar(x_1); +x_4 = l_Lean_mkApp(x_3, x_2); x_5 = l_Lean_mkAsPattern___closed__2; x_6 = l_Lean_Expr_mkAnnotation(x_5, x_4); return x_6; @@ -1343,7 +1343,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_mkPreTypeAscription___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -1352,8 +1352,8 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_Lean_mkPreTypeAscription___closed__3; -x_4 = lean_expr_mk_app(x_3, x_2); -x_5 = lean_expr_mk_app(x_4, x_1); +x_4 = l_Lean_mkApp(x_3, x_2); +x_5 = l_Lean_mkApp(x_4, x_1); return x_5; } } @@ -2035,7 +2035,7 @@ lean_inc(x_16); lean_dec(x_11); x_17 = l___private_Init_Lean_Elaborator_PreTerm_1__setPos___closed__4; x_18 = l_Lean_KVMap_setNat(x_15, x_17, x_16); -x_19 = lean_expr_mk_mdata(x_18, x_2); +x_19 = l_Lean_mkMData(x_18, x_2); x_20 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_4); @@ -2294,7 +2294,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_box(0); -x_2 = lean_expr_mk_mvar(x_1); +x_2 = l_Lean_mkMVar(x_1); return x_2; } } @@ -2322,7 +2322,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Level_one___closed__1; -x_2 = lean_expr_mk_sort(x_1); +x_2 = l_Lean_mkSort(x_1); return x_2; } } @@ -2414,7 +2414,7 @@ lean_object* l_Lean_Elab_convertSort___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Expr_inhabited___closed__1; +x_2 = l_Lean_Expr_getAppArgs___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -2480,7 +2480,7 @@ lean_object* l_Lean_Elab_convertProp___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Expr_inhabited___closed__1; +x_2 = l_Lean_Expr_getAppArgs___closed__1; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -2567,7 +2567,7 @@ lean_dec(x_7); if (x_14 == 0) { lean_object* x_15; -x_15 = lean_expr_mk_sort(x_12); +x_15 = l_Lean_mkSort(x_12); lean_ctor_set(x_10, 0, x_15); return x_10; } @@ -2575,7 +2575,7 @@ else { lean_object* x_16; lean_object* x_17; x_16 = lean_level_mk_succ(x_12); -x_17 = lean_expr_mk_sort(x_16); +x_17 = l_Lean_mkSort(x_16); lean_ctor_set(x_10, 0, x_17); return x_10; } @@ -2594,7 +2594,7 @@ lean_dec(x_7); if (x_21 == 0) { lean_object* x_22; lean_object* x_23; -x_22 = lean_expr_mk_sort(x_18); +x_22 = l_Lean_mkSort(x_18); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_19); @@ -2604,7 +2604,7 @@ else { lean_object* x_24; lean_object* x_25; lean_object* x_26; x_24 = lean_level_mk_succ(x_18); -x_25 = lean_expr_mk_sort(x_24); +x_25 = l_Lean_mkSort(x_24); x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_19); @@ -2684,7 +2684,7 @@ x_5 = l_Lean_addBuiltinPreTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__1() { +lean_object* _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__1() { _start: { lean_object* x_1; @@ -2692,7 +2692,7 @@ x_1 = lean_mk_string("Init.Lean.Elaborator.PreTerm"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__2() { +lean_object* _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__2() { _start: { lean_object* x_1; @@ -2700,33 +2700,33 @@ x_1 = lean_mk_string("to be deleted"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__3() { +lean_object* _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__1; +x_1 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__1; x_2 = lean_unsigned_to_nat(141u); x_3 = lean_unsigned_to_nat(0u); -x_4 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__2; +x_4 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__2; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Expr_inhabited; -x_3 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__3; +x_2 = l_Lean_Expr_Inhabited; +x_3 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__3; x_4 = lean_panic_fn(x_3); return x_4; } } -lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___boxed(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal(x_1); +x_2 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux(x_1); lean_dec(x_1); return x_2; } @@ -2781,7 +2781,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__5; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -2977,8 +2977,8 @@ x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); lean_dec(x_49); x_52 = l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__6; -x_53 = lean_expr_mk_app(x_52, x_26); -x_54 = lean_expr_mk_app(x_53, x_50); +x_53 = l_Lean_mkApp(x_52, x_26); +x_54 = l_Lean_mkApp(x_53, x_50); x_55 = 0; x_56 = l_Lean_Elab_mkLocalDecl(x_25, x_54, x_55, x_6, x_51); x_57 = lean_ctor_get(x_56, 0); @@ -3940,7 +3940,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_convertSorry___rarg___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -3950,7 +3950,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_convertSorry___rarg___closed__3; x_2 = l___private_Init_Lean_Elaborator_PreTerm_2__mkHoleFor___closed__1; -x_3 = lean_expr_mk_app(x_1, x_2); +x_3 = l_Lean_mkApp(x_1, x_2); return x_3; } } @@ -4068,7 +4068,7 @@ lean_dec(x_12); x_21 = lean_ctor_get(x_13, 0); lean_inc(x_21); lean_dec(x_13); -x_22 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal(x_21); +x_22 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux(x_21); lean_dec(x_21); lean_ctor_set(x_5, 0, x_22); return x_5; @@ -4109,7 +4109,7 @@ lean_dec(x_28); x_37 = lean_ctor_get(x_29, 0); lean_inc(x_37); lean_dec(x_29); -x_38 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal(x_37); +x_38 = l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux(x_37); lean_dec(x_37); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_38); @@ -4667,12 +4667,12 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_convertSortApp___closed__3 res = l___regBuiltinTermElab_Lean_Elab_convertSortApp(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__1 = _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__1); -l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__2 = _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__2); -l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__3 = _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elaborator_PreTerm_3__mkLocal___closed__3); +l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__1 = _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__1); +l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__2 = _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__2); +l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__3 = _init_l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elaborator_PreTerm_3__mkLocalAux___closed__3); l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__1(); lean_mark_persistent(l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__1); l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elaborator_PreTerm_4__processBinder___spec__1___closed__2(); diff --git a/stage0/library/Init/Lean/Expr.c b/stage0/library/Init/Lean/Expr.c index f8ad4ce0c6..ca375256a4 100644 --- a/stage0/library/Init/Lean/Expr.c +++ b/stage0/library/Init/Lean/Expr.c @@ -13,307 +13,329 @@ #ifdef __cplusplus extern "C" { #endif -uint8_t l_Lean_ExprCachedData_hasLevelMVar(uint64_t); +lean_object* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed__const__1; +lean_object* l_Lean_Expr_mkCachedData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVars___boxed(lean_object*); -lean_object* lean_expr_mk_mdata(lean_object*, lean_object*); lean_object* l_Lean_mkAppN___boxed(lean_object*, lean_object*); -uint8_t lean_expr_has_fvar(lean_object*); +uint8_t l_Lean_Expr_hasFVar(lean_object*); uint64_t l_UInt32_toUInt64(uint32_t); +lean_object* l_Lean_mkLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main___boxed(lean_object*, lean_object*); -uint64_t l_Lean_mkExprCachedData___closed__2; -uint32_t l_Lean_ExprCachedData_looseBVarRange(uint64_t); -lean_object* l_Lean_Expr_lam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_type___closed__5; uint8_t lean_expr_quick_lt(lean_object*, lean_object*); lean_object* l_Lean_Expr_hash___boxed(lean_object*); lean_object* l_Lean_Expr_bvarIdx_x21___closed__2; -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main(lean_object*); lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_Lean_Literal_type___boxed(lean_object*); lean_object* l_Lean_Expr_updateProj___boxed(lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_binder_info(lean_object*); uint8_t lean_name_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_7__betaRevAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +lean_object* lean_expr_mk_sort(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_HasRepr(lean_object*); +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MData_empty; -lean_object* lean_expr_mk_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* lean_expr_mk_sort(lean_object*); extern lean_object* l_Nat_Inhabited; +size_t l_Lean_Expr_CachedData_hash(uint64_t); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateSort___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_getLooseBVarRange___boxed(lean_object*); lean_object* l_Lean_Expr_getAppRevArgs(lean_object*); lean_object* l_Lean_Expr_updateConst___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isLambda___boxed(lean_object*); +lean_object* l_Lean_MVData_hasEmptc; lean_object* l_Lean_Expr_withApp(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); uint8_t l_Lean_Expr_isSort(lean_object*); lean_object* l_Lean_Expr_bvarIdx_x21(lean_object*); lean_object* l_Lean_Literal_type___closed__2; uint8_t l_Lean_Expr_isConst(lean_object*); -lean_object* l_Lean_Expr_forallE___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux(lean_object*, lean_object*); +lean_object* l_Lean_Expr_CachedData_hash___boxed(lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21___closed__1; lean_object* l_Lean_Expr_withAppAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -uint64_t l_Lean_mkExprCachedData___closed__4; +lean_object* l_Lean_Expr_CachedData_hasLevelParam___boxed(lean_object*); lean_object* l_Lean_Expr_HasBeq___closed__1; lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object*); lean_object* l_Lean_Expr_isAppOfArity___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLambda_x21(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_expr_hash(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l_Lean_ExprCachedData_hash___boxed(lean_object*); +lean_object* l_List_foldr___main___at_Lean_mkConst___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_isAuxDecl___boxed(lean_object*); lean_object* l_Lean_Expr_updateMData_x21___closed__2; lean_object* l_Lean_Expr_updateLambdaE_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_exprToExprStructEq(lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21___boxed(lean_object*); +size_t l_List_hash___at_Lean_mkConst___spec__1(lean_object*); extern lean_object* l_List_get_x21___main___rarg___closed__2; +uint8_t l_Lean_Expr_CachedData_hasLevelParam(uint64_t); lean_object* l_Lean_Expr_updateLambda_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVar___boxed(lean_object*, lean_object*); +uint8_t lean_level_has_mvar(lean_object*); lean_object* l_Lean_ExprStructEq_Hashable; lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); -lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiate1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_8__betaRevAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_BinderInfo_toUInt64(uint8_t); +uint64_t l_Lean_Expr_mkCachedData___closed__4; lean_object* l_Lean_mkStrLit(lean_object*); lean_object* l_Lean_Expr_eqv___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkDecIsTrue___closed__4; -uint8_t l_Lean_ExprCachedData_hasLevelParam(uint64_t); lean_object* l_Lean_Expr_withAppRev(lean_object*); uint8_t l_UInt64_decEq(uint64_t, uint64_t); lean_object* l_Lean_ExprStructEq_HasBeq___closed__1; -lean_object* lean_expr_get_loose_bvar_range(lean_object*); +uint8_t l_Lean_Expr_CachedData_hasLevelMVar(uint64_t); +lean_object* l_Lean_Literal_inhabited; lean_object* l_Lean_Expr_fvarId_x21___closed__2; +uint64_t lean_expr_cached_data(lean_object*); lean_object* l_Lean_Expr_isBVar___boxed(lean_object*); +lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* lean_expr_instantiate(lean_object*, lean_object*); -uint8_t l_Lean_ExprCachedData_hasExprMVar(uint64_t); lean_object* l_Lean_Expr_letName_x21___closed__2; lean_object* l_Lean_Expr_getAppNumArgsAux___boxed(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_mk_local(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Expr_quickLt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_hasExprMVar___boxed(lean_object*); lean_object* l_Lean_Expr_isAppOf___boxed(lean_object*, lean_object*); +uint64_t l_Lean_Expr_mkCachedData___closed__1; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet_x21(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_toUInt64___boxed(lean_object*); lean_object* l_Lean_BinderInfo_isInstImplicit___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_Expr_looseBVarRange(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); -lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_Literal_hashable___closed__1; +lean_object* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4; +lean_object* l_Lean_Expr_hasFVarEx___boxed(lean_object*); lean_object* l_Lean_exprToExprStructEq___boxed(lean_object*); -uint64_t l_Lean_ExprCachedData_inhabited; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); +lean_object* l_Lean_Expr_hasMVarEx___boxed(lean_object*); +lean_object* lean_expr_mk_fvar(lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); extern lean_object* l_Lean_Inhabited; lean_object* l_Lean_mkDecIsFalse___closed__1; lean_object* l_Lean_Expr_isAppOfArity___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Literal_type(lean_object*); lean_object* l_Lean_mkDecIsTrue___closed__3; lean_object* l_Lean_Expr_isProj___boxed(lean_object*); +lean_object* lean_expr_mk_forall(lean_object*, lean_object*, lean_object*, uint8_t); +size_t l_Lean_Literal_hash(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +size_t l_Lean_BinderInfo_hash(uint8_t); lean_object* l_Lean_Expr_equal___boxed(lean_object*, lean_object*); uint64_t l_UInt64_add(uint64_t, uint64_t); lean_object* l_Lean_Expr_isConstOf___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Literal_Inhabited___closed__1; lean_object* l_Lean_Expr_hasMVar___boxed(lean_object*); -uint64_t l_Lean_mkExprCachedData(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t); -lean_object* l_Lean_Expr_sort___boxed(lean_object*); lean_object* l_Lean_Expr_HasToString___closed__1; uint64_t l_Bool_toUInt64(uint8_t); lean_object* l_Lean_ExprStructEq_HasToString(lean_object*); -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1; +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_hasLevelParamEx___boxed(lean_object*); lean_object* l_Lean_mkAppRev(lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateMData_x21(lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Expr_withAppAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLocal(lean_object*, lean_object*, lean_object*, uint8_t); +uint32_t lean_expr_loose_bvar_range(lean_object*); +uint64_t l_Lean_Expr_cachedData(lean_object*); lean_object* l_Lean_Expr_appArg_x21___closed__1; -lean_object* l___private_Init_Lean_Expr_10__etaExpandedAux___main(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___boxed(lean_object*, lean_object*); lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_8__betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4; -lean_object* l_Lean_ExprCachedData_hasLevelParam___boxed(lean_object*); +lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object*); lean_object* l_Lean_Expr_constName_x21___closed__2; -uint64_t l_Lean_mkExprCachedData___closed__1; lean_object* l_Lean_Expr_appFn_x21(lean_object*); lean_object* l_Lean_BinderInfo_beq___boxed(lean_object*, lean_object*); -lean_object* l_Lean_ExprCachedData_nonDepLet___boxed(lean_object*); +uint8_t lean_expr_has_level_mvar(lean_object*); +uint64_t l_Lean_Expr_CachedData_inhabited; lean_object* l_Lean_mkCAppN(lean_object*, lean_object*); uint8_t l_Lean_Expr_isLet(lean_object*); +lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main(lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_UInt64_shiftRight(uint64_t, uint64_t); lean_object* l_Lean_Expr_bvarIdx_x21___closed__1; +lean_object* lean_expr_mk_const(lean_object*, lean_object*); extern uint64_t l_UInt64_Inhabited; lean_object* l_Lean_Expr_updateFn___main___boxed(lean_object*, lean_object*); +lean_object* l_Lean_BinderInfo_hash___boxed(lean_object*); uint32_t l_UInt64_toUInt32(uint64_t); lean_object* l_Lean_Expr_getRevArgD(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateFn___boxed(lean_object*, lean_object*); -lean_object* l_Lean_mkExprCachedData___boxed__const__1; -lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateForall_x21___closed__1; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t); +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isMData___boxed(lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); -lean_object* l_Lean_Expr_bvar___boxed(lean_object*); +size_t lean_name_hash_usize(lean_object*); lean_object* l_Lean_Expr_updateForall_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_Hashable___closed__1; uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateMData___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main___closed__1; lean_object* l_Lean_Expr_withAppRev___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Expr_CachedData_hasFVar___boxed(lean_object*); lean_object* l_Lean_Expr_mvarId_x21___boxed(lean_object*); -lean_object* l_Lean_MData_HasEmptyc; lean_object* l_Lean_Expr_updateForall_x21(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_mkForallEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_UInt64_shiftLeft(uint64_t, uint64_t); lean_object* l_Lean_ExprStructEq_HasBeq; lean_object* l_Lean_Expr_updateProj_x21___closed__1; lean_object* l_Lean_Expr_isApp___boxed(lean_object*); -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21___boxed(lean_object*); lean_object* l_Lean_Expr_getArgD(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_HasRepr___boxed(lean_object*); uint64_t lean_uint64_of_nat(lean_object*); lean_object* l_Lean_Literal_type___closed__6; -lean_object* l_Lean_BinderInfo_HasBeq; lean_object* l_Lean_Expr_dbgToString___boxed(lean_object*); +lean_object* l_Lean_Expr_CachedData_nonDepLet___boxed(lean_object*); uint8_t lean_expr_equal(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateSort_x21___closed__2; lean_object* l_Lean_Expr_instantiateRev___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Expr_appFn_x21___closed__1; -uint64_t l_Lean_mkExprCachedDataForLet(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); +uint64_t l_Lean_Expr_mkCachedDataForBinder(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); +lean_object* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__3; +lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Expr_updateForallE_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withApp___rarg(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(lean_object*, lean_object*); +lean_object* l_Lean_Expr_binderInfo___boxed(lean_object*); +lean_object* lean_expr_mk_mdata(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_string_hash(lean_object*); lean_object* l_Lean_Expr_instantiate___boxed(lean_object*, lean_object*); +lean_object* l_Lean_BinderInfo_hashable___closed__1; +lean_object* l_Lean_Expr_CachedData_looseBVarRange___boxed(lean_object*); lean_object* l_Lean_Expr_constName_x21___closed__1; uint8_t l_Lean_Expr_isForall(lean_object*); +uint8_t lean_expr_has_expr_mvar(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Lean_Literal_Inhabited; lean_object* lean_expr_update_const(lean_object*, lean_object*); -uint8_t l_Lean_ExprCachedData_binderInfo(uint64_t); -lean_object* l_Lean_mkExprCachedDataForLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkExprCachedDataForBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_letName_x21(lean_object*); lean_object* l_Lean_Expr_getAppNumArgs(lean_object*); lean_object* l_Lean_mkDecIsTrue___closed__1; lean_object* l_Lean_Expr_constName_x21___boxed(lean_object*); -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateFn(lean_object*, lean_object*); lean_object* lean_expr_instantiate_range(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux(lean_object*); +lean_object* l_Lean_Literal_inhabited___closed__1; lean_object* l_Lean_mkDecIsFalse(lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_beq___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Expr_lit___boxed(lean_object*); +lean_object* l_Lean_Expr_CachedData_binderInfo___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_HasRepr; -uint8_t l_Lean_ExprCachedData_nonDepLet(uint64_t); -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_mkCachedDataForBinder___boxed__const__1; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateApp_x21___closed__1; lean_object* l_Lean_Expr_constLevels_x21___closed__1; -lean_object* l_Lean_mkExprCachedDataForLet___boxed__const__1; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); -lean_object* l_Lean_mkExprCachedData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_8__betaRevAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_ExprCachedData_looseBVarRange___boxed(lean_object*); +uint8_t lean_level_has_param(lean_object*); lean_object* l_Lean_Expr_updateLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_app___boxed(lean_object*, lean_object*); -uint64_t l_Lean_mkExprCachedData___closed__3; +uint8_t lean_expr_has_mvar(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet_x21___closed__1; lean_object* l_Lean_mkDecIsTrue___closed__2; -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__3; +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux(lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); +lean_object* l_Lean_BinderInfo_hasBeq; size_t l_UInt32_toUSize(uint32_t); lean_object* l_Lean_Expr_getAppArgs(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArgD___main___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_8__betaRevAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_hash___at_Lean_mkConst___spec__1___boxed(lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main___boxed(lean_object*); +lean_object* l_Lean_Expr_mkCachedDataForLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21(lean_object*); lean_object* l_Lean_mkCAppN___boxed(lean_object*, lean_object*); +uint64_t l_Lean_Expr_mkCachedData___closed__2; uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); +lean_object* l_Lean_Expr_looseBVarRangeEx___boxed(lean_object*); lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21___closed__1; lean_object* l_Lean_ExprStructEq_hash___boxed(lean_object*); lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); uint8_t l_Lean_Expr_isMData(lean_object*); +lean_object* lean_expr_mk_bvar(lean_object*); uint8_t l_Lean_ExprStructEq_beq(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21___boxed(lean_object*); lean_object* l_Lean_Expr_updateLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateConst_x21___closed__1; lean_object* l_Lean_mkDecIsTrue___closed__5; +uint64_t l_Lean_Expr_mkCachedData___closed__3; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); lean_object* l_Lean_Expr_hasFVar___boxed(lean_object*); -lean_object* l_Lean_Expr_inhabited; -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_HasToString; -lean_object* l_Lean_ExprCachedData_hasFVar___boxed(lean_object*); uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); +size_t lean_level_hash(lean_object*); uint8_t l_Lean_Expr_isBinding(lean_object*); lean_object* l_Lean_Expr_mvarId_x21___closed__2; lean_object* l_Lean_Expr_appFn_x21___closed__2; -lean_object* lean_expr_mk_mvar(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* lean_expr_mk_bvar(lean_object*); +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1; +lean_object* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getArg_x21___boxed(lean_object*, lean_object*, lean_object*); +uint32_t l_Lean_Expr_CachedData_looseBVarRange(uint64_t); lean_object* lean_instantiate_lparams(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main(lean_object*); lean_object* l_Lean_Expr_letName_x21___closed__1; -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___rarg(lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Expr_mkCachedData(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_panic(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_proj___boxed(lean_object*, lean_object*, lean_object*); +uint64_t l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); lean_object* l_Lean_Expr_updateLambda_x21___closed__2; lean_object* l_Lean_Expr_appArg_x21___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateConst_x21(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLambda_x21___closed__1; lean_object* l_Lean_mkNatLit(lean_object*); -lean_object* l_Lean_BinderInfo_HasBeq___closed__1; lean_object* l_Lean_mkMData(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux(lean_object*, lean_object*); +size_t lean_usize_mix_hash(size_t, size_t); uint8_t lean_expr_lt(lean_object*, lean_object*); -uint64_t l___private_Init_Lean_Expr_2__mkExprCachedDataCore(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); +lean_object* l_Lean_Expr_CachedData_hasLevelMVar___boxed(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21___closed__1; -uint64_t l_Lean_mkExprCachedDataForBinder(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); -lean_object* l___private_Init_Lean_Expr_9__etaExpandedBody(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_7__betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_mk_lit(lean_object*); +lean_object* l_Lean_Literal_hashable; +lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_betaRev___boxed(lean_object*, lean_object*); -lean_object* l_Lean_ExprCachedData_hasLevelMVar___boxed(lean_object*); lean_object* l_Lean_Expr_bvarIdx_x21___boxed(lean_object*); -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux(lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object*); @@ -321,98 +343,255 @@ lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_mkCAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object*); lean_object* l_Lean_mkDecIsTrue(lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasLevelParam(lean_object*); +uint8_t lean_expr_has_fvar(lean_object*); lean_object* l_Lean_Expr_updateForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Expr_abstract___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_5__getAppRevArgsAux(lean_object*, lean_object*); +lean_object* l_Lean_Expr_mkCachedData___boxed__const__1; lean_object* l_Lean_Expr_bindingName_x21___closed__2; lean_object* l_Lean_Expr_updateSort_x21(lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_CachedData_hasExprMVar(uint64_t); size_t l_Lean_ExprStructEq_hash(lean_object*); -size_t l_Lean_ExprCachedData_hash(uint64_t); lean_object* l_Lean_Expr_getRevArgD___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_9__etaExpandedBody___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Literal_hash___boxed(lean_object*); +lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Expr_updateProj_x21(lean_object*, lean_object*); -lean_object* l_Lean_Expr_const___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Expr_hashEx___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21___closed__1; lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; -lean_object* l_Lean_Expr_inhabited___closed__1; -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_BinderInfo_hashable; +lean_object* l_Lean_BinderInfo_hasBeq___closed__1; lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppRange(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); +size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Expr_isFVar___boxed(lean_object*); lean_object* l_Lean_Expr_abstractRange___boxed(lean_object*, lean_object*, lean_object*); uint32_t l_USize_toUInt32(size_t); -lean_object* l_Lean_Expr_fvar___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_HasToString___boxed(lean_object*); -lean_object* lean_expr_mk_lambda(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_binderInfo(lean_object*); lean_object* l_Lean_Expr_updateFn___main(lean_object*, lean_object*); -lean_object* l_Lean_Expr_letE___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Literal_type___closed__4; -lean_object* l_Lean_Expr_mdata___boxed(lean_object*, lean_object*); -uint8_t l_Lean_ExprCachedData_hasFVar(uint64_t); +lean_object* l_Lean_Expr_cachedData___boxed(lean_object*); lean_object* l_Lean_Expr_HasBeq; lean_object* l_Lean_Expr_getRevArgD___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___rarg(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___main___at_Lean_mkConst___spec__4(uint8_t, lean_object*); +lean_object* lean_expr_mk_app(lean_object*, lean_object*); +lean_object* lean_uint32_to_nat(uint32_t); +lean_object* lean_expr_mk_lambda(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_mkAppRev___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isBVar(lean_object*); +lean_object* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_hasLevelParam___boxed(lean_object*); lean_object* l_Lean_Expr_updateSort_x21___closed__1; lean_object* l_Lean_Expr_isBinding___boxed(lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); +uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_Expr_Hashable; lean_object* l_Lean_Expr_updateMData_x21___closed__1; -lean_object* l_Lean_ExprCachedData_hasExprMVar___boxed(lean_object*); +lean_object* l_Lean_Expr_mkCachedDataForLet___boxed__const__1; +uint8_t l_Lean_Expr_CachedData_hasBeq(uint64_t, uint64_t); lean_object* l_Lean_Expr_getAppNumArgs___boxed(lean_object*); -lean_object* l_Lean_Expr_mvar___boxed(lean_object*); +lean_object* l_Lean_mkLambdaEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_binderInfoEx___boxed(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); +lean_object* lean_expr_mk_mvar(lean_object*); lean_object* l_Lean_Expr_updateForall_x21___closed__2; +lean_object* l_Lean_mkLocalEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLocal___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getArgD___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isSort___boxed(lean_object*); +lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); -lean_object* l_Lean_mkExprCachedDataForBinder___boxed__const__1; uint8_t l_Lean_Expr_isProj(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_etaExpanded_x3f(lean_object*); lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isLet___boxed(lean_object*); lean_object* l_Lean_Expr_updateProj_x21___closed__2; +lean_object* l_Nat_max(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___boxed(lean_object*); -lean_object* l_Lean_ExprCachedData_binderInfo___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateForallE_x21___closed__1; +lean_object* l_Lean_Expr_hasLevelMVarEx___boxed(lean_object*); +lean_object* lean_lit_type(lean_object*); lean_object* l_Lean_mkLit(lean_object*); lean_object* l_Lean_Expr_mkAppRevRange(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___main___at_Lean_mkConst___spec__3(uint8_t, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isForall___boxed(lean_object*); +uint8_t l_Lean_Expr_CachedData_nonDepLet(uint64_t); +size_t l_List_foldl___main___at_Lean_mkConst___spec__2(size_t, lean_object*); lean_object* l_Lean_Literal_type___closed__1; uint64_t l_UInt64_land(uint64_t, uint64_t); lean_object* l_Lean_Expr_mkAppRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main(lean_object*); lean_object* l_Lean_Expr_bindingBody_x21___closed__1; +lean_object* l_Lean_Expr_CachedData_hasBeq___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Lean_Expr_isMVar___boxed(lean_object*); lean_object* l_Lean_ExprStructEq_Inhabited; lean_object* l_Lean_mkDecIsFalse___closed__3; +lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux___main(lean_object*, lean_object*); lean_object* l_Lean_mkForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed__const__1; -lean_object* lean_expr_mk_lit(lean_object*); +lean_object* l_Lean_Expr_hasExprMVarEx___boxed(lean_object*); +uint64_t l_Lean_Expr_mkCachedDataForLet(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); lean_object* l_Lean_mkDecIsFalse___closed__2; -lean_object* l___private_Init_Lean_Expr_10__etaExpandedAux(lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_Lean_mkConst___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkBVar(lean_object*); +lean_object* l_Lean_Expr_mkCachedDataForBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_cachedDataEx___boxed(lean_object*); lean_object* l_Lean_Expr_isConst___boxed(lean_object*); lean_object* l_Lean_Expr_instantiateLevelParams___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_CachedData_hasFVar(uint64_t); +lean_object* l_Lean_Expr_CachedData_hasExprMVar___boxed(lean_object*); lean_object* l_Lean_Literal_type___closed__3; +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_lt___boxed(lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_Hashable___closed__1; lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_level_mvar(lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); +uint8_t l_Lean_Expr_hasLevelMVar(lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_has_level_param(lean_object*); +lean_object* _init_l_Lean_Literal_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Literal_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Literal_inhabited___closed__1; +return x_1; +} +} +size_t l_Lean_Literal_hash(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; size_t x_3; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = lean_usize_of_nat(x_2); +lean_dec(x_2); +return x_3; +} +else +{ +lean_object* x_4; size_t x_5; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_string_hash(x_4); +return x_5; +} +} +} +lean_object* l_Lean_Literal_hash___boxed(lean_object* x_1) { +_start: +{ +size_t x_2; lean_object* x_3; +x_2 = l_Lean_Literal_hash(x_1); +x_3 = lean_box_usize(x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Literal_hashable___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Literal_hash___boxed), 1, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Literal_hashable() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Literal_hashable___closed__1; +return x_1; +} +} +size_t l_Lean_BinderInfo_hash(uint8_t x_1) { +_start: +{ +switch (x_1) { +case 0: +{ +size_t x_2; +x_2 = 947; +return x_2; +} +case 1: +{ +size_t x_3; +x_3 = 1019; +return x_3; +} +case 2: +{ +size_t x_4; +x_4 = 1087; +return x_4; +} +case 3: +{ +size_t x_5; +x_5 = 1153; +return x_5; +} +default: +{ +size_t x_6; +x_6 = 1229; +return x_6; +} +} +} +} +lean_object* l_Lean_BinderInfo_hash___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; size_t x_3; lean_object* x_4; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_BinderInfo_hash(x_2); +x_4 = lean_box_usize(x_3); +return x_4; +} +} +lean_object* _init_l_Lean_BinderInfo_hashable___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_BinderInfo_hash___boxed), 1, 0); +return x_1; +} +} +lean_object* _init_l_Lean_BinderInfo_hashable() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_BinderInfo_hashable___closed__1; +return x_1; +} +} uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t x_1) { _start: { @@ -585,7 +764,7 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* _init_l_Lean_BinderInfo_HasBeq___closed__1() { +lean_object* _init_l_Lean_BinderInfo_hasBeq___closed__1() { _start: { lean_object* x_1; @@ -593,11 +772,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_BinderInfo_beq___boxed), 2, 0); return x_1; } } -lean_object* _init_l_Lean_BinderInfo_HasBeq() { +lean_object* _init_l_Lean_BinderInfo_hasBeq() { _start: { lean_object* x_1; -x_1 = l_Lean_BinderInfo_HasBeq___closed__1; +x_1 = l_Lean_BinderInfo_hasBeq___closed__1; return x_1; } } @@ -609,7 +788,7 @@ x_1 = lean_box(0); return x_1; } } -lean_object* _init_l_Lean_MData_HasEmptyc() { +lean_object* _init_l_Lean_MVData_hasEmptc() { _start: { lean_object* x_1; @@ -617,7 +796,7 @@ x_1 = lean_box(0); return x_1; } } -uint64_t _init_l_Lean_ExprCachedData_inhabited() { +uint64_t _init_l_Lean_Expr_CachedData_inhabited() { _start: { uint64_t x_1; @@ -625,7 +804,7 @@ x_1 = l_UInt64_Inhabited; return x_1; } } -size_t l_Lean_ExprCachedData_hash(uint64_t x_1) { +size_t l_Lean_Expr_CachedData_hash(uint64_t x_1) { _start: { uint32_t x_2; size_t x_3; @@ -634,18 +813,39 @@ x_3 = x_2; return x_3; } } -lean_object* l_Lean_ExprCachedData_hash___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_hash___boxed(lean_object* x_1) { _start: { uint64_t x_2; size_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_hash(x_2); +x_3 = l_Lean_Expr_CachedData_hash(x_2); x_4 = lean_box_usize(x_3); return x_4; } } -uint32_t l_Lean_ExprCachedData_looseBVarRange(uint64_t x_1) { +uint8_t l_Lean_Expr_CachedData_hasBeq(uint64_t x_1, uint64_t x_2) { +_start: +{ +uint8_t x_3; +x_3 = x_1 == x_2; +return x_3; +} +} +lean_object* l_Lean_Expr_CachedData_hasBeq___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint64_t x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; +x_3 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_4 = lean_unbox_uint64(x_2); +lean_dec(x_2); +x_5 = l_Lean_Expr_CachedData_hasBeq(x_3, x_4); +x_6 = lean_box(x_5); +return x_6; +} +} +uint32_t l_Lean_Expr_CachedData_looseBVarRange(uint64_t x_1) { _start: { uint64_t x_2; uint64_t x_3; uint32_t x_4; @@ -655,18 +855,18 @@ x_4 = ((uint32_t)x_3); return x_4; } } -lean_object* l_Lean_ExprCachedData_looseBVarRange___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_looseBVarRange___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint32_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_looseBVarRange(x_2); +x_3 = l_Lean_Expr_CachedData_looseBVarRange(x_2); x_4 = lean_box_uint32(x_3); return x_4; } } -uint8_t l_Lean_ExprCachedData_hasFVar(uint64_t x_1) { +uint8_t l_Lean_Expr_CachedData_hasFVar(uint64_t x_1) { _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; @@ -678,18 +878,18 @@ x_6 = x_5 == x_2; return x_6; } } -lean_object* l_Lean_ExprCachedData_hasFVar___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_hasFVar___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint8_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_hasFVar(x_2); +x_3 = l_Lean_Expr_CachedData_hasFVar(x_2); x_4 = lean_box(x_3); return x_4; } } -uint8_t l_Lean_ExprCachedData_hasExprMVar(uint64_t x_1) { +uint8_t l_Lean_Expr_CachedData_hasExprMVar(uint64_t x_1) { _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; @@ -701,18 +901,18 @@ x_6 = x_5 == x_2; return x_6; } } -lean_object* l_Lean_ExprCachedData_hasExprMVar___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_hasExprMVar___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint8_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_hasExprMVar(x_2); +x_3 = l_Lean_Expr_CachedData_hasExprMVar(x_2); x_4 = lean_box(x_3); return x_4; } } -uint8_t l_Lean_ExprCachedData_hasLevelMVar(uint64_t x_1) { +uint8_t l_Lean_Expr_CachedData_hasLevelMVar(uint64_t x_1) { _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; @@ -724,18 +924,18 @@ x_6 = x_5 == x_2; return x_6; } } -lean_object* l_Lean_ExprCachedData_hasLevelMVar___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_hasLevelMVar___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint8_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_hasLevelMVar(x_2); +x_3 = l_Lean_Expr_CachedData_hasLevelMVar(x_2); x_4 = lean_box(x_3); return x_4; } } -uint8_t l_Lean_ExprCachedData_hasLevelParam(uint64_t x_1) { +uint8_t l_Lean_Expr_CachedData_hasLevelParam(uint64_t x_1) { _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; @@ -747,18 +947,18 @@ x_6 = x_5 == x_2; return x_6; } } -lean_object* l_Lean_ExprCachedData_hasLevelParam___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_hasLevelParam___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint8_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_hasLevelParam(x_2); +x_3 = l_Lean_Expr_CachedData_hasLevelParam(x_2); x_4 = lean_box(x_3); return x_4; } } -uint8_t l_Lean_ExprCachedData_nonDepLet(uint64_t x_1) { +uint8_t l_Lean_Expr_CachedData_nonDepLet(uint64_t x_1) { _start: { uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; @@ -770,18 +970,18 @@ x_6 = x_5 == x_2; return x_6; } } -lean_object* l_Lean_ExprCachedData_nonDepLet___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_nonDepLet___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint8_t x_3; lean_object* x_4; x_2 = lean_unbox_uint64(x_1); lean_dec(x_1); -x_3 = l_Lean_ExprCachedData_nonDepLet(x_2); +x_3 = l_Lean_Expr_CachedData_nonDepLet(x_2); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_ExprCachedData_binderInfo___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_CachedData_binderInfo___boxed(lean_object* x_1) { _start: { uint64_t x_2; uint8_t x_3; lean_object* x_4; @@ -803,7 +1003,7 @@ x_4 = lean_box_uint64(x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1() { +lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -813,7 +1013,7 @@ x_3 = lean_nat_sub(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2() { +lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2() { _start: { lean_object* x_1; @@ -821,7 +1021,7 @@ x_1 = lean_mk_string("Init.Lean.Expr"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__3() { +lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__3() { _start: { lean_object* x_1; @@ -829,32 +1029,32 @@ x_1 = lean_mk_string("bound variable index is too big"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4() { +lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(108u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(122u); x_3 = lean_unsigned_to_nat(42u); -x_4 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__3; +x_4 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__3; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed__const__1() { +lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed__const__1() { _start: { uint64_t x_1; lean_object* x_2; -x_1 = l_Lean_ExprCachedData_inhabited; +x_1 = l_Lean_Expr_CachedData_inhabited; x_2 = lean_box_uint64(x_1); return x_2; } } -uint64_t l___private_Init_Lean_Expr_2__mkExprCachedDataCore(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7, uint8_t x_8) { +uint64_t l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7, uint8_t x_8) { _start: { lean_object* x_9; uint8_t x_10; -x_9 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1; +x_9 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1; x_10 = lean_nat_dec_lt(x_9, x_2); if (x_10 == 0) { @@ -894,8 +1094,8 @@ return x_40; else { lean_object* x_41; lean_object* x_42; lean_object* x_43; uint64_t x_44; -x_41 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4; -x_42 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed__const__1; +x_41 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4; +x_42 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed__const__1; x_43 = lean_panic_fn(x_41); x_44 = lean_unbox_uint64(x_43); lean_dec(x_43); @@ -903,7 +1103,7 @@ return x_44; } } } -lean_object* l___private_Init_Lean_Expr_2__mkExprCachedDataCore___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* l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___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: { size_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; uint64_t x_16; lean_object* x_17; @@ -921,13 +1121,13 @@ x_14 = lean_unbox(x_7); lean_dec(x_7); x_15 = lean_unbox(x_8); lean_dec(x_8); -x_16 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore(x_9, x_2, x_10, x_11, x_12, x_13, x_14, x_15); +x_16 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore(x_9, x_2, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_2); x_17 = lean_box_uint64(x_16); return x_17; } } -uint64_t _init_l_Lean_mkExprCachedData___closed__1() { +uint64_t _init_l_Lean_Expr_mkCachedData___closed__1() { _start: { uint8_t x_1; uint64_t x_2; @@ -936,17 +1136,17 @@ x_2 = (uint64_t)x_1; return x_2; } } -uint64_t _init_l_Lean_mkExprCachedData___closed__2() { +uint64_t _init_l_Lean_Expr_mkCachedData___closed__2() { _start: { uint64_t x_1; uint64_t x_2; uint64_t x_3; x_1 = 36; -x_2 = l_Lean_mkExprCachedData___closed__1; +x_2 = l_Lean_Expr_mkCachedData___closed__1; x_3 = x_2 << x_1; return x_3; } } -uint64_t _init_l_Lean_mkExprCachedData___closed__3() { +uint64_t _init_l_Lean_Expr_mkCachedData___closed__3() { _start: { uint8_t x_1; uint64_t x_2; @@ -955,30 +1155,30 @@ x_2 = (uint64_t)x_1; return x_2; } } -uint64_t _init_l_Lean_mkExprCachedData___closed__4() { +uint64_t _init_l_Lean_Expr_mkCachedData___closed__4() { _start: { uint64_t x_1; uint64_t x_2; uint64_t x_3; x_1 = 37; -x_2 = l_Lean_mkExprCachedData___closed__3; +x_2 = l_Lean_Expr_mkCachedData___closed__3; x_3 = x_2 << x_1; return x_3; } } -lean_object* _init_l_Lean_mkExprCachedData___boxed__const__1() { +lean_object* _init_l_Lean_Expr_mkCachedData___boxed__const__1() { _start: { uint64_t x_1; lean_object* x_2; -x_1 = l_Lean_ExprCachedData_inhabited; +x_1 = l_Lean_Expr_CachedData_inhabited; x_2 = lean_box_uint64(x_1); return x_2; } } -uint64_t l_Lean_mkExprCachedData(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6) { +uint64_t l_Lean_Expr_mkCachedData(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6) { _start: { lean_object* x_7; uint8_t x_8; -x_7 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1; +x_7 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1; x_8 = lean_nat_dec_lt(x_7, x_2); if (x_8 == 0) { @@ -1001,9 +1201,9 @@ x_23 = (uint64_t)x_6; x_24 = 35; x_25 = x_23 << x_24; x_26 = x_22 + x_25; -x_27 = l_Lean_mkExprCachedData___closed__2; +x_27 = l_Lean_Expr_mkCachedData___closed__2; x_28 = x_26 + x_27; -x_29 = l_Lean_mkExprCachedData___closed__4; +x_29 = l_Lean_Expr_mkCachedData___closed__4; x_30 = x_28 + x_29; x_31 = lean_uint64_of_nat(x_2); x_32 = 40; @@ -1014,8 +1214,8 @@ return x_34; else { lean_object* x_35; lean_object* x_36; lean_object* x_37; uint64_t x_38; -x_35 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4; -x_36 = l_Lean_mkExprCachedData___boxed__const__1; +x_35 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4; +x_36 = l_Lean_Expr_mkCachedData___boxed__const__1; x_37 = lean_panic_fn(x_35); x_38 = lean_unbox_uint64(x_37); lean_dec(x_37); @@ -1023,7 +1223,7 @@ return x_38; } } } -lean_object* l_Lean_mkExprCachedData___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* l_Lean_Expr_mkCachedData___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: { size_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint64_t x_12; lean_object* x_13; @@ -1037,26 +1237,26 @@ x_10 = lean_unbox(x_5); lean_dec(x_5); x_11 = lean_unbox(x_6); lean_dec(x_6); -x_12 = l_Lean_mkExprCachedData(x_7, x_2, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Expr_mkCachedData(x_7, x_2, x_8, x_9, x_10, x_11); lean_dec(x_2); x_13 = lean_box_uint64(x_12); return x_13; } } -lean_object* _init_l_Lean_mkExprCachedDataForBinder___boxed__const__1() { +lean_object* _init_l_Lean_Expr_mkCachedDataForBinder___boxed__const__1() { _start: { uint64_t x_1; lean_object* x_2; -x_1 = l_Lean_ExprCachedData_inhabited; +x_1 = l_Lean_Expr_CachedData_inhabited; x_2 = lean_box_uint64(x_1); return x_2; } } -uint64_t l_Lean_mkExprCachedDataForBinder(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7) { +uint64_t l_Lean_Expr_mkCachedDataForBinder(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7) { _start: { lean_object* x_8; uint8_t x_9; -x_8 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1; +x_8 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1; x_9 = lean_nat_dec_lt(x_8, x_2); if (x_9 == 0) { @@ -1079,7 +1279,7 @@ x_24 = (uint64_t)x_6; x_25 = 35; x_26 = x_24 << x_25; x_27 = x_23 + x_26; -x_28 = l_Lean_mkExprCachedData___closed__2; +x_28 = l_Lean_Expr_mkCachedData___closed__2; x_29 = x_27 + x_28; x_30 = (uint64_t)x_7; x_31 = 37; @@ -1094,8 +1294,8 @@ return x_37; else { lean_object* x_38; lean_object* x_39; lean_object* x_40; uint64_t x_41; -x_38 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4; -x_39 = l_Lean_mkExprCachedDataForBinder___boxed__const__1; +x_38 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4; +x_39 = l_Lean_Expr_mkCachedDataForBinder___boxed__const__1; x_40 = lean_panic_fn(x_38); x_41 = lean_unbox_uint64(x_40); lean_dec(x_40); @@ -1103,7 +1303,7 @@ return x_41; } } } -lean_object* l_Lean_mkExprCachedDataForBinder___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* l_Lean_Expr_mkCachedDataForBinder___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: { size_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint64_t x_14; lean_object* x_15; @@ -1119,26 +1319,26 @@ x_12 = lean_unbox(x_6); lean_dec(x_6); x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_Lean_mkExprCachedDataForBinder(x_8, x_2, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Lean_Expr_mkCachedDataForBinder(x_8, x_2, x_9, x_10, x_11, x_12, x_13); lean_dec(x_2); x_15 = lean_box_uint64(x_14); return x_15; } } -lean_object* _init_l_Lean_mkExprCachedDataForLet___boxed__const__1() { +lean_object* _init_l_Lean_Expr_mkCachedDataForLet___boxed__const__1() { _start: { uint64_t x_1; lean_object* x_2; -x_1 = l_Lean_ExprCachedData_inhabited; +x_1 = l_Lean_Expr_CachedData_inhabited; x_2 = lean_box_uint64(x_1); return x_2; } } -uint64_t l_Lean_mkExprCachedDataForLet(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7) { +uint64_t l_Lean_Expr_mkCachedDataForLet(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7) { _start: { lean_object* x_8; uint8_t x_9; -x_8 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1; +x_8 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1; x_9 = lean_nat_dec_lt(x_8, x_2); if (x_9 == 0) { @@ -1165,7 +1365,7 @@ x_28 = (uint64_t)x_7; x_29 = 36; x_30 = x_28 << x_29; x_31 = x_27 + x_30; -x_32 = l_Lean_mkExprCachedData___closed__4; +x_32 = l_Lean_Expr_mkCachedData___closed__4; x_33 = x_31 + x_32; x_34 = lean_uint64_of_nat(x_2); x_35 = 40; @@ -1176,8 +1376,8 @@ return x_37; else { lean_object* x_38; lean_object* x_39; lean_object* x_40; uint64_t x_41; -x_38 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4; -x_39 = l_Lean_mkExprCachedDataForLet___boxed__const__1; +x_38 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4; +x_39 = l_Lean_Expr_mkCachedDataForLet___boxed__const__1; x_40 = lean_panic_fn(x_38); x_41 = lean_unbox_uint64(x_40); lean_dec(x_40); @@ -1185,7 +1385,7 @@ return x_41; } } } -lean_object* l_Lean_mkExprCachedDataForLet___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* l_Lean_Expr_mkCachedDataForLet___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: { size_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint64_t x_14; lean_object* x_15; @@ -1201,136 +1401,1093 @@ x_12 = lean_unbox(x_6); lean_dec(x_6); x_13 = lean_unbox(x_7); lean_dec(x_7); -x_14 = l_Lean_mkExprCachedDataForLet(x_8, x_2, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Lean_Expr_mkCachedDataForLet(x_8, x_2, x_9, x_10, x_11, x_12, x_13); lean_dec(x_2); x_15 = lean_box_uint64(x_14); return x_15; } } -lean_object* _init_l_Lean_Expr_inhabited___closed__1() { +lean_object* _init_l_Lean_Expr_Inhabited___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +uint64_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(3, 1, 8); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set_uint64(x_3, sizeof(void*)*1, x_1); +return x_3; } } -lean_object* _init_l_Lean_Expr_inhabited() { +lean_object* _init_l_Lean_Expr_Inhabited() { _start: { lean_object* x_1; -x_1 = l_Lean_Expr_inhabited___closed__1; +x_1 = l_Lean_Expr_Inhabited___closed__1; return x_1; } } -lean_object* l_Lean_Expr_bvar___boxed(lean_object* x_1) { +uint64_t l_Lean_Expr_cachedData(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_expr_mk_bvar(x_1); +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); return x_2; } +case 5: +{ +uint64_t x_3; +x_3 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +return x_3; } -lean_object* l_Lean_Expr_fvar___boxed(lean_object* x_1) { +case 6: +{ +uint64_t x_4; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +return x_4; +} +case 7: +{ +uint64_t x_5; +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +return x_5; +} +case 8: +{ +uint64_t x_6; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +return x_6; +} +case 10: +{ +uint64_t x_7; +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +return x_7; +} +case 11: +{ +uint64_t x_8; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +return x_8; +} +case 12: +{ +uint64_t x_9; +x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +return x_9; +} +default: +{ +uint64_t x_10; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +return x_10; +} +} +} +} +lean_object* l_Lean_Expr_cachedData___boxed(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_expr_mk_fvar(x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_mvar___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_expr_mk_mvar(x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_sort___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_expr_mk_sort(x_1); -return x_2; -} -} -lean_object* l_Lean_Expr_const___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_expr_mk_const(x_1, x_2); +uint64_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_cachedData(x_1); +lean_dec(x_1); +x_3 = lean_box_uint64(x_2); return x_3; } } -lean_object* l_Lean_Expr_app___boxed(lean_object* x_1, lean_object* x_2) { +uint64_t lean_expr_cached_data(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = lean_expr_mk_app(x_1, x_2); +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +return x_2; +} +case 5: +{ +uint64_t x_3; +x_3 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +return x_3; +} +case 6: +{ +uint64_t x_4; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +return x_4; +} +case 7: +{ +uint64_t x_5; +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +return x_5; +} +case 8: +{ +uint64_t x_6; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +lean_dec(x_1); +return x_6; +} +case 10: +{ +uint64_t x_7; +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +return x_7; +} +case 11: +{ +uint64_t x_8; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +return x_8; +} +case 12: +{ +uint64_t x_9; +x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +return x_9; +} +default: +{ +uint64_t x_10; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +return x_10; +} +} +} +} +lean_object* l_Lean_Expr_cachedDataEx___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; lean_object* x_3; +x_2 = lean_expr_cached_data(x_1); +x_3 = lean_box_uint64(x_2); return x_3; } } -lean_object* l_Lean_Expr_lam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +size_t l_Lean_Expr_hash(lean_object* x_1) { _start: { -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_2); -lean_dec(x_2); -x_6 = lean_expr_mk_lambda(x_1, x_5, x_3, x_4); -return x_6; +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; size_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = l_Lean_Expr_CachedData_hash(x_2); +return x_3; +} +case 5: +{ +uint64_t x_4; size_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_5 = l_Lean_Expr_CachedData_hash(x_4); +return x_5; +} +case 6: +{ +uint64_t x_6; size_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_7 = l_Lean_Expr_CachedData_hash(x_6); +return x_7; +} +case 7: +{ +uint64_t x_8; size_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = l_Lean_Expr_CachedData_hash(x_8); +return x_9; +} +case 8: +{ +uint64_t x_10; size_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_11 = l_Lean_Expr_CachedData_hash(x_10); +return x_11; +} +case 10: +{ +uint64_t x_12; size_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = l_Lean_Expr_CachedData_hash(x_12); +return x_13; +} +case 11: +{ +uint64_t x_14; size_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_15 = l_Lean_Expr_CachedData_hash(x_14); +return x_15; +} +case 12: +{ +uint64_t x_16; size_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_17 = l_Lean_Expr_CachedData_hash(x_16); +return x_17; +} +default: +{ +uint64_t x_18; size_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_19 = l_Lean_Expr_CachedData_hash(x_18); +return x_19; } } -lean_object* l_Lean_Expr_forallE___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +} +lean_object* l_Lean_Expr_hash___boxed(lean_object* x_1) { _start: { -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_2); -lean_dec(x_2); -x_6 = lean_expr_mk_forall(x_1, x_5, x_3, x_4); -return x_6; +size_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hash(x_1); +lean_dec(x_1); +x_3 = lean_box_usize(x_2); +return x_3; } } -lean_object* l_Lean_Expr_letE___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* _init_l_Lean_Expr_Hashable___closed__1() { _start: { -lean_object* x_5; -x_5 = lean_expr_mk_let(x_1, x_2, x_3, x_4); +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Expr_hash___boxed), 1, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_Hashable() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Expr_Hashable___closed__1; +return x_1; +} +} +uint8_t l_Lean_Expr_hasFVar(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint8_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = l_Lean_Expr_CachedData_hasFVar(x_2); +return x_3; +} +case 5: +{ +uint64_t x_4; uint8_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_5 = l_Lean_Expr_CachedData_hasFVar(x_4); +return x_5; +} +case 6: +{ +uint64_t x_6; uint8_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_7 = l_Lean_Expr_CachedData_hasFVar(x_6); +return x_7; +} +case 7: +{ +uint64_t x_8; uint8_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = l_Lean_Expr_CachedData_hasFVar(x_8); +return x_9; +} +case 8: +{ +uint64_t x_10; uint8_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_11 = l_Lean_Expr_CachedData_hasFVar(x_10); +return x_11; +} +case 10: +{ +uint64_t x_12; uint8_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = l_Lean_Expr_CachedData_hasFVar(x_12); +return x_13; +} +case 11: +{ +uint64_t x_14; uint8_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_15 = l_Lean_Expr_CachedData_hasFVar(x_14); +return x_15; +} +case 12: +{ +uint64_t x_16; uint8_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_17 = l_Lean_Expr_CachedData_hasFVar(x_16); +return x_17; +} +default: +{ +uint64_t x_18; uint8_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_19 = l_Lean_Expr_CachedData_hasFVar(x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Expr_hasFVar___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasFVar(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t l_Lean_Expr_hasExprMVar(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint8_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = l_Lean_Expr_CachedData_hasExprMVar(x_2); +return x_3; +} +case 5: +{ +uint64_t x_4; uint8_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_5 = l_Lean_Expr_CachedData_hasExprMVar(x_4); +return x_5; +} +case 6: +{ +uint64_t x_6; uint8_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_7 = l_Lean_Expr_CachedData_hasExprMVar(x_6); +return x_7; +} +case 7: +{ +uint64_t x_8; uint8_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = l_Lean_Expr_CachedData_hasExprMVar(x_8); +return x_9; +} +case 8: +{ +uint64_t x_10; uint8_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_11 = l_Lean_Expr_CachedData_hasExprMVar(x_10); +return x_11; +} +case 10: +{ +uint64_t x_12; uint8_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = l_Lean_Expr_CachedData_hasExprMVar(x_12); +return x_13; +} +case 11: +{ +uint64_t x_14; uint8_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_15 = l_Lean_Expr_CachedData_hasExprMVar(x_14); +return x_15; +} +case 12: +{ +uint64_t x_16; uint8_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_17 = l_Lean_Expr_CachedData_hasExprMVar(x_16); +return x_17; +} +default: +{ +uint64_t x_18; uint8_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_19 = l_Lean_Expr_CachedData_hasExprMVar(x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Expr_hasExprMVar___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasExprMVar(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t l_Lean_Expr_hasLevelMVar(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint8_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = l_Lean_Expr_CachedData_hasLevelMVar(x_2); +return x_3; +} +case 5: +{ +uint64_t x_4; uint8_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_5 = l_Lean_Expr_CachedData_hasLevelMVar(x_4); +return x_5; +} +case 6: +{ +uint64_t x_6; uint8_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_7 = l_Lean_Expr_CachedData_hasLevelMVar(x_6); +return x_7; +} +case 7: +{ +uint64_t x_8; uint8_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = l_Lean_Expr_CachedData_hasLevelMVar(x_8); +return x_9; +} +case 8: +{ +uint64_t x_10; uint8_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_11 = l_Lean_Expr_CachedData_hasLevelMVar(x_10); +return x_11; +} +case 10: +{ +uint64_t x_12; uint8_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = l_Lean_Expr_CachedData_hasLevelMVar(x_12); +return x_13; +} +case 11: +{ +uint64_t x_14; uint8_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_15 = l_Lean_Expr_CachedData_hasLevelMVar(x_14); +return x_15; +} +case 12: +{ +uint64_t x_16; uint8_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_17 = l_Lean_Expr_CachedData_hasLevelMVar(x_16); +return x_17; +} +default: +{ +uint64_t x_18; uint8_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_19 = l_Lean_Expr_CachedData_hasLevelMVar(x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasLevelMVar(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t l_Lean_Expr_hasMVar(lean_object* x_1) { +_start: +{ +uint64_t x_2; +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_7; +x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_2 = x_7; +goto block_6; +} +case 5: +{ +uint64_t x_8; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_2 = x_8; +goto block_6; +} +case 6: +{ +uint64_t x_9; +x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_2 = x_9; +goto block_6; +} +case 7: +{ +uint64_t x_10; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_2 = x_10; +goto block_6; +} +case 8: +{ +uint64_t x_11; +x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_2 = x_11; +goto block_6; +} +case 10: +{ +uint64_t x_12; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_2 = x_12; +goto block_6; +} +case 11: +{ +uint64_t x_13; +x_13 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_2 = x_13; +goto block_6; +} +case 12: +{ +uint64_t x_14; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_2 = x_14; +goto block_6; +} +default: +{ +uint64_t x_15; +x_15 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_2 = x_15; +goto block_6; +} +} +block_6: +{ +uint8_t x_3; +x_3 = l_Lean_Expr_CachedData_hasExprMVar(x_2); +if (x_3 == 0) +{ +uint8_t x_4; +x_4 = l_Lean_Expr_CachedData_hasLevelMVar(x_2); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = 1; return x_5; } } -lean_object* l_Lean_Expr_lit___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_expr_mk_lit(x_1); -return x_2; } } -lean_object* l_Lean_Expr_mdata___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Expr_hasMVar___boxed(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = lean_expr_mk_mdata(x_1, x_2); +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasMVar(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Lean_Expr_proj___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +uint8_t l_Lean_Expr_hasLevelParam(lean_object* x_1) { _start: { -lean_object* x_4; -x_4 = lean_expr_mk_proj(x_1, x_2, x_3); +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint8_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = l_Lean_Expr_CachedData_hasLevelParam(x_2); +return x_3; +} +case 5: +{ +uint64_t x_4; uint8_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_5 = l_Lean_Expr_CachedData_hasLevelParam(x_4); +return x_5; +} +case 6: +{ +uint64_t x_6; uint8_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_7 = l_Lean_Expr_CachedData_hasLevelParam(x_6); +return x_7; +} +case 7: +{ +uint64_t x_8; uint8_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = l_Lean_Expr_CachedData_hasLevelParam(x_8); +return x_9; +} +case 8: +{ +uint64_t x_10; uint8_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_11 = l_Lean_Expr_CachedData_hasLevelParam(x_10); +return x_11; +} +case 10: +{ +uint64_t x_12; uint8_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = l_Lean_Expr_CachedData_hasLevelParam(x_12); +return x_13; +} +case 11: +{ +uint64_t x_14; uint8_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_15 = l_Lean_Expr_CachedData_hasLevelParam(x_14); +return x_15; +} +case 12: +{ +uint64_t x_16; uint8_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_17 = l_Lean_Expr_CachedData_hasLevelParam(x_16); +return x_17; +} +default: +{ +uint64_t x_18; uint8_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_19 = l_Lean_Expr_CachedData_hasLevelParam(x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Expr_hasLevelParam___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasLevelParam(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l_Lean_Expr_looseBVarRange(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint32_t x_3; lean_object* x_4; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = l_Lean_Expr_CachedData_looseBVarRange(x_2); +x_4 = lean_uint32_to_nat(x_3); return x_4; } +case 5: +{ +uint64_t x_5; uint32_t x_6; lean_object* x_7; +x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_6 = l_Lean_Expr_CachedData_looseBVarRange(x_5); +x_7 = lean_uint32_to_nat(x_6); +return x_7; +} +case 6: +{ +uint64_t x_8; uint32_t x_9; lean_object* x_10; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = l_Lean_Expr_CachedData_looseBVarRange(x_8); +x_10 = lean_uint32_to_nat(x_9); +return x_10; +} +case 7: +{ +uint64_t x_11; uint32_t x_12; lean_object* x_13; +x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_12 = l_Lean_Expr_CachedData_looseBVarRange(x_11); +x_13 = lean_uint32_to_nat(x_12); +return x_13; +} +case 8: +{ +uint64_t x_14; uint32_t x_15; lean_object* x_16; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_15 = l_Lean_Expr_CachedData_looseBVarRange(x_14); +x_16 = lean_uint32_to_nat(x_15); +return x_16; +} +case 10: +{ +uint64_t x_17; uint32_t x_18; lean_object* x_19; +x_17 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_18 = l_Lean_Expr_CachedData_looseBVarRange(x_17); +x_19 = lean_uint32_to_nat(x_18); +return x_19; +} +case 11: +{ +uint64_t x_20; uint32_t x_21; lean_object* x_22; +x_20 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_21 = l_Lean_Expr_CachedData_looseBVarRange(x_20); +x_22 = lean_uint32_to_nat(x_21); +return x_22; +} +case 12: +{ +uint64_t x_23; uint32_t x_24; lean_object* x_25; +x_23 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_24 = l_Lean_Expr_CachedData_looseBVarRange(x_23); +x_25 = lean_uint32_to_nat(x_24); +return x_25; +} +default: +{ +uint64_t x_26; uint32_t x_27; lean_object* x_28; +x_26 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_27 = l_Lean_Expr_CachedData_looseBVarRange(x_26); +x_28 = lean_uint32_to_nat(x_27); +return x_28; +} +} +} +} +lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Expr_looseBVarRange(x_1); +lean_dec(x_1); +return x_2; +} +} +uint8_t l_Lean_Expr_binderInfo(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint8_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_3 = (uint8_t)((x_2 << 24) >> 61); +return x_3; +} +case 5: +{ +uint64_t x_4; uint8_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_5 = (uint8_t)((x_4 << 24) >> 61); +return x_5; +} +case 6: +{ +uint64_t x_6; uint8_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_7 = (uint8_t)((x_6 << 24) >> 61); +return x_7; +} +case 7: +{ +uint64_t x_8; uint8_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_9 = (uint8_t)((x_8 << 24) >> 61); +return x_9; +} +case 8: +{ +uint64_t x_10; uint8_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +x_11 = (uint8_t)((x_10 << 24) >> 61); +return x_11; +} +case 10: +{ +uint64_t x_12; uint8_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = (uint8_t)((x_12 << 24) >> 61); +return x_13; +} +case 11: +{ +uint64_t x_14; uint8_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_15 = (uint8_t)((x_14 << 24) >> 61); +return x_15; +} +case 12: +{ +uint64_t x_16; uint8_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_17 = (uint8_t)((x_16 << 24) >> 61); +return x_17; +} +default: +{ +uint64_t x_18; uint8_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +x_19 = (uint8_t)((x_18 << 24) >> 61); +return x_19; +} +} +} +} +lean_object* l_Lean_Expr_binderInfo___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_binderInfo(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +size_t lean_expr_hash(lean_object* x_1) { +_start: +{ +size_t x_2; +x_2 = l_Lean_Expr_hash(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_hashEx___boxed(lean_object* x_1) { +_start: +{ +size_t x_2; lean_object* x_3; +x_2 = lean_expr_hash(x_1); +x_3 = lean_box_usize(x_2); +return x_3; +} +} +uint8_t lean_expr_has_fvar(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_hasFVar(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_hasFVarEx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_expr_has_fvar(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t lean_expr_has_expr_mvar(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_hasExprMVar(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_hasExprMVarEx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_expr_has_expr_mvar(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t lean_expr_has_level_mvar(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_hasLevelMVar(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_hasLevelMVarEx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_expr_has_level_mvar(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t lean_expr_has_mvar(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_hasMVar(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_hasMVarEx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_expr_has_mvar(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint8_t lean_expr_has_level_param(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_hasLevelParam(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_hasLevelParamEx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_expr_has_level_param(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +uint32_t lean_expr_loose_bvar_range(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 4: +{ +uint64_t x_2; uint32_t x_3; +x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_3 = l_Lean_Expr_CachedData_looseBVarRange(x_2); +return x_3; +} +case 5: +{ +uint64_t x_4; uint32_t x_5; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_5 = l_Lean_Expr_CachedData_looseBVarRange(x_4); +return x_5; +} +case 6: +{ +uint64_t x_6; uint32_t x_7; +x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_7 = l_Lean_Expr_CachedData_looseBVarRange(x_6); +return x_7; +} +case 7: +{ +uint64_t x_8; uint32_t x_9; +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_9 = l_Lean_Expr_CachedData_looseBVarRange(x_8); +return x_9; +} +case 8: +{ +uint64_t x_10; uint32_t x_11; +x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4); +lean_dec(x_1); +x_11 = l_Lean_Expr_CachedData_looseBVarRange(x_10); +return x_11; +} +case 10: +{ +uint64_t x_12; uint32_t x_13; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +lean_dec(x_1); +x_13 = l_Lean_Expr_CachedData_looseBVarRange(x_12); +return x_13; +} +case 11: +{ +uint64_t x_14; uint32_t x_15; +x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_15 = l_Lean_Expr_CachedData_looseBVarRange(x_14); +return x_15; +} +case 12: +{ +uint64_t x_16; uint32_t x_17; +x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_17 = l_Lean_Expr_CachedData_looseBVarRange(x_16); +return x_17; +} +default: +{ +uint64_t x_18; uint32_t x_19; +x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1); +lean_dec(x_1); +x_19 = l_Lean_Expr_CachedData_looseBVarRange(x_18); +return x_19; +} +} +} +} +lean_object* l_Lean_Expr_looseBVarRangeEx___boxed(lean_object* x_1) { +_start: +{ +uint32_t x_2; lean_object* x_3; +x_2 = lean_expr_loose_bvar_range(x_1); +x_3 = lean_box_uint32(x_2); +return x_3; +} +} +uint8_t lean_expr_binder_info(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Expr_binderInfo(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_Expr_binderInfoEx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_expr_binder_info(x_1); +x_3 = lean_box(x_2); +return x_3; +} } lean_object* l_Lean_mkLit(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_expr_mk_lit(x_1); -return x_2; +size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; uint8_t x_6; uint64_t x_7; lean_object* x_8; +x_2 = 3; +lean_inc(x_1); +x_3 = l_Lean_Literal_hash(x_1); +x_4 = lean_usize_mix_hash(x_2, x_3); +x_5 = lean_unsigned_to_nat(0u); +x_6 = 0; +x_7 = l_Lean_Expr_mkCachedData(x_4, x_5, x_6, x_6, x_6, x_6); +x_8 = lean_alloc_ctor(9, 1, 8); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set_uint64(x_8, sizeof(void*)*1, x_7); +return x_8; } } lean_object* l_Lean_mkNatLit(lean_object* x_1) { @@ -1339,7 +2496,7 @@ _start: lean_object* x_2; lean_object* x_3; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); -x_3 = lean_expr_mk_lit(x_2); +x_3 = l_Lean_mkLit(x_2); return x_3; } } @@ -1349,34 +2506,164 @@ _start: lean_object* x_2; lean_object* x_3; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); -x_3 = lean_expr_mk_lit(x_2); +x_3 = l_Lean_mkLit(x_2); return x_3; } } +size_t l_List_foldl___main___at_Lean_mkConst___spec__2(size_t x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = lean_level_hash(x_3); +x_6 = lean_usize_mix_hash(x_1, x_5); +x_1 = x_6; +x_2 = x_4; +goto _start; +} +} +} +size_t l_List_hash___at_Lean_mkConst___spec__1(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; +x_2 = 7; +x_3 = l_List_foldl___main___at_Lean_mkConst___spec__2(x_2, x_1); +return x_3; +} +} +uint8_t l_List_foldr___main___at_Lean_mkConst___spec__3(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_1, x_4); +x_6 = lean_level_has_mvar(x_3); +if (x_6 == 0) +{ +return x_5; +} +else +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +} +} +} +uint8_t l_List_foldr___main___at_Lean_mkConst___spec__4(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_List_foldr___main___at_Lean_mkConst___spec__4(x_1, x_4); +x_6 = lean_level_has_param(x_3); +if (x_6 == 0) +{ +return x_5; +} +else +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +} +} +} lean_object* l_Lean_mkConst(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = lean_expr_mk_const(x_1, x_2); +size_t x_3; size_t x_4; size_t x_5; size_t x_6; size_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; +x_3 = 5; +x_4 = lean_name_hash_usize(x_1); +x_5 = l_List_hash___at_Lean_mkConst___spec__1(x_2); +x_6 = lean_usize_mix_hash(x_4, x_5); +x_7 = lean_usize_mix_hash(x_3, x_6); +x_8 = 0; +lean_inc(x_2); +x_9 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_8, x_2); +lean_inc(x_2); +x_10 = l_List_foldr___main___at_Lean_mkConst___spec__4(x_8, x_2); +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_Lean_Expr_mkCachedData(x_7, x_11, x_8, x_8, x_9, x_10); +x_13 = lean_alloc_ctor(4, 2, 8); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_2); +lean_ctor_set_uint64(x_13, sizeof(void*)*2, x_12); +return x_13; +} +} +lean_object* l_List_foldl___main___at_Lean_mkConst___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +size_t x_3; size_t x_4; lean_object* x_5; +x_3 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_4 = l_List_foldl___main___at_Lean_mkConst___spec__2(x_3, x_2); +lean_dec(x_2); +x_5 = lean_box_usize(x_4); +return x_5; +} +} +lean_object* l_List_hash___at_Lean_mkConst___spec__1___boxed(lean_object* x_1) { +_start: +{ +size_t x_2; lean_object* x_3; +x_2 = l_List_hash___at_Lean_mkConst___spec__1(x_1); +lean_dec(x_1); +x_3 = lean_box_usize(x_2); return x_3; } } -lean_object* _init_l_Lean_Literal_Inhabited___closed__1() { +lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_3, x_2); +x_5 = lean_box(x_4); +return x_5; } } -lean_object* _init_l_Lean_Literal_Inhabited() { +lean_object* l_List_foldr___main___at_Lean_mkConst___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = l_Lean_Literal_Inhabited___closed__1; -return x_1; +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_List_foldr___main___at_Lean_mkConst___spec__4(x_3, x_2); +x_5 = lean_box(x_4); +return x_5; } } lean_object* _init_l_Lean_Literal_type___closed__1() { @@ -1403,7 +2690,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Literal_type___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -1431,7 +2718,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Literal_type___closed__5; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -1461,62 +2748,1549 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_mkBVar(lean_object* x_1) { +lean_object* lean_lit_type(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_expr_mk_bvar(x_1); +x_2 = l_Lean_Literal_type(x_1); +lean_dec(x_1); return x_2; } } +lean_object* l_Lean_mkBVar(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; +x_2 = 7; +x_3 = lean_usize_of_nat(x_1); +x_4 = lean_usize_mix_hash(x_2, x_3); +x_5 = lean_unsigned_to_nat(1u); +x_6 = lean_nat_add(x_1, x_5); +x_7 = 0; +x_8 = l_Lean_Expr_mkCachedData(x_4, x_6, x_7, x_7, x_7, x_7); +lean_dec(x_6); +x_9 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set_uint64(x_9, sizeof(void*)*1, x_8); +return x_9; +} +} lean_object* l_Lean_mkSort(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_expr_mk_sort(x_1); -return x_2; +size_t x_2; size_t x_3; size_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; uint64_t x_9; lean_object* x_10; +x_2 = 11; +x_3 = lean_level_hash(x_1); +x_4 = lean_usize_mix_hash(x_2, x_3); +lean_inc(x_1); +x_5 = lean_level_has_mvar(x_1); +lean_inc(x_1); +x_6 = lean_level_has_param(x_1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = 0; +x_9 = l_Lean_Expr_mkCachedData(x_4, x_7, x_8, x_8, x_5, x_6); +x_10 = lean_alloc_ctor(3, 1, 8); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set_uint64(x_10, sizeof(void*)*1, x_9); +return x_10; } } lean_object* l_Lean_mkFVar(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_expr_mk_fvar(x_1); -return x_2; +size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; +x_2 = 13; +x_3 = lean_name_hash_usize(x_1); +x_4 = lean_usize_mix_hash(x_2, x_3); +x_5 = lean_unsigned_to_nat(0u); +x_6 = 1; +x_7 = 0; +x_8 = l_Lean_Expr_mkCachedData(x_4, x_5, x_6, x_7, x_7, x_7); +x_9 = lean_alloc_ctor(1, 1, 8); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set_uint64(x_9, sizeof(void*)*1, x_8); +return x_9; } } lean_object* l_Lean_mkMVar(lean_object* x_1) { _start: { -lean_object* x_2; -x_2 = lean_expr_mk_mvar(x_1); -return x_2; +size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; +x_2 = 17; +x_3 = lean_name_hash_usize(x_1); +x_4 = lean_usize_mix_hash(x_2, x_3); +x_5 = lean_unsigned_to_nat(0u); +x_6 = 0; +x_7 = 1; +x_8 = l_Lean_Expr_mkCachedData(x_4, x_5, x_6, x_7, x_6, x_6); +x_9 = lean_alloc_ctor(2, 1, 8); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set_uint64(x_9, sizeof(void*)*1, x_8); +return x_9; } } lean_object* l_Lean_mkMData(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = lean_expr_mk_mdata(x_1, x_2); -return x_3; +size_t x_3; size_t x_4; size_t x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint64_t x_11; lean_object* x_12; +x_3 = 19; +x_4 = l_Lean_Expr_hash(x_2); +x_5 = lean_usize_mix_hash(x_3, x_4); +x_6 = l_Lean_Expr_looseBVarRange(x_2); +x_7 = l_Lean_Expr_hasFVar(x_2); +x_8 = l_Lean_Expr_hasExprMVar(x_2); +x_9 = l_Lean_Expr_hasLevelMVar(x_2); +x_10 = l_Lean_Expr_hasLevelParam(x_2); +x_11 = l_Lean_Expr_mkCachedData(x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_6); +x_12 = lean_alloc_ctor(10, 2, 8); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_2); +lean_ctor_set_uint64(x_12, sizeof(void*)*2, x_11); +return x_12; } } lean_object* l_Lean_mkProj(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; -x_4 = lean_expr_mk_proj(x_1, x_2, x_3); -return x_4; +size_t x_4; size_t x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; uint64_t x_16; lean_object* x_17; +x_4 = 23; +x_5 = lean_name_hash_usize(x_1); +x_6 = lean_usize_of_nat(x_2); +x_7 = l_Lean_Expr_hash(x_3); +x_8 = lean_usize_mix_hash(x_6, x_7); +x_9 = lean_usize_mix_hash(x_5, x_8); +x_10 = lean_usize_mix_hash(x_4, x_9); +x_11 = l_Lean_Expr_looseBVarRange(x_3); +x_12 = l_Lean_Expr_hasFVar(x_3); +x_13 = l_Lean_Expr_hasExprMVar(x_3); +x_14 = l_Lean_Expr_hasLevelMVar(x_3); +x_15 = l_Lean_Expr_hasLevelParam(x_3); +x_16 = l_Lean_Expr_mkCachedData(x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_11); +x_17 = lean_alloc_ctor(11, 3, 8); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_2); +lean_ctor_set(x_17, 2, x_3); +lean_ctor_set_uint64(x_17, sizeof(void*)*3, x_16); +return x_17; } } lean_object* l_Lean_mkApp(lean_object* x_1, lean_object* x_2) { _start: { +size_t x_3; size_t x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; +x_3 = 29; +x_4 = l_Lean_Expr_hash(x_1); +x_5 = l_Lean_Expr_hash(x_2); +x_6 = lean_usize_mix_hash(x_4, x_5); +x_7 = lean_usize_mix_hash(x_3, x_6); +x_8 = l_Lean_Expr_looseBVarRange(x_1); +x_9 = l_Lean_Expr_looseBVarRange(x_2); +x_10 = l_Nat_max(x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +x_11 = l_Lean_Expr_hasFVar(x_1); +x_12 = l_Lean_Expr_hasExprMVar(x_1); +x_13 = l_Lean_Expr_hasLevelMVar(x_1); +x_14 = l_Lean_Expr_hasLevelParam(x_1); +if (x_11 == 0) +{ +uint8_t x_15; +x_15 = l_Lean_Expr_hasFVar(x_2); +if (x_12 == 0) +{ +uint8_t x_16; +x_16 = l_Lean_Expr_hasExprMVar(x_2); +if (x_13 == 0) +{ +uint8_t x_17; +x_17 = l_Lean_Expr_hasLevelMVar(x_2); +if (x_14 == 0) +{ +uint8_t x_18; uint64_t x_19; lean_object* x_20; +x_18 = l_Lean_Expr_hasLevelParam(x_2); +x_19 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_16, x_17, x_18); +lean_dec(x_10); +x_20 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_2); +lean_ctor_set_uint64(x_20, sizeof(void*)*2, x_19); +return x_20; +} +else +{ +uint8_t x_21; uint64_t x_22; lean_object* x_23; +x_21 = 1; +x_22 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_16, x_17, x_21); +lean_dec(x_10); +x_23 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_2); +lean_ctor_set_uint64(x_23, sizeof(void*)*2, x_22); +return x_23; +} +} +else +{ +if (x_14 == 0) +{ +uint8_t x_24; uint8_t x_25; uint64_t x_26; lean_object* x_27; +x_24 = l_Lean_Expr_hasLevelParam(x_2); +x_25 = 1; +x_26 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_16, x_25, x_24); +lean_dec(x_10); +x_27 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_2); +lean_ctor_set_uint64(x_27, sizeof(void*)*2, x_26); +return x_27; +} +else +{ +uint8_t x_28; uint64_t x_29; lean_object* x_30; +x_28 = 1; +x_29 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_16, x_28, x_28); +lean_dec(x_10); +x_30 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_2); +lean_ctor_set_uint64(x_30, sizeof(void*)*2, x_29); +return x_30; +} +} +} +else +{ +if (x_13 == 0) +{ +uint8_t x_31; +x_31 = l_Lean_Expr_hasLevelMVar(x_2); +if (x_14 == 0) +{ +uint8_t x_32; uint8_t x_33; uint64_t x_34; lean_object* x_35; +x_32 = l_Lean_Expr_hasLevelParam(x_2); +x_33 = 1; +x_34 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_33, x_31, x_32); +lean_dec(x_10); +x_35 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_35, 0, x_1); +lean_ctor_set(x_35, 1, x_2); +lean_ctor_set_uint64(x_35, sizeof(void*)*2, x_34); +return x_35; +} +else +{ +uint8_t x_36; uint64_t x_37; lean_object* x_38; +x_36 = 1; +x_37 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_36, x_31, x_36); +lean_dec(x_10); +x_38 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_38, 0, x_1); +lean_ctor_set(x_38, 1, x_2); +lean_ctor_set_uint64(x_38, sizeof(void*)*2, x_37); +return x_38; +} +} +else +{ +if (x_14 == 0) +{ +uint8_t x_39; uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_39 = l_Lean_Expr_hasLevelParam(x_2); +x_40 = 1; +x_41 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_40, x_40, x_39); +lean_dec(x_10); +x_42 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_2); +lean_ctor_set_uint64(x_42, sizeof(void*)*2, x_41); +return x_42; +} +else +{ +uint8_t x_43; uint64_t x_44; lean_object* x_45; +x_43 = 1; +x_44 = l_Lean_Expr_mkCachedData(x_7, x_10, x_15, x_43, x_43, x_43); +lean_dec(x_10); +x_45 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_2); +lean_ctor_set_uint64(x_45, sizeof(void*)*2, x_44); +return x_45; +} +} +} +} +else +{ +if (x_12 == 0) +{ +uint8_t x_46; +x_46 = l_Lean_Expr_hasExprMVar(x_2); +if (x_13 == 0) +{ +uint8_t x_47; +x_47 = l_Lean_Expr_hasLevelMVar(x_2); +if (x_14 == 0) +{ +uint8_t x_48; uint8_t x_49; uint64_t x_50; lean_object* x_51; +x_48 = l_Lean_Expr_hasLevelParam(x_2); +x_49 = 1; +x_50 = l_Lean_Expr_mkCachedData(x_7, x_10, x_49, x_46, x_47, x_48); +lean_dec(x_10); +x_51 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_51, 0, x_1); +lean_ctor_set(x_51, 1, x_2); +lean_ctor_set_uint64(x_51, sizeof(void*)*2, x_50); +return x_51; +} +else +{ +uint8_t x_52; uint64_t x_53; lean_object* x_54; +x_52 = 1; +x_53 = l_Lean_Expr_mkCachedData(x_7, x_10, x_52, x_46, x_47, x_52); +lean_dec(x_10); +x_54 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_54, 0, x_1); +lean_ctor_set(x_54, 1, x_2); +lean_ctor_set_uint64(x_54, sizeof(void*)*2, x_53); +return x_54; +} +} +else +{ +if (x_14 == 0) +{ +uint8_t x_55; uint8_t x_56; uint64_t x_57; lean_object* x_58; +x_55 = l_Lean_Expr_hasLevelParam(x_2); +x_56 = 1; +x_57 = l_Lean_Expr_mkCachedData(x_7, x_10, x_56, x_46, x_56, x_55); +lean_dec(x_10); +x_58 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_2); +lean_ctor_set_uint64(x_58, sizeof(void*)*2, x_57); +return x_58; +} +else +{ +uint8_t x_59; uint64_t x_60; lean_object* x_61; +x_59 = 1; +x_60 = l_Lean_Expr_mkCachedData(x_7, x_10, x_59, x_46, x_59, x_59); +lean_dec(x_10); +x_61 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_61, 0, x_1); +lean_ctor_set(x_61, 1, x_2); +lean_ctor_set_uint64(x_61, sizeof(void*)*2, x_60); +return x_61; +} +} +} +else +{ +if (x_13 == 0) +{ +uint8_t x_62; +x_62 = l_Lean_Expr_hasLevelMVar(x_2); +if (x_14 == 0) +{ +uint8_t x_63; uint8_t x_64; uint64_t x_65; lean_object* x_66; +x_63 = l_Lean_Expr_hasLevelParam(x_2); +x_64 = 1; +x_65 = l_Lean_Expr_mkCachedData(x_7, x_10, x_64, x_64, x_62, x_63); +lean_dec(x_10); +x_66 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_66, 0, x_1); +lean_ctor_set(x_66, 1, x_2); +lean_ctor_set_uint64(x_66, sizeof(void*)*2, x_65); +return x_66; +} +else +{ +uint8_t x_67; uint64_t x_68; lean_object* x_69; +x_67 = 1; +x_68 = l_Lean_Expr_mkCachedData(x_7, x_10, x_67, x_67, x_62, x_67); +lean_dec(x_10); +x_69 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_69, 0, x_1); +lean_ctor_set(x_69, 1, x_2); +lean_ctor_set_uint64(x_69, sizeof(void*)*2, x_68); +return x_69; +} +} +else +{ +if (x_14 == 0) +{ +uint8_t x_70; uint8_t x_71; uint64_t x_72; lean_object* x_73; +x_70 = l_Lean_Expr_hasLevelParam(x_2); +x_71 = 1; +x_72 = l_Lean_Expr_mkCachedData(x_7, x_10, x_71, x_71, x_71, x_70); +lean_dec(x_10); +x_73 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_73, 0, x_1); +lean_ctor_set(x_73, 1, x_2); +lean_ctor_set_uint64(x_73, sizeof(void*)*2, x_72); +return x_73; +} +else +{ +uint8_t x_74; uint64_t x_75; lean_object* x_76; +x_74 = 1; +x_75 = l_Lean_Expr_mkCachedData(x_7, x_10, x_74, x_74, x_74, x_74); +lean_dec(x_10); +x_76 = lean_alloc_ctor(5, 2, 8); +lean_ctor_set(x_76, 0, x_1); +lean_ctor_set(x_76, 1, x_2); +lean_ctor_set_uint64(x_76, sizeof(void*)*2, x_75); +return x_76; +} +} +} +} +} +} +lean_object* l_Lean_mkLambda(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; +x_5 = 31; +x_6 = l_Lean_Expr_hash(x_3); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_usize_mix_hash(x_6, x_7); +x_9 = lean_usize_mix_hash(x_5, x_8); +x_10 = l_Lean_Expr_looseBVarRange(x_3); +x_11 = l_Lean_Expr_looseBVarRange(x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_11, x_12); +lean_dec(x_11); +x_14 = l_Nat_max(x_10, x_13); +lean_dec(x_13); +lean_dec(x_10); +x_15 = l_Lean_Expr_hasFVar(x_3); +x_16 = l_Lean_Expr_hasExprMVar(x_3); +x_17 = l_Lean_Expr_hasLevelMVar(x_3); +x_18 = l_Lean_Expr_hasLevelParam(x_3); +if (x_15 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Expr_hasFVar(x_4); +if (x_16 == 0) +{ +uint8_t x_20; +x_20 = l_Lean_Expr_hasExprMVar(x_4); +if (x_17 == 0) +{ +uint8_t x_21; +x_21 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_22; uint64_t x_23; lean_object* x_24; +x_22 = l_Lean_Expr_hasLevelParam(x_4); +x_23 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_21, x_22, x_2); +lean_dec(x_14); +x_24 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_24, 0, x_1); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 2, x_4); +lean_ctor_set_uint64(x_24, sizeof(void*)*3, x_23); +return x_24; +} +else +{ +uint8_t x_25; uint64_t x_26; lean_object* x_27; +x_25 = 1; +x_26 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_21, x_25, x_2); +lean_dec(x_14); +x_27 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_3); +lean_ctor_set(x_27, 2, x_4); +lean_ctor_set_uint64(x_27, sizeof(void*)*3, x_26); +return x_27; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_28; uint8_t x_29; uint64_t x_30; lean_object* x_31; +x_28 = l_Lean_Expr_hasLevelParam(x_4); +x_29 = 1; +x_30 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_29, x_28, x_2); +lean_dec(x_14); +x_31 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_3); +lean_ctor_set(x_31, 2, x_4); +lean_ctor_set_uint64(x_31, sizeof(void*)*3, x_30); +return x_31; +} +else +{ +uint8_t x_32; uint64_t x_33; lean_object* x_34; +x_32 = 1; +x_33 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_32, x_32, x_2); +lean_dec(x_14); +x_34 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_3); +lean_ctor_set(x_34, 2, x_4); +lean_ctor_set_uint64(x_34, sizeof(void*)*3, x_33); +return x_34; +} +} +} +else +{ +if (x_17 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_36; uint8_t x_37; uint64_t x_38; lean_object* x_39; +x_36 = l_Lean_Expr_hasLevelParam(x_4); +x_37 = 1; +x_38 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_37, x_35, x_36, x_2); +lean_dec(x_14); +x_39 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_3); +lean_ctor_set(x_39, 2, x_4); +lean_ctor_set_uint64(x_39, sizeof(void*)*3, x_38); +return x_39; +} +else +{ +uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_40 = 1; +x_41 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_40, x_35, x_40, x_2); +lean_dec(x_14); +x_42 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_3); +lean_ctor_set(x_42, 2, x_4); +lean_ctor_set_uint64(x_42, sizeof(void*)*3, x_41); +return x_42; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_43; uint8_t x_44; uint64_t x_45; lean_object* x_46; +x_43 = l_Lean_Expr_hasLevelParam(x_4); +x_44 = 1; +x_45 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_44, x_44, x_43, x_2); +lean_dec(x_14); +x_46 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_3); +lean_ctor_set(x_46, 2, x_4); +lean_ctor_set_uint64(x_46, sizeof(void*)*3, x_45); +return x_46; +} +else +{ +uint8_t x_47; uint64_t x_48; lean_object* x_49; +x_47 = 1; +x_48 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_47, x_47, x_47, x_2); +lean_dec(x_14); +x_49 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_3); +lean_ctor_set(x_49, 2, x_4); +lean_ctor_set_uint64(x_49, sizeof(void*)*3, x_48); +return x_49; +} +} +} +} +else +{ +if (x_16 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Expr_hasExprMVar(x_4); +if (x_17 == 0) +{ +uint8_t x_51; +x_51 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_52; uint8_t x_53; uint64_t x_54; lean_object* x_55; +x_52 = l_Lean_Expr_hasLevelParam(x_4); +x_53 = 1; +x_54 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_53, x_50, x_51, x_52, x_2); +lean_dec(x_14); +x_55 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_55, 0, x_1); +lean_ctor_set(x_55, 1, x_3); +lean_ctor_set(x_55, 2, x_4); +lean_ctor_set_uint64(x_55, sizeof(void*)*3, x_54); +return x_55; +} +else +{ +uint8_t x_56; uint64_t x_57; lean_object* x_58; +x_56 = 1; +x_57 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_56, x_50, x_51, x_56, x_2); +lean_dec(x_14); +x_58 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_3); +lean_ctor_set(x_58, 2, x_4); +lean_ctor_set_uint64(x_58, sizeof(void*)*3, x_57); +return x_58; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_59; uint8_t x_60; uint64_t x_61; lean_object* x_62; +x_59 = l_Lean_Expr_hasLevelParam(x_4); +x_60 = 1; +x_61 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_60, x_50, x_60, x_59, x_2); +lean_dec(x_14); +x_62 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_3); +lean_ctor_set(x_62, 2, x_4); +lean_ctor_set_uint64(x_62, sizeof(void*)*3, x_61); +return x_62; +} +else +{ +uint8_t x_63; uint64_t x_64; lean_object* x_65; +x_63 = 1; +x_64 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_63, x_50, x_63, x_63, x_2); +lean_dec(x_14); +x_65 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_65, 0, x_1); +lean_ctor_set(x_65, 1, x_3); +lean_ctor_set(x_65, 2, x_4); +lean_ctor_set_uint64(x_65, sizeof(void*)*3, x_64); +return x_65; +} +} +} +else +{ +if (x_17 == 0) +{ +uint8_t x_66; +x_66 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_67; uint8_t x_68; uint64_t x_69; lean_object* x_70; +x_67 = l_Lean_Expr_hasLevelParam(x_4); +x_68 = 1; +x_69 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_68, x_68, x_66, x_67, x_2); +lean_dec(x_14); +x_70 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_70, 0, x_1); +lean_ctor_set(x_70, 1, x_3); +lean_ctor_set(x_70, 2, x_4); +lean_ctor_set_uint64(x_70, sizeof(void*)*3, x_69); +return x_70; +} +else +{ +uint8_t x_71; uint64_t x_72; lean_object* x_73; +x_71 = 1; +x_72 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_71, x_71, x_66, x_71, x_2); +lean_dec(x_14); +x_73 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_73, 0, x_1); +lean_ctor_set(x_73, 1, x_3); +lean_ctor_set(x_73, 2, x_4); +lean_ctor_set_uint64(x_73, sizeof(void*)*3, x_72); +return x_73; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_74; uint8_t x_75; uint64_t x_76; lean_object* x_77; +x_74 = l_Lean_Expr_hasLevelParam(x_4); +x_75 = 1; +x_76 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_75, x_75, x_75, x_74, x_2); +lean_dec(x_14); +x_77 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_77, 0, x_1); +lean_ctor_set(x_77, 1, x_3); +lean_ctor_set(x_77, 2, x_4); +lean_ctor_set_uint64(x_77, sizeof(void*)*3, x_76); +return x_77; +} +else +{ +uint8_t x_78; uint64_t x_79; lean_object* x_80; +x_78 = 1; +x_79 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_78, x_78, x_78, x_78, x_2); +lean_dec(x_14); +x_80 = lean_alloc_ctor(6, 3, 8); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_3); +lean_ctor_set(x_80, 2, x_4); +lean_ctor_set_uint64(x_80, sizeof(void*)*3, x_79); +return x_80; +} +} +} +} +} +} +lean_object* l_Lean_mkLambda___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); +lean_dec(x_2); +x_6 = l_Lean_mkLambda(x_1, x_5, x_3, x_4); +return x_6; +} +} +lean_object* l_Lean_mkForall(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; +x_5 = 37; +x_6 = l_Lean_Expr_hash(x_3); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_usize_mix_hash(x_6, x_7); +x_9 = lean_usize_mix_hash(x_5, x_8); +x_10 = l_Lean_Expr_looseBVarRange(x_3); +x_11 = l_Lean_Expr_looseBVarRange(x_4); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_sub(x_11, x_12); +lean_dec(x_11); +x_14 = l_Nat_max(x_10, x_13); +lean_dec(x_13); +lean_dec(x_10); +x_15 = l_Lean_Expr_hasFVar(x_3); +x_16 = l_Lean_Expr_hasExprMVar(x_3); +x_17 = l_Lean_Expr_hasLevelMVar(x_3); +x_18 = l_Lean_Expr_hasLevelParam(x_3); +if (x_15 == 0) +{ +uint8_t x_19; +x_19 = l_Lean_Expr_hasFVar(x_4); +if (x_16 == 0) +{ +uint8_t x_20; +x_20 = l_Lean_Expr_hasExprMVar(x_4); +if (x_17 == 0) +{ +uint8_t x_21; +x_21 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_22; uint64_t x_23; lean_object* x_24; +x_22 = l_Lean_Expr_hasLevelParam(x_4); +x_23 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_21, x_22, x_2); +lean_dec(x_14); +x_24 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_24, 0, x_1); +lean_ctor_set(x_24, 1, x_3); +lean_ctor_set(x_24, 2, x_4); +lean_ctor_set_uint64(x_24, sizeof(void*)*3, x_23); +return x_24; +} +else +{ +uint8_t x_25; uint64_t x_26; lean_object* x_27; +x_25 = 1; +x_26 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_21, x_25, x_2); +lean_dec(x_14); +x_27 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_27, 0, x_1); +lean_ctor_set(x_27, 1, x_3); +lean_ctor_set(x_27, 2, x_4); +lean_ctor_set_uint64(x_27, sizeof(void*)*3, x_26); +return x_27; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_28; uint8_t x_29; uint64_t x_30; lean_object* x_31; +x_28 = l_Lean_Expr_hasLevelParam(x_4); +x_29 = 1; +x_30 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_29, x_28, x_2); +lean_dec(x_14); +x_31 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_3); +lean_ctor_set(x_31, 2, x_4); +lean_ctor_set_uint64(x_31, sizeof(void*)*3, x_30); +return x_31; +} +else +{ +uint8_t x_32; uint64_t x_33; lean_object* x_34; +x_32 = 1; +x_33 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_20, x_32, x_32, x_2); +lean_dec(x_14); +x_34 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_3); +lean_ctor_set(x_34, 2, x_4); +lean_ctor_set_uint64(x_34, sizeof(void*)*3, x_33); +return x_34; +} +} +} +else +{ +if (x_17 == 0) +{ +uint8_t x_35; +x_35 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_36; uint8_t x_37; uint64_t x_38; lean_object* x_39; +x_36 = l_Lean_Expr_hasLevelParam(x_4); +x_37 = 1; +x_38 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_37, x_35, x_36, x_2); +lean_dec(x_14); +x_39 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_3); +lean_ctor_set(x_39, 2, x_4); +lean_ctor_set_uint64(x_39, sizeof(void*)*3, x_38); +return x_39; +} +else +{ +uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_40 = 1; +x_41 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_40, x_35, x_40, x_2); +lean_dec(x_14); +x_42 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_3); +lean_ctor_set(x_42, 2, x_4); +lean_ctor_set_uint64(x_42, sizeof(void*)*3, x_41); +return x_42; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_43; uint8_t x_44; uint64_t x_45; lean_object* x_46; +x_43 = l_Lean_Expr_hasLevelParam(x_4); +x_44 = 1; +x_45 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_44, x_44, x_43, x_2); +lean_dec(x_14); +x_46 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_46, 0, x_1); +lean_ctor_set(x_46, 1, x_3); +lean_ctor_set(x_46, 2, x_4); +lean_ctor_set_uint64(x_46, sizeof(void*)*3, x_45); +return x_46; +} +else +{ +uint8_t x_47; uint64_t x_48; lean_object* x_49; +x_47 = 1; +x_48 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_19, x_47, x_47, x_47, x_2); +lean_dec(x_14); +x_49 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_3); +lean_ctor_set(x_49, 2, x_4); +lean_ctor_set_uint64(x_49, sizeof(void*)*3, x_48); +return x_49; +} +} +} +} +else +{ +if (x_16 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Expr_hasExprMVar(x_4); +if (x_17 == 0) +{ +uint8_t x_51; +x_51 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_52; uint8_t x_53; uint64_t x_54; lean_object* x_55; +x_52 = l_Lean_Expr_hasLevelParam(x_4); +x_53 = 1; +x_54 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_53, x_50, x_51, x_52, x_2); +lean_dec(x_14); +x_55 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_55, 0, x_1); +lean_ctor_set(x_55, 1, x_3); +lean_ctor_set(x_55, 2, x_4); +lean_ctor_set_uint64(x_55, sizeof(void*)*3, x_54); +return x_55; +} +else +{ +uint8_t x_56; uint64_t x_57; lean_object* x_58; +x_56 = 1; +x_57 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_56, x_50, x_51, x_56, x_2); +lean_dec(x_14); +x_58 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_58, 0, x_1); +lean_ctor_set(x_58, 1, x_3); +lean_ctor_set(x_58, 2, x_4); +lean_ctor_set_uint64(x_58, sizeof(void*)*3, x_57); +return x_58; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_59; uint8_t x_60; uint64_t x_61; lean_object* x_62; +x_59 = l_Lean_Expr_hasLevelParam(x_4); +x_60 = 1; +x_61 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_60, x_50, x_60, x_59, x_2); +lean_dec(x_14); +x_62 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_3); +lean_ctor_set(x_62, 2, x_4); +lean_ctor_set_uint64(x_62, sizeof(void*)*3, x_61); +return x_62; +} +else +{ +uint8_t x_63; uint64_t x_64; lean_object* x_65; +x_63 = 1; +x_64 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_63, x_50, x_63, x_63, x_2); +lean_dec(x_14); +x_65 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_65, 0, x_1); +lean_ctor_set(x_65, 1, x_3); +lean_ctor_set(x_65, 2, x_4); +lean_ctor_set_uint64(x_65, sizeof(void*)*3, x_64); +return x_65; +} +} +} +else +{ +if (x_17 == 0) +{ +uint8_t x_66; +x_66 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_18 == 0) +{ +uint8_t x_67; uint8_t x_68; uint64_t x_69; lean_object* x_70; +x_67 = l_Lean_Expr_hasLevelParam(x_4); +x_68 = 1; +x_69 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_68, x_68, x_66, x_67, x_2); +lean_dec(x_14); +x_70 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_70, 0, x_1); +lean_ctor_set(x_70, 1, x_3); +lean_ctor_set(x_70, 2, x_4); +lean_ctor_set_uint64(x_70, sizeof(void*)*3, x_69); +return x_70; +} +else +{ +uint8_t x_71; uint64_t x_72; lean_object* x_73; +x_71 = 1; +x_72 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_71, x_71, x_66, x_71, x_2); +lean_dec(x_14); +x_73 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_73, 0, x_1); +lean_ctor_set(x_73, 1, x_3); +lean_ctor_set(x_73, 2, x_4); +lean_ctor_set_uint64(x_73, sizeof(void*)*3, x_72); +return x_73; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_74; uint8_t x_75; uint64_t x_76; lean_object* x_77; +x_74 = l_Lean_Expr_hasLevelParam(x_4); +x_75 = 1; +x_76 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_75, x_75, x_75, x_74, x_2); +lean_dec(x_14); +x_77 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_77, 0, x_1); +lean_ctor_set(x_77, 1, x_3); +lean_ctor_set(x_77, 2, x_4); +lean_ctor_set_uint64(x_77, sizeof(void*)*3, x_76); +return x_77; +} +else +{ +uint8_t x_78; uint64_t x_79; lean_object* x_80; +x_78 = 1; +x_79 = l_Lean_Expr_mkCachedDataForBinder(x_9, x_14, x_78, x_78, x_78, x_78, x_2); +lean_dec(x_14); +x_80 = lean_alloc_ctor(7, 3, 8); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_3); +lean_ctor_set(x_80, 2, x_4); +lean_ctor_set_uint64(x_80, sizeof(void*)*3, x_79); +return x_80; +} +} +} +} +} +} +lean_object* l_Lean_mkForall___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); +lean_dec(x_2); +x_6 = l_Lean_mkForall(x_1, x_5, x_3, x_4); +return x_6; +} +} +lean_object* l_Lean_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { +_start: +{ +size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; +x_6 = 41; +x_7 = l_Lean_Expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_3); +x_9 = l_Lean_Expr_hash(x_4); +x_10 = lean_usize_mix_hash(x_8, x_9); +x_11 = lean_usize_mix_hash(x_7, x_10); +x_12 = lean_usize_mix_hash(x_6, x_11); +x_13 = l_Lean_Expr_looseBVarRange(x_2); +x_14 = l_Lean_Expr_looseBVarRange(x_3); +x_15 = l_Nat_max(x_13, x_14); +lean_dec(x_14); +lean_dec(x_13); +x_16 = l_Lean_Expr_looseBVarRange(x_4); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_16, x_17); +lean_dec(x_16); +x_19 = l_Nat_max(x_15, x_18); +lean_dec(x_18); +lean_dec(x_15); +x_20 = l_Lean_Expr_hasFVar(x_2); +x_21 = l_Lean_Expr_hasExprMVar(x_2); +x_22 = l_Lean_Expr_hasLevelMVar(x_2); +x_23 = l_Lean_Expr_hasLevelParam(x_2); +if (x_20 == 0) +{ +uint8_t x_88; +x_88 = l_Lean_Expr_hasFVar(x_3); +if (x_88 == 0) +{ +uint8_t x_89; +x_89 = l_Lean_Expr_hasFVar(x_4); +x_24 = x_89; +goto block_87; +} +else +{ +uint8_t x_90; +x_90 = 1; +x_24 = x_90; +goto block_87; +} +} +else +{ +uint8_t x_91; +x_91 = 1; +x_24 = x_91; +goto block_87; +} +block_87: +{ +uint8_t x_25; +if (x_21 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Expr_hasExprMVar(x_3); +if (x_50 == 0) +{ +uint8_t x_51; +x_51 = l_Lean_Expr_hasExprMVar(x_4); +if (x_22 == 0) +{ +x_25 = x_51; +goto block_49; +} +else +{ +if (x_23 == 0) +{ +uint8_t x_52; +x_52 = l_Lean_Expr_hasLevelParam(x_3); +if (x_52 == 0) +{ +uint8_t x_53; uint8_t x_54; uint64_t x_55; lean_object* x_56; +x_53 = l_Lean_Expr_hasLevelParam(x_4); +x_54 = 1; +x_55 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_51, x_54, x_53, x_5); +lean_dec(x_19); +x_56 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_56, 0, x_1); +lean_ctor_set(x_56, 1, x_2); +lean_ctor_set(x_56, 2, x_3); +lean_ctor_set(x_56, 3, x_4); +lean_ctor_set_uint64(x_56, sizeof(void*)*4, x_55); +return x_56; +} +else +{ +uint8_t x_57; uint64_t x_58; lean_object* x_59; +x_57 = 1; +x_58 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_51, x_57, x_57, x_5); +lean_dec(x_19); +x_59 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_59, 0, x_1); +lean_ctor_set(x_59, 1, x_2); +lean_ctor_set(x_59, 2, x_3); +lean_ctor_set(x_59, 3, x_4); +lean_ctor_set_uint64(x_59, sizeof(void*)*4, x_58); +return x_59; +} +} +else +{ +uint8_t x_60; uint64_t x_61; lean_object* x_62; +x_60 = 1; +x_61 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_51, x_60, x_60, x_5); +lean_dec(x_19); +x_62 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_2); +lean_ctor_set(x_62, 2, x_3); +lean_ctor_set(x_62, 3, x_4); +lean_ctor_set_uint64(x_62, sizeof(void*)*4, x_61); +return x_62; +} +} +} +else +{ +if (x_22 == 0) +{ +uint8_t x_63; +x_63 = 1; +x_25 = x_63; +goto block_49; +} +else +{ +if (x_23 == 0) +{ +uint8_t x_64; +x_64 = l_Lean_Expr_hasLevelParam(x_3); +if (x_64 == 0) +{ +uint8_t x_65; uint8_t x_66; uint64_t x_67; lean_object* x_68; +x_65 = l_Lean_Expr_hasLevelParam(x_4); +x_66 = 1; +x_67 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_66, x_66, x_65, x_5); +lean_dec(x_19); +x_68 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_68, 0, x_1); +lean_ctor_set(x_68, 1, x_2); +lean_ctor_set(x_68, 2, x_3); +lean_ctor_set(x_68, 3, x_4); +lean_ctor_set_uint64(x_68, sizeof(void*)*4, x_67); +return x_68; +} +else +{ +uint8_t x_69; uint64_t x_70; lean_object* x_71; +x_69 = 1; +x_70 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_69, x_69, x_69, x_5); +lean_dec(x_19); +x_71 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_71, 0, x_1); +lean_ctor_set(x_71, 1, x_2); +lean_ctor_set(x_71, 2, x_3); +lean_ctor_set(x_71, 3, x_4); +lean_ctor_set_uint64(x_71, sizeof(void*)*4, x_70); +return x_71; +} +} +else +{ +uint8_t x_72; uint64_t x_73; lean_object* x_74; +x_72 = 1; +x_73 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_72, x_72, x_72, x_5); +lean_dec(x_19); +x_74 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_74, 0, x_1); +lean_ctor_set(x_74, 1, x_2); +lean_ctor_set(x_74, 2, x_3); +lean_ctor_set(x_74, 3, x_4); +lean_ctor_set_uint64(x_74, sizeof(void*)*4, x_73); +return x_74; +} +} +} +} +else +{ +if (x_22 == 0) +{ +uint8_t x_75; +x_75 = 1; +x_25 = x_75; +goto block_49; +} +else +{ +if (x_23 == 0) +{ +uint8_t x_76; +x_76 = l_Lean_Expr_hasLevelParam(x_3); +if (x_76 == 0) +{ +uint8_t x_77; uint8_t x_78; uint64_t x_79; lean_object* x_80; +x_77 = l_Lean_Expr_hasLevelParam(x_4); +x_78 = 1; +x_79 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_78, x_78, x_77, x_5); +lean_dec(x_19); +x_80 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_2); +lean_ctor_set(x_80, 2, x_3); +lean_ctor_set(x_80, 3, x_4); +lean_ctor_set_uint64(x_80, sizeof(void*)*4, x_79); +return x_80; +} +else +{ +uint8_t x_81; uint64_t x_82; lean_object* x_83; +x_81 = 1; +x_82 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_81, x_81, x_81, x_5); +lean_dec(x_19); +x_83 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_83, 0, x_1); +lean_ctor_set(x_83, 1, x_2); +lean_ctor_set(x_83, 2, x_3); +lean_ctor_set(x_83, 3, x_4); +lean_ctor_set_uint64(x_83, sizeof(void*)*4, x_82); +return x_83; +} +} +else +{ +uint8_t x_84; uint64_t x_85; lean_object* x_86; +x_84 = 1; +x_85 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_84, x_84, x_84, x_5); +lean_dec(x_19); +x_86 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_86, 0, x_1); +lean_ctor_set(x_86, 1, x_2); +lean_ctor_set(x_86, 2, x_3); +lean_ctor_set(x_86, 3, x_4); +lean_ctor_set_uint64(x_86, sizeof(void*)*4, x_85); +return x_86; +} +} +} +block_49: +{ +uint8_t x_26; +x_26 = l_Lean_Expr_hasLevelMVar(x_3); +if (x_26 == 0) +{ +uint8_t x_27; +x_27 = l_Lean_Expr_hasLevelMVar(x_4); +if (x_23 == 0) +{ +uint8_t x_28; +x_28 = l_Lean_Expr_hasLevelParam(x_3); +if (x_28 == 0) +{ +uint8_t x_29; uint64_t x_30; lean_object* x_31; +x_29 = l_Lean_Expr_hasLevelParam(x_4); +x_30 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_25, x_27, x_29, x_5); +lean_dec(x_19); +x_31 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_2); +lean_ctor_set(x_31, 2, x_3); +lean_ctor_set(x_31, 3, x_4); +lean_ctor_set_uint64(x_31, sizeof(void*)*4, x_30); +return x_31; +} +else +{ +uint8_t x_32; uint64_t x_33; lean_object* x_34; +x_32 = 1; +x_33 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_25, x_27, x_32, x_5); +lean_dec(x_19); +x_34 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_2); +lean_ctor_set(x_34, 2, x_3); +lean_ctor_set(x_34, 3, x_4); +lean_ctor_set_uint64(x_34, sizeof(void*)*4, x_33); +return x_34; +} +} +else +{ +uint8_t x_35; uint64_t x_36; lean_object* x_37; +x_35 = 1; +x_36 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_25, x_27, x_35, x_5); +lean_dec(x_19); +x_37 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_37, 0, x_1); +lean_ctor_set(x_37, 1, x_2); +lean_ctor_set(x_37, 2, x_3); +lean_ctor_set(x_37, 3, x_4); +lean_ctor_set_uint64(x_37, sizeof(void*)*4, x_36); +return x_37; +} +} +else +{ +if (x_23 == 0) +{ +uint8_t x_38; +x_38 = l_Lean_Expr_hasLevelParam(x_3); +if (x_38 == 0) +{ +uint8_t x_39; uint8_t x_40; uint64_t x_41; lean_object* x_42; +x_39 = l_Lean_Expr_hasLevelParam(x_4); +x_40 = 1; +x_41 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_25, x_40, x_39, x_5); +lean_dec(x_19); +x_42 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_42, 0, x_1); +lean_ctor_set(x_42, 1, x_2); +lean_ctor_set(x_42, 2, x_3); +lean_ctor_set(x_42, 3, x_4); +lean_ctor_set_uint64(x_42, sizeof(void*)*4, x_41); +return x_42; +} +else +{ +uint8_t x_43; uint64_t x_44; lean_object* x_45; +x_43 = 1; +x_44 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_25, x_43, x_43, x_5); +lean_dec(x_19); +x_45 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_2); +lean_ctor_set(x_45, 2, x_3); +lean_ctor_set(x_45, 3, x_4); +lean_ctor_set_uint64(x_45, sizeof(void*)*4, x_44); +return x_45; +} +} +else +{ +uint8_t x_46; uint64_t x_47; lean_object* x_48; +x_46 = 1; +x_47 = l_Lean_Expr_mkCachedDataForLet(x_12, x_19, x_24, x_25, x_46, x_46, x_5); +lean_dec(x_19); +x_48 = lean_alloc_ctor(8, 4, 8); +lean_ctor_set(x_48, 0, x_1); +lean_ctor_set(x_48, 1, x_2); +lean_ctor_set(x_48, 2, x_3); +lean_ctor_set(x_48, 3, x_4); +lean_ctor_set_uint64(x_48, sizeof(void*)*4, x_47); +return x_48; +} +} +} +} +} +} +lean_object* l_Lean_mkLet___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_5); +lean_dec(x_5); +x_7 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_6); +return x_7; +} +} +lean_object* l_Lean_mkLocal(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) { +_start: +{ +size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint64_t x_13; lean_object* x_14; +x_5 = 43; +x_6 = l_Lean_Expr_hash(x_3); +x_7 = lean_usize_mix_hash(x_5, x_6); +x_8 = l_Lean_Expr_looseBVarRange(x_3); +x_9 = l_Lean_Expr_hasExprMVar(x_3); +x_10 = l_Lean_Expr_hasLevelMVar(x_3); +x_11 = l_Lean_Expr_hasLevelParam(x_3); +x_12 = 1; +x_13 = l_Lean_Expr_mkCachedDataForBinder(x_7, x_8, x_12, x_9, x_10, x_11, x_4); +lean_dec(x_8); +x_14 = lean_alloc_ctor(12, 3, 8); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_2); +lean_ctor_set(x_14, 2, x_3); +lean_ctor_set_uint64(x_14, sizeof(void*)*3, x_13); +return x_14; +} +} +lean_object* l_Lean_mkLocal___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_4); +lean_dec(x_4); +x_6 = l_Lean_mkLocal(x_1, x_2, x_3, x_5); +return x_6; +} +} +lean_object* lean_expr_mk_bvar(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_mkBVar(x_1); +return x_2; +} +} +lean_object* lean_expr_mk_fvar(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_mkFVar(x_1); +return x_2; +} +} +lean_object* lean_expr_mk_mvar(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_mkMVar(x_1); +return x_2; +} +} +lean_object* lean_expr_mk_sort(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_mkSort(x_1); +return x_2; +} +} +lean_object* lean_expr_mk_const(lean_object* x_1, lean_object* x_2) { +_start: +{ lean_object* x_3; -x_3 = lean_expr_mk_app(x_1, x_2); +x_3 = l_Lean_mkConst(x_1, x_2); return x_3; } } +lean_object* lean_expr_mk_app(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkApp(x_1, x_2); +return x_3; +} +} +lean_object* lean_expr_mk_lambda(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_mkLambda(x_1, x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_Lean_mkLambdaEx___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_4); +lean_dec(x_4); +x_6 = lean_expr_mk_lambda(x_1, x_2, x_3, x_5); +return x_6; +} +} +lean_object* lean_expr_mk_forall(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_mkForall(x_1, x_4, x_2, x_3); +return x_5; +} +} +lean_object* l_Lean_mkForallEx___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_4); +lean_dec(x_4); +x_6 = lean_expr_mk_forall(x_1, x_2, x_3, x_5); +return x_6; +} +} +lean_object* lean_expr_mk_let(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 = 0; +x_6 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* lean_expr_mk_lit(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_mkLit(x_1); +return x_2; +} +} +lean_object* lean_expr_mk_mdata(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_mkMData(x_1, x_2); +return x_3; +} +} +lean_object* lean_expr_mk_proj(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_mkProj(x_1, x_2, x_3); +return x_4; +} +} +lean_object* lean_expr_mk_local(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_mkLocal(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_mkLocalEx___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_4); +lean_dec(x_4); +x_6 = lean_expr_mk_local(x_1, x_2, x_3, x_5); +return x_6; +} +} lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -1533,7 +4307,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_2, x_3); -x_8 = lean_expr_mk_app(x_4, x_7); +x_8 = l_Lean_mkApp(x_4, x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); lean_dec(x_3); @@ -1571,51 +4345,7 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Lean_mkLambda(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = lean_expr_mk_lambda(x_1, x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_mkLambda___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); -lean_dec(x_2); -x_6 = l_Lean_mkLambda(x_1, x_5, x_3, x_4); -return x_6; -} -} -lean_object* l_Lean_mkForall(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = lean_expr_mk_forall(x_1, x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_mkForall___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); -lean_dec(x_2); -x_6 = l_Lean_mkForall(x_1, x_5, x_3, x_4); -return x_6; -} -} -lean_object* l_Lean_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = lean_expr_mk_let(x_1, x_2, x_3, x_4); -return x_5; -} -} -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -1630,39 +4360,39 @@ else lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_add(x_3, x_6); -x_8 = l_Lean_Expr_inhabited; +x_8 = l_Lean_Expr_Inhabited; x_9 = lean_array_get(x_8, x_2, x_3); lean_dec(x_3); -x_10 = lean_expr_mk_app(x_4, x_9); +x_10 = l_Lean_mkApp(x_4, x_9); x_3 = x_7; x_4 = x_10; goto _start; } } } -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_3__mkAppRangeAux(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_2__mkAppRangeAux(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; @@ -1672,7 +4402,7 @@ lean_object* l_Lean_mkAppRange(lean_object* x_1, lean_object* x_2, lean_object* _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_3, x_4, x_2, x_1); +x_5 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_3, x_4, x_2, x_1); return x_5; } } @@ -1699,7 +4429,7 @@ x_8 = lean_unsigned_to_nat(1u); x_9 = lean_nat_sub(x_3, x_8); lean_dec(x_3); x_10 = lean_array_fget(x_2, x_9); -x_11 = lean_expr_mk_app(x_5, x_10); +x_11 = l_Lean_mkApp(x_5, x_10); x_3 = x_9; x_4 = lean_box(0); x_5 = x_11; @@ -1740,32 +4470,6 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Lean_Expr_hash___boxed(lean_object* x_1) { -_start: -{ -size_t x_2; lean_object* x_3; -x_2 = lean_expr_hash(x_1); -lean_dec(x_1); -x_3 = lean_box_usize(x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Expr_Hashable___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Expr_hash___boxed), 1, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Expr_Hashable() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Expr_Hashable___closed__1; -return x_1; -} -} lean_object* l_Lean_Expr_dbgToString___boxed(lean_object* x_1) { _start: { @@ -1835,65 +4539,6 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Lean_Expr_hasExprMVar___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = lean_expr_has_expr_mvar(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = lean_expr_has_level_mvar(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -uint8_t l_Lean_Expr_hasMVar(lean_object* x_1) { -_start: -{ -uint8_t x_2; -x_2 = lean_expr_has_expr_mvar(x_1); -if (x_2 == 0) -{ -uint8_t x_3; -x_3 = lean_expr_has_level_mvar(x_1); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 1; -return x_4; -} -} -} -lean_object* l_Lean_Expr_hasMVar___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Expr_hasMVar(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -lean_object* l_Lean_Expr_hasFVar___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = lean_expr_has_fvar(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} uint8_t l_Lean_Expr_isSort(lean_object* x_1) { _start: { @@ -2362,7 +5007,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 5) @@ -2390,31 +5035,40 @@ return x_2; } } } -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_2, x_3); return x_4; } } +lean_object* _init_l_Lean_Expr_getAppArgs___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = l_Lean_mkSort(x_1); +return x_2; +} +} lean_object* l_Lean_Expr_getAppArgs(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2); -x_4 = l_Lean_Expr_inhabited___closed__1; +x_4 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_3); x_5 = lean_mk_array(x_3, x_4); x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_sub(x_3, x_6); lean_dec(x_3); -x_8 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_5, x_7); +x_8 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_5, x_7); return x_8; } } -lean_object* l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 5) @@ -2437,11 +5091,11 @@ return x_2; } } } -lean_object* l___private_Init_Lean_Expr_5__getAppRevArgsAux(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_1, x_2); +x_3 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_1, x_2); return x_3; } } @@ -2453,7 +5107,7 @@ x_2 = lean_unsigned_to_nat(0u); x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2); x_4 = lean_mk_empty_array_with_capacity(x_3); lean_dec(x_3); -x_5 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_1, x_4); +x_5 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_1, x_4); return x_5; } } @@ -2516,7 +5170,7 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_3); -x_5 = l_Lean_Expr_inhabited___closed__1; +x_5 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_4); x_6 = lean_mk_array(x_4, x_5); x_7 = lean_unsigned_to_nat(1u); @@ -2534,7 +5188,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withApp___rarg), 2, 0); return x_2; } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 5) @@ -2558,27 +5212,27 @@ return x_8; } } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main(lean_object* x_1) { +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_6__withAppRevAux___main___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg), 3, 0); return x_2; } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Expr_6__withAppRevAux___main___rarg(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux(lean_object* x_1) { +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_6__withAppRevAux___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_5__withAppRevAux___rarg), 3, 0); return x_2; } } @@ -2590,7 +5244,7 @@ x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_3); x_5 = lean_mk_empty_array_with_capacity(x_4); lean_dec(x_4); -x_6 = l___private_Init_Lean_Expr_6__withAppRevAux___main___rarg(x_2, x_1, x_5); +x_6 = l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(x_2, x_1, x_5); return x_6; } } @@ -2669,9 +5323,9 @@ lean_object* _init_l_Lean_Expr_getRevArg_x21___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(368u); -x_3 = lean_unsigned_to_nat(18u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(454u); +x_3 = lean_unsigned_to_nat(20u); x_4 = l_List_get_x21___main___rarg___closed__2; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -2708,7 +5362,7 @@ else { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_dec(x_2); -x_10 = l_Lean_Expr_inhabited; +x_10 = l_Lean_Expr_Inhabited; x_11 = l_Lean_Expr_getRevArg_x21___main___closed__1; x_12 = lean_panic_fn(x_11); return x_12; @@ -2923,9 +5577,9 @@ lean_object* _init_l_Lean_Expr_appFn_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(388u); -x_3 = lean_unsigned_to_nat(13u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(474u); +x_3 = lean_unsigned_to_nat(15u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -2944,7 +5598,7 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Expr_inhabited; +x_3 = l_Lean_Expr_Inhabited; x_4 = l_Lean_Expr_appFn_x21___closed__2; x_5 = lean_panic_fn(x_4); return x_5; @@ -2964,9 +5618,9 @@ lean_object* _init_l_Lean_Expr_appArg_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(392u); -x_3 = lean_unsigned_to_nat(13u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(478u); +x_3 = lean_unsigned_to_nat(15u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -2985,7 +5639,7 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_Expr_inhabited; +x_3 = l_Lean_Expr_Inhabited; x_4 = l_Lean_Expr_appArg_x21___closed__1; x_5 = lean_panic_fn(x_4); return x_5; @@ -3013,9 +5667,9 @@ lean_object* _init_l_Lean_Expr_constName_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(396u); -x_3 = lean_unsigned_to_nat(15u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(482u); +x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -3054,9 +5708,9 @@ lean_object* _init_l_Lean_Expr_constLevels_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(400u); -x_3 = lean_unsigned_to_nat(16u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(486u); +x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -3103,9 +5757,9 @@ lean_object* _init_l_Lean_Expr_bvarIdx_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(404u); -x_3 = lean_unsigned_to_nat(14u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(490u); +x_3 = lean_unsigned_to_nat(16u); x_4 = l_Lean_Expr_bvarIdx_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -3152,9 +5806,9 @@ lean_object* _init_l_Lean_Expr_fvarId_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(408u); -x_3 = lean_unsigned_to_nat(12u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(494u); +x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_fvarId_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -3201,9 +5855,9 @@ lean_object* _init_l_Lean_Expr_mvarId_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(412u); -x_3 = lean_unsigned_to_nat(12u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(498u); +x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_mvarId_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -3250,8 +5904,8 @@ lean_object* _init_l_Lean_Expr_bindingName_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(417u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(503u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -3300,8 +5954,8 @@ lean_object* _init_l_Lean_Expr_bindingDomain_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(422u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(508u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -3315,21 +5969,21 @@ switch (lean_obj_tag(x_1)) { case 6: { lean_object* x_2; -x_2 = lean_ctor_get(x_1, 1); +x_2 = lean_ctor_get(x_1, 2); lean_inc(x_2); return x_2; } case 7: { lean_object* x_3; -x_3 = lean_ctor_get(x_1, 1); +x_3 = lean_ctor_get(x_1, 2); lean_inc(x_3); return x_3; } default: { lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_Expr_bindingDomain_x21___closed__1; x_6 = lean_panic_fn(x_5); return x_6; @@ -3350,8 +6004,8 @@ lean_object* _init_l_Lean_Expr_bindingBody_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(427u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(513u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -3379,7 +6033,7 @@ return x_3; default: { lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_Expr_bindingBody_x21___closed__1; x_6 = lean_panic_fn(x_5); return x_6; @@ -3408,9 +6062,9 @@ lean_object* _init_l_Lean_Expr_letName_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(431u); -x_3 = lean_unsigned_to_nat(18u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(517u); +x_3 = lean_unsigned_to_nat(20u); x_4 = l_Lean_Expr_letName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -3445,20 +6099,11 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Expr_getLooseBVarRange___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_expr_get_loose_bvar_range(x_1); -lean_dec(x_1); -return x_2; -} -} uint8_t l_Lean_Expr_hasLooseBVars(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = lean_expr_get_loose_bvar_range(x_1); +x_2 = l_Lean_Expr_looseBVarRange(x_1); x_3 = lean_unsigned_to_nat(0u); x_4 = lean_nat_dec_lt(x_3, x_2); lean_dec(x_2); @@ -3596,7 +6241,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_box(0); -x_4 = lean_expr_mk_const(x_1, x_3); +x_4 = l_Lean_mkConst(x_1, x_3); x_5 = lean_unsigned_to_nat(0u); x_6 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2, x_2, x_5, x_4); return x_6; @@ -3615,8 +6260,8 @@ lean_object* l_Lean_mkAppB(lean_object* x_1, lean_object* x_2, lean_object* x_3) _start: { lean_object* x_4; lean_object* x_5; -x_4 = lean_expr_mk_app(x_1, x_2); -x_5 = lean_expr_mk_app(x_4, x_3); +x_4 = l_Lean_mkApp(x_1, x_2); +x_5 = l_Lean_mkApp(x_4, x_3); return x_5; } } @@ -3625,7 +6270,7 @@ _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_box(0); -x_5 = lean_expr_mk_const(x_1, x_4); +x_5 = l_Lean_mkConst(x_1, x_4); x_6 = l_Lean_mkAppB(x_5, x_2, x_3); return x_6; } @@ -3672,7 +6317,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_mkDecIsTrue___closed__4; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -3709,7 +6354,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_mkDecIsFalse___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -3761,7 +6406,7 @@ size_t l_Lean_ExprStructEq_hash(lean_object* x_1) { _start: { size_t x_2; -x_2 = lean_expr_hash(x_1); +x_2 = l_Lean_Expr_hash(x_1); return x_2; } } @@ -3779,7 +6424,7 @@ lean_object* _init_l_Lean_ExprStructEq_Inhabited() { _start: { lean_object* x_1; -x_1 = l_Lean_Expr_inhabited___closed__1; +x_1 = l_Lean_Expr_Inhabited___closed__1; return x_1; } } @@ -3849,7 +6494,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -3860,9 +6505,9 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_sub(x_4, x_6); lean_dec(x_4); -x_8 = l_Lean_Expr_inhabited; +x_8 = l_Lean_Expr_Inhabited; x_9 = lean_array_get(x_8, x_1, x_7); -x_10 = lean_expr_mk_app(x_3, x_9); +x_10 = l_Lean_mkApp(x_3, x_9); x_3 = x_10; x_4 = x_7; goto _start; @@ -3874,29 +6519,29 @@ return x_3; } } } -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Init_Lean_Expr_7__mkAppRevRangeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_7__mkAppRevRangeAux(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; @@ -3906,7 +6551,7 @@ lean_object* l_Lean_Expr_mkAppRevRange(lean_object* x_1, lean_object* x_2, lean_ _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(x_4, x_2, x_1, x_3); +x_5 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_4, x_2, x_1, x_3); return x_5; } } @@ -3920,7 +6565,7 @@ lean_dec(x_2); return x_5; } } -lean_object* l___private_Init_Lean_Expr_8__betaRevAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -3940,7 +6585,7 @@ lean_dec(x_13); lean_inc(x_1); x_16 = lean_expr_instantiate_range(x_11, x_15, x_2, x_1); x_17 = lean_unsigned_to_nat(0u); -x_18 = l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(x_1, x_17, x_16, x_15); +x_18 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_17, x_16, x_15); lean_dec(x_1); return x_18; } @@ -3967,35 +6612,35 @@ lean_dec(x_4); lean_inc(x_1); x_7 = lean_expr_instantiate_range(x_3, x_6, x_2, x_1); x_8 = lean_unsigned_to_nat(0u); -x_9 = l___private_Init_Lean_Expr_7__mkAppRevRangeAux___main(x_1, x_8, x_7, x_6); +x_9 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_8, x_7, x_6); lean_dec(x_1); return x_9; } } } -lean_object* l___private_Init_Lean_Expr_8__betaRevAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_8__betaRevAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_7__betaRevAux___main(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l___private_Init_Lean_Expr_8__betaRevAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_7__betaRevAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_8__betaRevAux___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_7__betaRevAux___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Init_Lean_Expr_8__betaRevAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_7__betaRevAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_8__betaRevAux(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_7__betaRevAux(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; @@ -4011,7 +6656,7 @@ x_5 = lean_nat_dec_eq(x_3, x_4); if (x_5 == 0) { lean_object* x_6; -x_6 = l___private_Init_Lean_Expr_8__betaRevAux___main(x_2, x_3, x_1, x_4); +x_6 = l___private_Init_Lean_Expr_7__betaRevAux___main(x_2, x_3, x_1, x_4); lean_dec(x_3); return x_6; } @@ -4033,7 +6678,7 @@ lean_dec(x_1); return x_3; } } -lean_object* l___private_Init_Lean_Expr_9__etaExpandedBody___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -4161,15 +6806,15 @@ return x_7; } } } -lean_object* l___private_Init_Lean_Expr_9__etaExpandedBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Expr_9__etaExpandedBody___main(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Expr_8__etaExpandedBody___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_Lean_Expr_10__etaExpandedAux___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux___main(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 6) @@ -4189,16 +6834,16 @@ else { lean_object* x_7; lean_object* x_8; x_7 = lean_unsigned_to_nat(0u); -x_8 = l___private_Init_Lean_Expr_9__etaExpandedBody___main(x_1, x_2, x_7); +x_8 = l___private_Init_Lean_Expr_8__etaExpandedBody___main(x_1, x_2, x_7); return x_8; } } } -lean_object* l___private_Init_Lean_Expr_10__etaExpandedAux(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_Lean_Expr_10__etaExpandedAux___main(x_1, x_2); +x_3 = l___private_Init_Lean_Expr_9__etaExpandedAux___main(x_1, x_2); return x_3; } } @@ -4207,7 +6852,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Expr_10__etaExpandedAux___main(x_1, x_2); +x_3 = l___private_Init_Lean_Expr_9__etaExpandedAux___main(x_1, x_2); return x_3; } } @@ -4223,9 +6868,9 @@ lean_object* _init_l_Lean_Expr_updateApp_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(600u); -x_3 = lean_unsigned_to_nat(16u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(683u); +x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4246,7 +6891,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_5 = l_Lean_Expr_inhabited; +x_5 = l_Lean_Expr_Inhabited; x_6 = l_Lean_Expr_updateApp_x21___closed__1; x_7 = lean_panic_fn(x_6); return x_7; @@ -4265,9 +6910,9 @@ lean_object* _init_l_Lean_Expr_updateConst_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(609u); -x_3 = lean_unsigned_to_nat(16u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(692u); +x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4287,7 +6932,7 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_Expr_updateConst_x21___closed__1; x_6 = lean_panic_fn(x_5); return x_6; @@ -4314,9 +6959,9 @@ lean_object* _init_l_Lean_Expr_updateSort_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(618u); -x_3 = lean_unsigned_to_nat(12u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(701u); +x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_updateSort_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4336,7 +6981,7 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_Expr_updateSort_x21___closed__2; x_6 = lean_panic_fn(x_5); return x_6; @@ -4371,9 +7016,9 @@ lean_object* _init_l_Lean_Expr_updateMData_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(635u); -x_3 = lean_unsigned_to_nat(15u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(718u); +x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateMData_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4393,7 +7038,7 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_Expr_updateMData_x21___closed__2; x_6 = lean_panic_fn(x_5); return x_6; @@ -4412,9 +7057,9 @@ lean_object* _init_l_Lean_Expr_updateProj_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(640u); -x_3 = lean_unsigned_to_nat(16u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(723u); +x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_updateProj_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4434,7 +7079,7 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_Expr_updateProj_x21___closed__2; x_6 = lean_panic_fn(x_5); return x_6; @@ -4463,9 +7108,9 @@ lean_object* _init_l_Lean_Expr_updateForall_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(649u); -x_3 = lean_unsigned_to_nat(22u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(732u); +x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4486,7 +7131,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_6 = l_Lean_Expr_inhabited; +x_6 = l_Lean_Expr_Inhabited; x_7 = l_Lean_Expr_updateForall_x21___closed__2; x_8 = lean_panic_fn(x_7); return x_8; @@ -4507,9 +7152,9 @@ lean_object* _init_l_Lean_Expr_updateForallE_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(654u); -x_3 = lean_unsigned_to_nat(22u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(737u); +x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4520,21 +7165,22 @@ _start: { if (lean_obj_tag(x_1) == 7) { -uint8_t x_4; lean_object* x_5; -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); -x_5 = lean_expr_update_forall(x_1, x_4, x_2, x_3); -return x_5; +uint64_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_5 = (uint8_t)((x_4 << 24) >> 61); +x_6 = lean_expr_update_forall(x_1, x_5, x_2, x_3); +return x_6; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Expr_inhabited; -x_7 = l_Lean_Expr_updateForallE_x21___closed__1; -x_8 = lean_panic_fn(x_7); -return x_8; +x_7 = l_Lean_Expr_Inhabited; +x_8 = l_Lean_Expr_updateForallE_x21___closed__1; +x_9 = lean_panic_fn(x_8); +return x_9; } } } @@ -4560,9 +7206,9 @@ lean_object* _init_l_Lean_Expr_updateLambda_x21___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(663u); -x_3 = lean_unsigned_to_nat(18u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(746u); +x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4583,7 +7229,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_6 = l_Lean_Expr_inhabited; +x_6 = l_Lean_Expr_Inhabited; x_7 = l_Lean_Expr_updateLambda_x21___closed__2; x_8 = lean_panic_fn(x_7); return x_8; @@ -4604,9 +7250,9 @@ lean_object* _init_l_Lean_Expr_updateLambdaE_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(668u); -x_3 = lean_unsigned_to_nat(18u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(751u); +x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4617,21 +7263,22 @@ _start: { if (lean_obj_tag(x_1) == 6) { -uint8_t x_4; lean_object* x_5; -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); -x_5 = lean_expr_update_lambda(x_1, x_4, x_2, x_3); -return x_5; +uint64_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_5 = (uint8_t)((x_4 << 24) >> 61); +x_6 = lean_expr_update_lambda(x_1, x_5, x_2, x_3); +return x_6; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Expr_inhabited; -x_7 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_8 = lean_panic_fn(x_7); -return x_8; +x_7 = l_Lean_Expr_Inhabited; +x_8 = l_Lean_Expr_updateLambdaE_x21___closed__1; +x_9 = lean_panic_fn(x_8); +return x_9; } } } @@ -4647,9 +7294,9 @@ lean_object* _init_l_Lean_Expr_updateLet_x21___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2; -x_2 = lean_unsigned_to_nat(677u); -x_3 = lean_unsigned_to_nat(18u); +x_1 = l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2; +x_2 = lean_unsigned_to_nat(760u); +x_3 = lean_unsigned_to_nat(20u); x_4 = l_Lean_Expr_letName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); return x_5; @@ -4671,7 +7318,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Expr_inhabited; +x_6 = l_Lean_Expr_Inhabited; x_7 = l_Lean_Expr_updateLet_x21___closed__1; x_8 = lean_panic_fn(x_7); return x_8; @@ -4688,9 +7335,8 @@ x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); -lean_dec(x_1); x_5 = l_Lean_Expr_updateFn___main(x_3, x_2); -x_6 = lean_expr_mk_app(x_5, x_4); +x_6 = lean_expr_update_app(x_1, x_5, x_4); return x_6; } else @@ -4756,43 +7402,55 @@ lean_dec_ref(res); res = initialize_Init_Data_PersistentHashSet(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_BinderInfo_HasBeq___closed__1 = _init_l_Lean_BinderInfo_HasBeq___closed__1(); -lean_mark_persistent(l_Lean_BinderInfo_HasBeq___closed__1); -l_Lean_BinderInfo_HasBeq = _init_l_Lean_BinderInfo_HasBeq(); -lean_mark_persistent(l_Lean_BinderInfo_HasBeq); +l_Lean_Literal_inhabited___closed__1 = _init_l_Lean_Literal_inhabited___closed__1(); +lean_mark_persistent(l_Lean_Literal_inhabited___closed__1); +l_Lean_Literal_inhabited = _init_l_Lean_Literal_inhabited(); +lean_mark_persistent(l_Lean_Literal_inhabited); +l_Lean_Literal_hashable___closed__1 = _init_l_Lean_Literal_hashable___closed__1(); +lean_mark_persistent(l_Lean_Literal_hashable___closed__1); +l_Lean_Literal_hashable = _init_l_Lean_Literal_hashable(); +lean_mark_persistent(l_Lean_Literal_hashable); +l_Lean_BinderInfo_hashable___closed__1 = _init_l_Lean_BinderInfo_hashable___closed__1(); +lean_mark_persistent(l_Lean_BinderInfo_hashable___closed__1); +l_Lean_BinderInfo_hashable = _init_l_Lean_BinderInfo_hashable(); +lean_mark_persistent(l_Lean_BinderInfo_hashable); +l_Lean_BinderInfo_hasBeq___closed__1 = _init_l_Lean_BinderInfo_hasBeq___closed__1(); +lean_mark_persistent(l_Lean_BinderInfo_hasBeq___closed__1); +l_Lean_BinderInfo_hasBeq = _init_l_Lean_BinderInfo_hasBeq(); +lean_mark_persistent(l_Lean_BinderInfo_hasBeq); l_Lean_MData_empty = _init_l_Lean_MData_empty(); lean_mark_persistent(l_Lean_MData_empty); -l_Lean_MData_HasEmptyc = _init_l_Lean_MData_HasEmptyc(); -lean_mark_persistent(l_Lean_MData_HasEmptyc); -l_Lean_ExprCachedData_inhabited = _init_l_Lean_ExprCachedData_inhabited(); -l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1 = _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__1); -l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2 = _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__2); -l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__3 = _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__3); -l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4 = _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Expr_2__mkExprCachedDataCore___closed__4); -l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed__const__1 = _init_l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed__const__1(); -lean_mark_persistent(l___private_Init_Lean_Expr_2__mkExprCachedDataCore___boxed__const__1); -l_Lean_mkExprCachedData___closed__1 = _init_l_Lean_mkExprCachedData___closed__1(); -l_Lean_mkExprCachedData___closed__2 = _init_l_Lean_mkExprCachedData___closed__2(); -l_Lean_mkExprCachedData___closed__3 = _init_l_Lean_mkExprCachedData___closed__3(); -l_Lean_mkExprCachedData___closed__4 = _init_l_Lean_mkExprCachedData___closed__4(); -l_Lean_mkExprCachedData___boxed__const__1 = _init_l_Lean_mkExprCachedData___boxed__const__1(); -lean_mark_persistent(l_Lean_mkExprCachedData___boxed__const__1); -l_Lean_mkExprCachedDataForBinder___boxed__const__1 = _init_l_Lean_mkExprCachedDataForBinder___boxed__const__1(); -lean_mark_persistent(l_Lean_mkExprCachedDataForBinder___boxed__const__1); -l_Lean_mkExprCachedDataForLet___boxed__const__1 = _init_l_Lean_mkExprCachedDataForLet___boxed__const__1(); -lean_mark_persistent(l_Lean_mkExprCachedDataForLet___boxed__const__1); -l_Lean_Expr_inhabited___closed__1 = _init_l_Lean_Expr_inhabited___closed__1(); -lean_mark_persistent(l_Lean_Expr_inhabited___closed__1); -l_Lean_Expr_inhabited = _init_l_Lean_Expr_inhabited(); -lean_mark_persistent(l_Lean_Expr_inhabited); -l_Lean_Literal_Inhabited___closed__1 = _init_l_Lean_Literal_Inhabited___closed__1(); -lean_mark_persistent(l_Lean_Literal_Inhabited___closed__1); -l_Lean_Literal_Inhabited = _init_l_Lean_Literal_Inhabited(); -lean_mark_persistent(l_Lean_Literal_Inhabited); +l_Lean_MVData_hasEmptc = _init_l_Lean_MVData_hasEmptc(); +lean_mark_persistent(l_Lean_MVData_hasEmptc); +l_Lean_Expr_CachedData_inhabited = _init_l_Lean_Expr_CachedData_inhabited(); +l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1 = _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__1); +l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2 = _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__2); +l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__3 = _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__3); +l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4 = _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___closed__4); +l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed__const__1 = _init_l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed__const__1(); +lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkCachedDataCore___boxed__const__1); +l_Lean_Expr_mkCachedData___closed__1 = _init_l_Lean_Expr_mkCachedData___closed__1(); +l_Lean_Expr_mkCachedData___closed__2 = _init_l_Lean_Expr_mkCachedData___closed__2(); +l_Lean_Expr_mkCachedData___closed__3 = _init_l_Lean_Expr_mkCachedData___closed__3(); +l_Lean_Expr_mkCachedData___closed__4 = _init_l_Lean_Expr_mkCachedData___closed__4(); +l_Lean_Expr_mkCachedData___boxed__const__1 = _init_l_Lean_Expr_mkCachedData___boxed__const__1(); +lean_mark_persistent(l_Lean_Expr_mkCachedData___boxed__const__1); +l_Lean_Expr_mkCachedDataForBinder___boxed__const__1 = _init_l_Lean_Expr_mkCachedDataForBinder___boxed__const__1(); +lean_mark_persistent(l_Lean_Expr_mkCachedDataForBinder___boxed__const__1); +l_Lean_Expr_mkCachedDataForLet___boxed__const__1 = _init_l_Lean_Expr_mkCachedDataForLet___boxed__const__1(); +lean_mark_persistent(l_Lean_Expr_mkCachedDataForLet___boxed__const__1); +l_Lean_Expr_Inhabited___closed__1 = _init_l_Lean_Expr_Inhabited___closed__1(); +lean_mark_persistent(l_Lean_Expr_Inhabited___closed__1); +l_Lean_Expr_Inhabited = _init_l_Lean_Expr_Inhabited(); +lean_mark_persistent(l_Lean_Expr_Inhabited); +l_Lean_Expr_Hashable___closed__1 = _init_l_Lean_Expr_Hashable___closed__1(); +lean_mark_persistent(l_Lean_Expr_Hashable___closed__1); +l_Lean_Expr_Hashable = _init_l_Lean_Expr_Hashable(); +lean_mark_persistent(l_Lean_Expr_Hashable); l_Lean_Literal_type___closed__1 = _init_l_Lean_Literal_type___closed__1(); lean_mark_persistent(l_Lean_Literal_type___closed__1); l_Lean_Literal_type___closed__2 = _init_l_Lean_Literal_type___closed__2(); @@ -4805,14 +7463,12 @@ l_Lean_Literal_type___closed__5 = _init_l_Lean_Literal_type___closed__5(); lean_mark_persistent(l_Lean_Literal_type___closed__5); l_Lean_Literal_type___closed__6 = _init_l_Lean_Literal_type___closed__6(); lean_mark_persistent(l_Lean_Literal_type___closed__6); -l_Lean_Expr_Hashable___closed__1 = _init_l_Lean_Expr_Hashable___closed__1(); -lean_mark_persistent(l_Lean_Expr_Hashable___closed__1); -l_Lean_Expr_Hashable = _init_l_Lean_Expr_Hashable(); -lean_mark_persistent(l_Lean_Expr_Hashable); l_Lean_Expr_HasBeq___closed__1 = _init_l_Lean_Expr_HasBeq___closed__1(); lean_mark_persistent(l_Lean_Expr_HasBeq___closed__1); l_Lean_Expr_HasBeq = _init_l_Lean_Expr_HasBeq(); lean_mark_persistent(l_Lean_Expr_HasBeq); +l_Lean_Expr_getAppArgs___closed__1 = _init_l_Lean_Expr_getAppArgs___closed__1(); +lean_mark_persistent(l_Lean_Expr_getAppArgs___closed__1); l_Lean_Expr_getRevArg_x21___main___closed__1 = _init_l_Lean_Expr_getRevArg_x21___main___closed__1(); lean_mark_persistent(l_Lean_Expr_getRevArg_x21___main___closed__1); l_Lean_Expr_appFn_x21___closed__1 = _init_l_Lean_Expr_appFn_x21___closed__1(); diff --git a/stage0/library/Init/Lean/LocalContext.c b/stage0/library/Init/Lean/LocalContext.c index e172cbc489..b46b3209ab 100644 --- a/stage0/library/Init/Lean/LocalContext.c +++ b/stage0/library/Init/Lean/LocalContext.c @@ -38,7 +38,6 @@ lean_object* l_Array_findMAux___main___at_Lean_LocalContext_findDecl___spec__6__ uint8_t l_Lean_LocalContext_isSubPrefixOfAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find_from_user_name(lean_object*, lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkLambda___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__8(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__7(lean_object*); lean_object* l_Lean_LocalContext_forM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -70,7 +69,6 @@ uint8_t l_Array_anyRangeMAux___main___at_Lean_LocalContext_all___spec__4(lean_ob lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__6(lean_object*); lean_object* l_PersistentArray_getAux___main___at___private_Init_Lean_LocalContext_1__popTailNoneAux___main___spec__2(lean_object*, size_t, size_t); lean_object* l_Lean_LocalContext_allM___rarg(lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_empty___rarg___closed__2; lean_object* l_Lean_LocalContext_foldlM___at_Lean_LocalContext_foldl___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -81,6 +79,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__5__ lean_object* l_Lean_LocalContext_anyM___boxed(lean_object*); lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_PersistentArray_anyM___at_Lean_LocalContext_any___spec__1___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* l_PersistentArray_findM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Lean_LocalContext_findFVar___boxed(lean_object*, lean_object*); @@ -89,6 +88,7 @@ lean_object* l_PersistentArray_anyMAux___main___at_Lean_LocalContext_any___spec_ lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__4(lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_LocalContext_findDeclM___at_Lean_LocalContext_findDecl___spec__1(lean_object*); lean_object* l_PersistentArray_anyM___at_Lean_LocalContext_anyM___spec__1___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__10(lean_object*); @@ -120,7 +120,6 @@ lean_object* l___private_Init_Lean_LocalContext_1__popTailNoneAux(lean_object*); lean_object* l_PersistentHashMap_erase___at_Lean_LocalContext_erase___spec__1(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_any___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -172,6 +171,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec_ lean_object* l_Lean_LocalDecl_updateUserName(lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2___boxed(lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRev___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -188,6 +188,7 @@ lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3___ lean_object* l_PersistentArray_findMAux___main___at_Lean_LocalContext_findDecl___spec__3(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -202,6 +203,7 @@ lean_object* l_Lean_LocalContext_foldlFromM___rarg(lean_object*, lean_object*, l lean_object* lean_local_ctx_get(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_mkBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_allM___spec__5___boxed(lean_object*); +lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2(lean_object*, size_t, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRev___spec__5(lean_object*); @@ -218,6 +220,7 @@ lean_object* l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocal lean_object* l_Lean_LocalContext_any___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_eraseAux___main___at_Lean_LocalContext_erase___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDecl___rarg___boxed(lean_object*, lean_object*); +lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_PersistentArray_get_x21___at___private_Init_Lean_LocalContext_1__popTailNoneAux___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRevM___at_Lean_LocalContext_findDeclRev___spec__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -240,7 +243,6 @@ lean_object* l_Lean_LocalDecl_Inhabited___closed__1; lean_object* l_Array_findMAux___main___at_Lean_LocalContext_findDecl___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_PersistentArray_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited; lean_object* l_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3(lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__9(lean_object*); @@ -304,7 +306,6 @@ lean_object* l_Array_anyRangeMAux___main___at_Lean_LocalContext_anyM___spec__4__ lean_object* lean_local_ctx_erase(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldl___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_findRevM___at_Lean_LocalContext_findDeclRev___spec__2___rarg___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__1(lean_object*); uint8_t l_PersistentArray_anyMAux___main___at_Lean_LocalContext_all___spec__2(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -317,7 +318,6 @@ lean_object* l_Lean_LocalDecl_value___closed__1; lean_object* l_PersistentArray_findRevMAux___main___at_Lean_LocalContext_findFromUserName___spec__3(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_isEmpty___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_lambda(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_PersistentHashMap_isEmpty___at_Lean_LocalContext_isEmpty___spec__1(lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l_PersistentArray_foldlFromM___at_Lean_LocalContext_foldlFrom___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -384,7 +384,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_unsigned_to_nat(0u); x_2 = lean_box(0); -x_3 = l_Lean_Expr_inhabited___closed__1; +x_3 = l_Lean_Expr_Inhabited___closed__1; x_4 = lean_alloc_ctor(1, 5, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -591,7 +591,7 @@ _start: if (lean_obj_tag(x_1) == 0) { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Expr_inhabited; +x_2 = l_Lean_Expr_Inhabited; x_3 = l_Lean_LocalDecl_value___closed__3; x_4 = lean_panic_fn(x_3); return x_4; @@ -689,7 +689,7 @@ _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_LocalDecl_name(x_1); -x_3 = lean_expr_mk_fvar(x_2); +x_3 = l_Lean_mkFVar(x_2); return x_3; } } @@ -5147,7 +5147,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_unsigned_to_nat(1u); x_9 = lean_nat_sub(x_4, x_8); lean_dec(x_4); -x_10 = l_Lean_Expr_inhabited; +x_10 = l_Lean_Expr_Inhabited; x_11 = lean_array_get(x_10, x_3, x_9); lean_inc(x_2); x_12 = l_Lean_LocalContext_findFVar(x_2, x_11); @@ -5182,7 +5182,7 @@ lean_dec(x_18); if (x_1 == 0) { lean_object* x_21; -x_21 = lean_expr_mk_forall(x_17, x_19, x_20, x_5); +x_21 = l_Lean_mkForall(x_17, x_19, x_20, x_5); x_4 = x_9; x_5 = x_21; goto _start; @@ -5190,7 +5190,7 @@ goto _start; else { lean_object* x_23; -x_23 = lean_expr_mk_lambda(x_17, x_19, x_20, x_5); +x_23 = l_Lean_mkLambda(x_17, x_19, x_20, x_5); x_4 = x_9; x_5 = x_23; goto _start; @@ -5217,14 +5217,15 @@ goto _start; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_30 = lean_expr_abstract_range(x_26, x_9, x_3); lean_dec(x_26); x_31 = lean_expr_abstract_range(x_27, x_9, x_3); lean_dec(x_27); -x_32 = lean_expr_mk_let(x_25, x_30, x_31, x_5); +x_32 = 0; +x_33 = l_Lean_mkLet(x_25, x_30, x_31, x_5, x_32); x_4 = x_9; -x_5 = x_32; +x_5 = x_33; goto _start; } } @@ -5283,7 +5284,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_ob x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_sub(x_3, x_7); lean_dec(x_3); -x_9 = l_Lean_Expr_inhabited; +x_9 = l_Lean_Expr_Inhabited; x_10 = lean_array_get(x_9, x_2, x_8); lean_inc(x_1); x_11 = l_Lean_LocalContext_findFVar(x_1, x_10); @@ -5315,7 +5316,7 @@ x_18 = lean_ctor_get_uint8(x_15, sizeof(void*)*4); lean_dec(x_15); x_19 = lean_expr_abstract_range(x_17, x_8, x_2); lean_dec(x_17); -x_20 = lean_expr_mk_lambda(x_16, x_18, x_19, x_4); +x_20 = l_Lean_mkLambda(x_16, x_18, x_19, x_4); x_3 = x_8; x_4 = x_20; goto _start; @@ -5341,14 +5342,15 @@ goto _start; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; x_27 = lean_expr_abstract_range(x_23, x_8, x_2); lean_dec(x_23); x_28 = lean_expr_abstract_range(x_24, x_8, x_2); lean_dec(x_24); -x_29 = lean_expr_mk_let(x_22, x_27, x_28, x_4); +x_29 = 0; +x_30 = l_Lean_mkLet(x_22, x_27, x_28, x_4, x_29); x_3 = x_8; -x_4 = x_29; +x_4 = x_30; goto _start; } } @@ -5403,7 +5405,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_ob x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_sub(x_3, x_7); lean_dec(x_3); -x_9 = l_Lean_Expr_inhabited; +x_9 = l_Lean_Expr_Inhabited; x_10 = lean_array_get(x_9, x_2, x_8); lean_inc(x_1); x_11 = l_Lean_LocalContext_findFVar(x_1, x_10); @@ -5435,7 +5437,7 @@ x_18 = lean_ctor_get_uint8(x_15, sizeof(void*)*4); lean_dec(x_15); x_19 = lean_expr_abstract_range(x_17, x_8, x_2); lean_dec(x_17); -x_20 = lean_expr_mk_forall(x_16, x_18, x_19, x_4); +x_20 = l_Lean_mkForall(x_16, x_18, x_19, x_4); x_3 = x_8; x_4 = x_20; goto _start; @@ -5461,14 +5463,15 @@ goto _start; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; x_27 = lean_expr_abstract_range(x_23, x_8, x_2); lean_dec(x_23); x_28 = lean_expr_abstract_range(x_24, x_8, x_2); lean_dec(x_24); -x_29 = lean_expr_mk_let(x_22, x_27, x_28, x_4); +x_29 = 0; +x_30 = l_Lean_mkLet(x_22, x_27, x_28, x_4, x_29); x_3 = x_8; -x_4 = x_29; +x_4 = x_30; goto _start; } } diff --git a/stage0/library/Init/Lean/Meta/Basic.c b/stage0/library/Init/Lean/Meta/Basic.c index 16775af831..7e10e933c1 100644 --- a/stage0/library/Init/Lean/Meta/Basic.c +++ b/stage0/library/Init/Lean/Meta/Basic.c @@ -23,7 +23,6 @@ lean_object* l_Lean_Meta_dbgTrace___rarg___lambda__1___boxed(lean_object*, lean_ lean_object* l___private_Init_Lean_Meta_Basic_2__reduceAll_x3f(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVarId___boxed(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isClassQuick___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getEnv___boxed(lean_object*); lean_object* l_Lean_Meta_usingAtLeastTransparency___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at_Lean_Meta_forallTelescope___spec__1(lean_object*); @@ -42,7 +41,7 @@ lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object* lean_object* l_Lean_Meta_withNewLocalInstances___main(lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_usingTransparency___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_4__getOptions___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_4__getOptions(lean_object*, lean_object*); lean_object* l_Lean_Meta_getConstNoEx(lean_object*, lean_object*, lean_object*); @@ -54,6 +53,7 @@ lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaTelescopeAux___rarg(lean_ lean_object* l_Lean_Meta_forallBoundedTelescope(lean_object*); lean_object* lean_dbg_trace(lean_object*, lean_object*); lean_object* l_Lean_Meta_TransparencyMode_beq___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* l_Lean_Meta_throwEx___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_dbgTrace___rarg___closed__1; lean_object* l_Lean_Meta_assignLevelMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,7 +76,6 @@ lean_object* l_Lean_Meta_getMCtx(lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Lean_Meta_usingDefault(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_InfoCacheKey_HasBeq___boxed(lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__5___rarg___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_Meta_tracer___closed__2; @@ -108,6 +107,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_resettingTypeClassCache(lean_object*); lean_object* l_Lean_Meta_isClassExpensive(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassQuickConst(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Meta_usingTransparency(lean_object*); lean_object* l_Lean_Meta_getConstAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -191,20 +191,20 @@ lean_object* l_Lean_Meta_InfoCacheKey_Inhabited___closed__1; lean_object* l_Lean_Meta_forallBoundedTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MetaM_inhabited(lean_object*, lean_object*); lean_object* l_Lean_Meta_TransparencyMode_Hashable___closed__1; -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwEx(lean_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1___boxed(lean_object*); lean_object* l_Lean_Meta_TransparencyMode_hash___boxed(lean_object*); -lean_object* l_Lean_Meta_isClassQuick___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isClassQuick___main___closed__1; lean_object* l_Lean_Meta_isReadOnlyOrSyntheticExprMVar___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshLevelMVarId(lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); lean_object* l_Lean_Meta_tracer___closed__3; lean_object* l_Lean_Meta_liftStateMCtx___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_liftStateMCtx___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMCtx___rarg(lean_object*); @@ -229,7 +229,7 @@ lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaTelescopeAux(lean_object* lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkBinding___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_MetaM_inhabited___rarg(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_level_mvar(lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); uint8_t _init_l_Lean_Meta_TransparencyMode_Inhabited() { _start: { @@ -471,7 +471,7 @@ _start: lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(0); x_2 = 1; -x_3 = l_Lean_Expr_inhabited___closed__1; +x_3 = l_Lean_Expr_Inhabited___closed__1; x_4 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_1); @@ -515,7 +515,7 @@ x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = l_Lean_Meta_TransparencyMode_hash(x_2); -x_6 = lean_expr_hash(x_3); +x_6 = l_Lean_Expr_hash(x_3); x_7 = l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1(x_4); x_8 = lean_usize_mix_hash(x_6, x_7); x_9 = lean_usize_mix_hash(x_5, x_8); @@ -2171,128 +2171,68 @@ lean_object* l_Lean_Meta_instantiateMVars(lean_object* x_1, lean_object* x_2, le _start: { uint8_t x_4; -x_4 = lean_expr_has_expr_mvar(x_1); +x_4 = l_Lean_Expr_hasMVar(x_1); if (x_4 == 0) { -uint8_t x_5; -x_5 = lean_expr_has_level_mvar(x_1); -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_1); -lean_ctor_set(x_6, 1, x_3); -return x_6; +lean_object* x_5; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_3); +return x_5; } else { -uint8_t x_7; -x_7 = !lean_is_exclusive(x_3); -if (x_7 == 0) +uint8_t x_6; +x_6 = !lean_is_exclusive(x_3); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_3, 1); -x_9 = l_Lean_MetavarContext_instantiateMVars(x_8, x_1); -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_3, 1); +x_8 = l_Lean_MetavarContext_instantiateMVars(x_7, x_1); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -lean_ctor_set(x_3, 1, x_11); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_3); -return x_12; +lean_dec(x_8); +lean_ctor_set(x_3, 1, x_10); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_3); +return x_11; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_13 = lean_ctor_get(x_3, 0); -x_14 = lean_ctor_get(x_3, 1); -x_15 = lean_ctor_get(x_3, 2); -x_16 = lean_ctor_get(x_3, 3); -x_17 = lean_ctor_get(x_3, 4); -x_18 = lean_ctor_get(x_3, 5); -lean_inc(x_18); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_12 = lean_ctor_get(x_3, 0); +x_13 = lean_ctor_get(x_3, 1); +x_14 = lean_ctor_get(x_3, 2); +x_15 = lean_ctor_get(x_3, 3); +x_16 = lean_ctor_get(x_3, 4); +x_17 = lean_ctor_get(x_3, 5); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); +lean_inc(x_12); lean_dec(x_3); -x_19 = l_Lean_MetavarContext_instantiateMVars(x_14, x_1); -x_20 = lean_ctor_get(x_19, 0); +x_18 = l_Lean_MetavarContext_instantiateMVars(x_13, x_1); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_22, 0, x_13); +lean_dec(x_18); +x_21 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_21, 0, x_12); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_21, 2, x_14); +lean_ctor_set(x_21, 3, x_15); +lean_ctor_set(x_21, 4, x_16); +lean_ctor_set(x_21, 5, x_17); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_19); lean_ctor_set(x_22, 1, x_21); -lean_ctor_set(x_22, 2, x_15); -lean_ctor_set(x_22, 3, x_16); -lean_ctor_set(x_22, 4, x_17); -lean_ctor_set(x_22, 5, x_18); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_3); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_25 = lean_ctor_get(x_3, 1); -x_26 = l_Lean_MetavarContext_instantiateMVars(x_25, x_1); -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(x_26); -lean_ctor_set(x_3, 1, x_28); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_3); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_30 = lean_ctor_get(x_3, 0); -x_31 = lean_ctor_get(x_3, 1); -x_32 = lean_ctor_get(x_3, 2); -x_33 = lean_ctor_get(x_3, 3); -x_34 = lean_ctor_get(x_3, 4); -x_35 = lean_ctor_get(x_3, 5); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_3); -x_36 = l_Lean_MetavarContext_instantiateMVars(x_31, x_1); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_39, 0, x_30); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_32); -lean_ctor_set(x_39, 3, x_33); -lean_ctor_set(x_39, 4, x_34); -lean_ctor_set(x_39, 5, x_35); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_39); -return x_40; +return x_22; } } } @@ -3790,6 +3730,15 @@ lean_dec(x_2); return x_4; } } +lean_object* _init_l_Lean_Meta_isClassQuick___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_MetaM_inhabited___boxed), 2, 1); +lean_closure_set(x_1, 0, lean_box(0)); +return x_1; +} +} lean_object* l_Lean_Meta_isClassQuick___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3806,6 +3755,7 @@ x_6 = lean_metavar_ctx_get_expr_assignment(x_5, x_4); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; lean_object* x_8; +lean_dec(x_2); x_7 = lean_box(0); x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_7); @@ -3829,6 +3779,7 @@ x_11 = lean_ctor_get(x_1, 0); lean_inc(x_11); lean_dec(x_1); x_12 = l_Lean_Meta_isClassQuickConst(x_11, x_2, x_3); +lean_dec(x_2); return x_12; } case 5: @@ -3847,12 +3798,14 @@ x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); lean_dec(x_14); x_16 = l_Lean_Meta_isClassQuickConst(x_15, x_2, x_3); +lean_dec(x_2); return x_16; } case 6: { lean_object* x_17; lean_object* x_18; lean_dec(x_14); +lean_dec(x_2); x_17 = lean_box(2); x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_17); @@ -3863,6 +3816,7 @@ default: { lean_object* x_19; lean_object* x_20; lean_dec(x_14); +lean_dec(x_2); x_19 = lean_box(0); x_20 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_20, 0, x_19); @@ -3883,6 +3837,7 @@ goto _start; case 8: { lean_object* x_23; lean_object* x_24; +lean_dec(x_2); lean_dec(x_1); x_23 = lean_box(2); x_24 = lean_alloc_ctor(0, 2, 0); @@ -3902,6 +3857,7 @@ goto _start; case 11: { lean_object* x_27; lean_object* x_28; +lean_dec(x_2); lean_dec(x_1); x_27 = lean_box(2); x_28 = lean_alloc_ctor(0, 2, 0); @@ -3909,26 +3865,27 @@ lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_3); return x_28; } +case 12: +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_1); +x_29 = l_Lean_Meta_isClassQuick___main___closed__1; +x_30 = l_unreachable_x21___rarg(x_29); +x_31 = lean_apply_2(x_30, x_2, x_3); +return x_31; +} default: { -lean_object* x_29; lean_object* x_30; -lean_dec(x_1); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_3); -return x_30; -} -} -} -} -lean_object* l_Lean_Meta_isClassQuick___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_isClassQuick___main(x_1, x_2, x_3); +lean_object* x_32; lean_object* x_33; lean_dec(x_2); -return x_4; +lean_dec(x_1); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_3); +return x_33; +} +} } } lean_object* l_Lean_Meta_isClassQuick(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -3939,15 +3896,6 @@ x_4 = l_Lean_Meta_isClassQuick___main(x_1, x_2, x_3); return x_4; } } -lean_object* l_Lean_Meta_isClassQuick___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_isClassQuick(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} lean_object* l_Lean_Meta_resettingTypeClassCache___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4044,6 +3992,7 @@ lean_inc(x_14); lean_dec(x_12); x_15 = l_Lean_LocalDecl_type(x_13); lean_dec(x_13); +lean_inc(x_5); lean_inc(x_15); x_16 = l_Lean_Meta_isClassQuick___main(x_15, x_5, x_14); if (lean_obj_tag(x_16) == 0) @@ -4360,91 +4309,92 @@ _start: lean_object* x_12; if (lean_obj_tag(x_9) == 7) { -lean_object* x_37; uint8_t 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_37; lean_object* x_38; lean_object* x_39; uint64_t 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; x_37 = lean_ctor_get(x_9, 0); lean_inc(x_37); -x_38 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); -x_39 = lean_ctor_get(x_9, 1); +x_38 = lean_ctor_get(x_9, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_9, 2); lean_inc(x_39); -x_40 = lean_ctor_get(x_9, 2); -lean_inc(x_40); +x_40 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); lean_dec(x_9); x_41 = lean_array_get_size(x_7); lean_inc(x_7); -x_42 = lean_expr_instantiate_rev_range(x_39, x_8, x_41, x_7); +x_42 = lean_expr_instantiate_rev_range(x_38, x_8, x_41, x_7); lean_dec(x_41); -lean_dec(x_39); +lean_dec(x_38); x_43 = l_Lean_Meta_mkFreshId___rarg(x_11); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); lean_dec(x_43); +x_46 = (uint8_t)((x_40 << 24) >> 61); lean_inc(x_44); -x_46 = lean_local_ctx_mk_local_decl(x_6, x_44, x_37, x_42, x_38); -x_47 = lean_expr_mk_fvar(x_44); -x_48 = lean_array_push(x_7, x_47); +x_47 = lean_local_ctx_mk_local_decl(x_6, x_44, x_37, x_42, x_46); +x_48 = l_Lean_mkFVar(x_44); +x_49 = lean_array_push(x_7, x_48); if (lean_obj_tag(x_4) == 0) { -x_6 = x_46; -x_7 = x_48; -x_9 = x_40; +x_6 = x_47; +x_7 = x_49; +x_9 = x_39; x_11 = x_45; goto _start; } else { -lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_50 = lean_ctor_get(x_4, 0); -lean_inc(x_50); -x_51 = lean_array_get_size(x_48); -x_52 = lean_nat_dec_lt(x_51, x_50); -lean_dec(x_50); -if (x_52 == 0) +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = lean_ctor_get(x_4, 0); +lean_inc(x_51); +x_52 = lean_array_get_size(x_49); +x_53 = lean_nat_dec_lt(x_52, x_51); +lean_dec(x_51); +if (x_53 == 0) { -lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_dec(x_4); lean_dec(x_1); -lean_inc(x_48); -x_53 = lean_expr_instantiate_rev_range(x_40, x_8, x_51, x_48); -lean_dec(x_51); -lean_dec(x_40); -lean_inc(x_48); -x_54 = lean_apply_2(x_5, x_48, x_53); -x_55 = !lean_is_exclusive(x_10); -if (x_55 == 0) +lean_inc(x_49); +x_54 = lean_expr_instantiate_rev_range(x_39, x_8, x_52, x_49); +lean_dec(x_52); +lean_dec(x_39); +lean_inc(x_49); +x_55 = lean_apply_2(x_5, x_49, x_54); +x_56 = !lean_is_exclusive(x_10); +if (x_56 == 0) { -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_10, 1); -lean_dec(x_56); -lean_ctor_set(x_10, 1, x_46); -x_57 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_2, x_48, x_8, x_54, x_10, x_45); -lean_dec(x_48); -return x_57; +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_10, 1); +lean_dec(x_57); +lean_ctor_set(x_10, 1, x_47); +x_58 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_2, x_49, x_8, x_55, x_10, x_45); +lean_dec(x_49); +return x_58; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_58 = lean_ctor_get(x_10, 0); -x_59 = lean_ctor_get(x_10, 2); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_10, 0); +x_60 = lean_ctor_get(x_10, 2); +lean_inc(x_60); lean_inc(x_59); -lean_inc(x_58); lean_dec(x_10); -x_60 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_46); -lean_ctor_set(x_60, 2, x_59); -x_61 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_2, x_48, x_8, x_54, x_60, x_45); -lean_dec(x_48); -return x_61; +x_61 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_47); +lean_ctor_set(x_61, 2, x_60); +x_62 = l_Lean_Meta_withNewLocalInstances___main___rarg(x_2, x_49, x_8, x_55, x_61, x_45); +lean_dec(x_49); +return x_62; } } else { -lean_dec(x_51); -x_6 = x_46; -x_7 = x_48; -x_9 = x_40; +lean_dec(x_52); +x_6 = x_47; +x_7 = x_49; +x_9 = x_39; x_11 = x_45; goto _start; } @@ -4452,9 +4402,9 @@ goto _start; } else { -lean_object* x_63; -x_63 = lean_box(0); -x_12 = x_63; +lean_object* x_64; +x_64 = lean_box(0); +x_12 = x_64; goto block_36; } block_36: @@ -5094,6 +5044,7 @@ lean_inc(x_19); lean_dec(x_17); x_20 = l_Lean_LocalDecl_type(x_18); lean_dec(x_18); +lean_inc(x_8); lean_inc(x_20); x_21 = l_Lean_Meta_isClassQuick___main(x_20, x_8, x_19); if (lean_obj_tag(x_21) == 0) @@ -5483,6 +5434,7 @@ lean_inc(x_25); lean_dec(x_23); x_26 = l_Lean_LocalDecl_type(x_24); lean_dec(x_24); +lean_inc(x_13); lean_inc(x_26); x_27 = l_Lean_Meta_isClassQuick___main(x_26, x_13, x_25); if (lean_obj_tag(x_27) == 0) @@ -5753,7 +5705,7 @@ _start: { 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_6); -x_11 = lean_expr_mk_fvar(x_6); +x_11 = l_Lean_mkFVar(x_6); lean_inc(x_3); x_12 = lean_array_push(x_3, x_11); x_13 = lean_array_get_size(x_12); @@ -5792,6 +5744,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_LocalDecl_type(x_21); lean_dec(x_21); +lean_inc(x_9); lean_inc(x_23); x_24 = l_Lean_Meta_isClassQuick___main(x_23, x_9, x_22); if (lean_obj_tag(x_24) == 0) @@ -6054,96 +6007,97 @@ _start: lean_object* x_11; if (lean_obj_tag(x_8) == 7) { -lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint64_t 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; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_24 = lean_ctor_get(x_8, 0); lean_inc(x_24); -x_25 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_26 = lean_ctor_get(x_8, 1); +x_25 = lean_ctor_get(x_8, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_8, 2); lean_inc(x_26); -x_27 = lean_ctor_get(x_8, 2); -lean_inc(x_27); +x_27 = lean_ctor_get_uint64(x_8, sizeof(void*)*3); lean_dec(x_8); x_28 = lean_array_get_size(x_6); lean_inc(x_6); -x_29 = lean_expr_instantiate_rev_range(x_26, x_7, x_28, x_6); +x_29 = lean_expr_instantiate_rev_range(x_25, x_7, x_28, x_6); lean_dec(x_28); -lean_dec(x_26); +lean_dec(x_25); x_30 = l_Lean_Meta_mkFreshId___rarg(x_10); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); +x_33 = (uint8_t)((x_27 << 24) >> 61); lean_inc(x_31); -x_33 = lean_local_ctx_mk_local_decl(x_5, x_31, x_24, x_29, x_25); +x_34 = lean_local_ctx_mk_local_decl(x_5, x_31, x_24, x_29, x_33); lean_inc(x_31); -x_34 = lean_expr_mk_fvar(x_31); +x_35 = l_Lean_mkFVar(x_31); lean_inc(x_6); -x_35 = lean_array_push(x_6, x_34); +x_36 = lean_array_push(x_6, x_35); if (lean_obj_tag(x_4) == 0) { lean_dec(x_31); lean_dec(x_6); -x_5 = x_33; -x_6 = x_35; -x_8 = x_27; +x_5 = x_34; +x_6 = x_36; +x_8 = x_26; x_10 = x_32; goto _start; } else { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_4, 0); -lean_inc(x_37); -x_38 = lean_array_get_size(x_35); -x_39 = lean_nat_dec_lt(x_38, x_37); -lean_dec(x_37); +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_4, 0); +lean_inc(x_38); +x_39 = lean_array_get_size(x_36); +x_40 = lean_nat_dec_lt(x_39, x_38); lean_dec(x_38); -if (x_39 == 0) -{ -uint8_t x_40; -lean_dec(x_4); -x_40 = !lean_is_exclusive(x_9); +lean_dec(x_39); if (x_40 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_9, 1); -lean_dec(x_41); -lean_ctor_set(x_9, 1, x_33); +uint8_t x_41; +lean_dec(x_4); +x_41 = !lean_is_exclusive(x_9); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_9, 1); +lean_dec(x_42); +lean_ctor_set(x_9, 1, x_34); lean_inc(x_7); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__5___rarg(x_1, x_2, x_6, x_7, x_27, x_31, x_35, x_7, x_9, x_32); -lean_dec(x_35); -lean_dec(x_27); +x_43 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__5___rarg(x_1, x_2, x_6, x_7, x_26, x_31, x_36, x_7, x_9, x_32); +lean_dec(x_36); +lean_dec(x_26); lean_dec(x_7); -return x_42; +return x_43; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_9, 0); -x_44 = lean_ctor_get(x_9, 2); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_9, 0); +x_45 = lean_ctor_get(x_9, 2); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_9); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_33); -lean_ctor_set(x_45, 2, x_44); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_34); +lean_ctor_set(x_46, 2, x_45); lean_inc(x_7); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__5___rarg(x_1, x_2, x_6, x_7, x_27, x_31, x_35, x_7, x_45, x_32); -lean_dec(x_35); -lean_dec(x_27); +x_47 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_forallTelescope___spec__5___rarg(x_1, x_2, x_6, x_7, x_26, x_31, x_36, x_7, x_46, x_32); +lean_dec(x_36); +lean_dec(x_26); lean_dec(x_7); -return x_46; +return x_47; } } else { lean_dec(x_31); lean_dec(x_6); -x_5 = x_33; -x_6 = x_35; -x_8 = x_27; +x_5 = x_34; +x_6 = x_36; +x_8 = x_26; x_10 = x_32; goto _start; } @@ -6151,9 +6105,9 @@ goto _start; } else { -lean_object* x_48; -x_48 = lean_box(0); -x_11 = x_48; +lean_object* x_49; +x_49 = lean_box(0); +x_11 = x_49; goto block_23; } block_23: @@ -6548,6 +6502,7 @@ lean_object* l_Lean_Meta_isClass(lean_object* x_1, lean_object* x_2, lean_object _start: { lean_object* x_5; +lean_inc(x_3); lean_inc(x_2); x_5 = l_Lean_Meta_isClassQuick___main(x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) @@ -6667,77 +6622,78 @@ lean_object* x_9; switch (lean_obj_tag(x_6)) { case 6: { -lean_object* x_22; uint8_t 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_22; lean_object* x_23; lean_object* x_24; uint64_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_24 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 2); lean_inc(x_24); -x_25 = lean_ctor_get(x_6, 2); -lean_inc(x_25); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); lean_dec(x_6); x_26 = lean_array_get_size(x_4); lean_inc(x_4); -x_27 = lean_expr_instantiate_rev_range(x_24, x_5, x_26, x_4); +x_27 = lean_expr_instantiate_rev_range(x_23, x_5, x_26, x_4); lean_dec(x_26); -lean_dec(x_24); +lean_dec(x_23); x_28 = l_Lean_Meta_mkFreshId___rarg(x_8); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); +x_31 = (uint8_t)((x_25 << 24) >> 61); lean_inc(x_29); -x_31 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_23); -x_32 = lean_expr_mk_fvar(x_29); -x_33 = lean_array_push(x_4, x_32); -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); +x_33 = l_Lean_mkFVar(x_29); +x_34 = lean_array_push(x_4, x_33); +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } case 8: { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_35 = lean_ctor_get(x_6, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_6, 1); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_36 = lean_ctor_get(x_6, 0); lean_inc(x_36); -x_37 = lean_ctor_get(x_6, 2); +x_37 = lean_ctor_get(x_6, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_6, 3); +x_38 = lean_ctor_get(x_6, 2); lean_inc(x_38); +x_39 = lean_ctor_get(x_6, 3); +lean_inc(x_39); lean_dec(x_6); -x_39 = lean_array_get_size(x_4); +x_40 = lean_array_get_size(x_4); lean_inc(x_4); -x_40 = lean_expr_instantiate_rev_range(x_36, x_5, x_39, x_4); -lean_dec(x_36); -lean_inc(x_4); -x_41 = lean_expr_instantiate_rev_range(x_37, x_5, x_39, x_4); -lean_dec(x_39); +x_41 = lean_expr_instantiate_rev_range(x_37, x_5, x_40, x_4); lean_dec(x_37); -x_42 = l_Lean_Meta_mkFreshId___rarg(x_8); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_4); +x_42 = lean_expr_instantiate_rev_range(x_38, x_5, x_40, x_4); +lean_dec(x_40); +lean_dec(x_38); +x_43 = l_Lean_Meta_mkFreshId___rarg(x_8); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_42); -lean_inc(x_43); -x_45 = lean_local_ctx_mk_let_decl(x_3, x_43, x_35, x_40, x_41); -x_46 = lean_expr_mk_fvar(x_43); -x_47 = lean_array_push(x_4, x_46); -x_3 = x_45; -x_4 = x_47; -x_6 = x_38; -x_8 = x_44; +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_44); +x_46 = lean_local_ctx_mk_let_decl(x_3, x_44, x_36, x_41, x_42); +x_47 = l_Lean_mkFVar(x_44); +x_48 = lean_array_push(x_4, x_47); +x_3 = x_46; +x_4 = x_48; +x_6 = x_39; +x_8 = x_45; goto _start; } default: { -lean_object* x_49; -x_49 = lean_box(0); -x_9 = x_49; +lean_object* x_50; +x_50 = lean_box(0); +x_9 = x_50; goto block_21; } } @@ -7476,6 +7432,8 @@ l_Lean_Meta_tracer___closed__4 = _init_l_Lean_Meta_tracer___closed__4(); lean_mark_persistent(l_Lean_Meta_tracer___closed__4); l_Lean_Meta_tracer = _init_l_Lean_Meta_tracer(); lean_mark_persistent(l_Lean_Meta_tracer); +l_Lean_Meta_isClassQuick___main___closed__1 = _init_l_Lean_Meta_isClassQuick___main___closed__1(); +lean_mark_persistent(l_Lean_Meta_isClassQuick___main___closed__1); l_Lean_Meta_isClassExpensive___main___closed__1 = _init_l_Lean_Meta_isClassExpensive___main___closed__1(); lean_mark_persistent(l_Lean_Meta_isClassExpensive___main___closed__1); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/library/Init/Lean/Meta/Default.c b/stage0/library/Init/Lean/Meta/Default.c index 4012932f50..b584a87860 100644 --- a/stage0/library/Init/Lean/Meta/Default.c +++ b/stage0/library/Init/Lean/Meta/Default.c @@ -21,7 +21,6 @@ lean_object* l_Lean_ConstantInfo_name(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__39(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_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); -lean_object* lean_expr_mk_sort(lean_object*); lean_object* l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -45,6 +44,7 @@ lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_forallTelescope___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_smartUnfoldingSuffix; lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_5__getLevel___at_Lean_Meta_isProp___spec__18(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_reduceQuotRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFunInfoAuxAux___at_Lean_Meta_getFunInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -58,10 +58,10 @@ lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux__ lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_8__deltaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassQuick___main(lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l_Lean_Meta_inferTypeAuxAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__30(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___at_Lean_Meta_isProp___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Meta_isProp___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -77,6 +77,7 @@ lean_object* l___private_Init_Lean_WHNF_4__getRecRuleFor(lean_object*, lean_obje lean_object* l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Literal_type(lean_object*); lean_object* l_Lean_reduceQuotRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__50___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -86,7 +87,6 @@ lean_object* l___private_Init_Lean_Meta_Default_2__boolToExpr(uint8_t); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__51___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__11___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaTelescopeAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__33(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -111,8 +111,6 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_M lean_object* l_Nat_foldMAux___main___at_Lean_Meta_getFunInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___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* l_Lean_reduceRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__37(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__34(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); @@ -125,12 +123,13 @@ lean_object* l_Lean_whnfEasyCases___main___at___private_Init_Lean_Meta_Default_3 uint8_t l_Lean_ConstantInfo_hasValue(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__41(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Meta_isProp___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkSort(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at_Lean_Meta_isProp___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main___at_Lean_Meta_isProp___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__39___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___closed__1; +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__47(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_8__forallTelescopeReducingAux___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__36(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); @@ -138,6 +137,7 @@ lean_object* l___private_Init_Lean_Meta_Basic_8__forallTelescopeReducingAux___at uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_10__inferFVarType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__11___closed__1; +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at_Lean_Meta_isProp___spec__9(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_reduceRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -178,12 +178,10 @@ lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* l_Lean_Meta_whnfAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -extern lean_object* l_Lean_Expr_inhabited; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_ReaderT_pure___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__12___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at___private_Init_Lean_Meta_FunInfo_1__checkFunInfoCache___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_FunInfo_2__updateHasFwdDeps(lean_object*, lean_object*); -lean_object* lean_expr_mk_bvar(lean_object*); lean_object* l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_9__inferMVarType(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__53(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,6 +195,7 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_M lean_object* l_Nat_foldMAux___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__53___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Meta_isProp___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_WHNF_1__isAuxDef_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__12___rarg(lean_object*, lean_object*, lean_object*); @@ -211,6 +210,7 @@ lean_object* l___private_Init_Lean_Meta_InferType_2__inferAppType___at___private uint8_t lean_is_class(lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__35(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_3__inferConstType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__51(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -224,14 +224,14 @@ lean_object* l_Lean_whnfEasyCases___main___at___private_Init_Lean_Meta_Default_3 uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArgD___main(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__39___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* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Default_2__boolToExpr___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_5__getLevel___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__46(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* l___private_Init_Lean_Meta_Default_3__auxFixpoint___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__43(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -240,10 +240,11 @@ lean_object* l_Lean_Meta_isClassExpensive___at_Lean_Meta_isProp___spec__6(lean_o lean_object* l___private_Init_Lean_Meta_Default_3__auxFixpoint(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_isProp___spec__4(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_isClassQuick___main___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__40___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_8__forallTelescopeReducingAux___at_Lean_Meta_getFunInfo___spec__4___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__39___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); +uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__22___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); @@ -252,7 +253,6 @@ lean_object* l___private_Init_Lean_WHNF_5__toCtorWhenK___at___private_Init_Lean_ lean_object* l_Lean_getStuckMVar___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__19(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_6__inferForallType___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__45(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_4__inferProjType___at_Lean_Meta_isProp___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Meta_Default_1__exprToBool(lean_object*); lean_object* l_Lean_Meta_unfoldDefinitionAux___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); @@ -262,10 +262,12 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___sp lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__22(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_object* l_Lean_Meta_isDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__41___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkBVar(lean_object*); lean_object* l_ReaderT_pure___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__12(lean_object*); lean_object* l___private_Init_Lean_Meta_Default_3__auxFixpoint___main___closed__1; lean_object* l___private_Init_Lean_Meta_InferType_7__inferLambdaType___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__31(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__50(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Meta_Default_1__exprToBool(lean_object* x_1) { @@ -311,7 +313,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_expr_mk_bvar(x_1); +x_2 = l_Lean_mkBVar(x_1); return x_2; } } @@ -321,7 +323,7 @@ _start: if (x_1 == 0) { lean_object* x_2; -x_2 = l_Lean_Expr_inhabited___closed__1; +x_2 = l_Lean_Expr_getAppArgs___closed__1; return x_2; } else @@ -593,12 +595,12 @@ lean_dec(x_1); x_42 = lean_ctor_get(x_27, 1); lean_inc(x_42); lean_dec(x_27); -x_43 = l_Lean_Expr_inhabited; +x_43 = l_Lean_Expr_Inhabited; x_44 = lean_array_get(x_43, x_6, x_10); -x_45 = lean_expr_mk_app(x_44, x_24); +x_45 = l_Lean_mkApp(x_44, x_24); x_46 = lean_unsigned_to_nat(1u); x_47 = lean_nat_add(x_9, x_46); -x_48 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_11, x_6, x_47, x_45); +x_48 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_11, x_6, x_47, x_45); lean_dec(x_11); x_49 = l_Lean_whnfCore___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__2(x_48, x_7, x_42); return x_49; @@ -1302,16 +1304,16 @@ if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_expr_mk_const(x_20, x_8); +x_21 = l_Lean_mkConst(x_20, x_8); x_22 = lean_unsigned_to_nat(0u); x_23 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_22); -x_24 = l_Lean_Expr_inhabited___closed__1; +x_24 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_23); x_25 = lean_mk_array(x_23, x_24); x_26 = lean_unsigned_to_nat(1u); x_27 = lean_nat_sub(x_23, x_26); lean_dec(x_23); -x_28 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_25, x_27); +x_28 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_25, x_27); x_29 = l_Array_shrink___main___rarg(x_28, x_3); x_30 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_29, x_29, x_22, x_21); lean_dec(x_29); @@ -1324,16 +1326,16 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean x_31 = lean_ctor_get(x_10, 0); lean_inc(x_31); lean_dec(x_10); -x_32 = lean_expr_mk_const(x_31, x_8); +x_32 = l_Lean_mkConst(x_31, x_8); x_33 = lean_unsigned_to_nat(0u); x_34 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_33); -x_35 = l_Lean_Expr_inhabited___closed__1; +x_35 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_34); x_36 = lean_mk_array(x_34, x_35); x_37 = lean_unsigned_to_nat(1u); x_38 = lean_nat_sub(x_34, x_37); lean_dec(x_34); -x_39 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_36, x_38); +x_39 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_36, x_38); x_40 = l_Array_shrink___main___rarg(x_39, x_3); x_41 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_40, x_40, x_33, x_32); lean_dec(x_40); @@ -1358,16 +1360,16 @@ if (lean_is_exclusive(x_10)) { lean_dec_ref(x_10); x_45 = lean_box(0); } -x_46 = lean_expr_mk_const(x_44, x_8); +x_46 = l_Lean_mkConst(x_44, x_8); x_47 = lean_unsigned_to_nat(0u); x_48 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_47); -x_49 = l_Lean_Expr_inhabited___closed__1; +x_49 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_48); x_50 = lean_mk_array(x_48, x_49); x_51 = lean_unsigned_to_nat(1u); x_52 = lean_nat_sub(x_48, x_51); lean_dec(x_48); -x_53 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_50, x_52); +x_53 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_50, x_52); x_54 = l_Array_shrink___main___rarg(x_53, x_3); x_55 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_54, x_54, x_47, x_46); lean_dec(x_54); @@ -1440,7 +1442,7 @@ else { lean_object* x_7; uint8_t x_8; x_7 = lean_array_fget(x_2, x_4); -x_8 = lean_expr_has_expr_mvar(x_7); +x_8 = l_Lean_Expr_hasExprMVar(x_7); lean_dec(x_7); if (x_8 == 0) { @@ -1475,7 +1477,7 @@ else { lean_object* x_8; uint8_t x_9; x_8 = lean_array_fget(x_3, x_5); -x_9 = lean_expr_has_expr_mvar(x_8); +x_9 = l_Lean_Expr_hasExprMVar(x_8); lean_dec(x_8); if (x_9 == 0) { @@ -1541,7 +1543,7 @@ return x_9; else { uint8_t x_17; -x_17 = lean_expr_has_expr_mvar(x_11); +x_17 = l_Lean_Expr_hasExprMVar(x_11); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -1673,14 +1675,14 @@ else lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; x_43 = lean_unsigned_to_nat(0u); x_44 = l_Lean_Expr_getAppNumArgsAux___main(x_11, x_43); -x_45 = l_Lean_Expr_inhabited___closed__1; +x_45 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_44); x_46 = lean_mk_array(x_44, x_45); x_47 = lean_unsigned_to_nat(1u); x_48 = lean_nat_sub(x_44, x_47); lean_dec(x_44); lean_inc(x_11); -x_49 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_11, x_46, x_48); +x_49 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_11, x_46, x_48); x_50 = lean_ctor_get(x_1, 2); lean_inc(x_50); lean_dec(x_1); @@ -1999,7 +2001,7 @@ return x_111; else { uint8_t x_112; -x_112 = lean_expr_has_expr_mvar(x_105); +x_112 = l_Lean_Expr_hasExprMVar(x_105); if (x_112 == 0) { lean_object* x_113; lean_object* x_114; lean_object* x_115; @@ -2130,14 +2132,14 @@ else lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; x_135 = lean_unsigned_to_nat(0u); x_136 = l_Lean_Expr_getAppNumArgsAux___main(x_105, x_135); -x_137 = l_Lean_Expr_inhabited___closed__1; +x_137 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_136); x_138 = lean_mk_array(x_136, x_137); x_139 = lean_unsigned_to_nat(1u); x_140 = lean_nat_sub(x_136, x_139); lean_dec(x_136); lean_inc(x_105); -x_141 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_105, x_138, x_140); +x_141 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_105, x_138, x_140); x_142 = lean_ctor_get(x_1, 2); lean_inc(x_142); lean_dec(x_1); @@ -2582,13 +2584,13 @@ lean_inc(x_69); lean_dec(x_64); x_70 = lean_unsigned_to_nat(0u); x_71 = l_Lean_Expr_getAppNumArgsAux___main(x_63, x_70); -x_72 = l_Lean_Expr_inhabited___closed__1; +x_72 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_71); x_73 = lean_mk_array(x_71, x_72); x_74 = lean_unsigned_to_nat(1u); x_75 = lean_nat_sub(x_71, x_74); lean_dec(x_71); -x_76 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_63, x_73, x_75); +x_76 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_63, x_73, x_75); x_77 = l_List_lengthAux___main___rarg(x_5, x_70); x_78 = lean_ctor_get(x_4, 0); lean_inc(x_78); @@ -2649,7 +2651,7 @@ lean_dec(x_4); x_92 = lean_nat_add(x_90, x_91); lean_dec(x_91); lean_dec(x_90); -x_93 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_92, x_6, x_70, x_87); +x_93 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_92, x_6, x_70, x_87); lean_dec(x_92); x_94 = lean_array_get_size(x_76); x_95 = lean_ctor_get(x_69, 1); @@ -2657,12 +2659,12 @@ lean_inc(x_95); lean_dec(x_69); x_96 = lean_nat_sub(x_94, x_95); lean_dec(x_95); -x_97 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_94, x_76, x_96, x_93); +x_97 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_94, x_76, x_96, x_93); lean_dec(x_76); lean_dec(x_94); x_98 = lean_nat_add(x_9, x_74); lean_dec(x_9); -x_99 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_10, x_6, x_98, x_97); +x_99 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_10, x_6, x_98, x_97); lean_dec(x_10); x_100 = l_Lean_whnfCore___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__2(x_99, x_7, x_19); return x_100; @@ -2788,13 +2790,13 @@ lean_inc(x_29); lean_dec(x_24); x_30 = lean_unsigned_to_nat(0u); x_31 = l_Lean_Expr_getAppNumArgsAux___main(x_23, x_30); -x_32 = l_Lean_Expr_inhabited___closed__1; +x_32 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_31); x_33 = lean_mk_array(x_31, x_32); x_34 = lean_unsigned_to_nat(1u); x_35 = lean_nat_sub(x_31, x_34); lean_dec(x_31); -x_36 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_23, x_33, x_35); +x_36 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_23, x_33, x_35); x_37 = l_List_lengthAux___main___rarg(x_5, x_30); x_38 = lean_ctor_get(x_4, 0); lean_inc(x_38); @@ -2864,7 +2866,7 @@ lean_dec(x_4); x_52 = lean_nat_add(x_50, x_51); lean_dec(x_51); lean_dec(x_50); -x_53 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_52, x_6, x_30, x_47); +x_53 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_52, x_6, x_30, x_47); lean_dec(x_52); x_54 = lean_array_get_size(x_36); x_55 = lean_ctor_get(x_29, 1); @@ -2872,12 +2874,12 @@ lean_inc(x_55); lean_dec(x_29); x_56 = lean_nat_sub(x_54, x_55); lean_dec(x_55); -x_57 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_54, x_36, x_56, x_53); +x_57 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_54, x_36, x_56, x_53); lean_dec(x_36); lean_dec(x_54); x_58 = lean_nat_add(x_9, x_34); lean_dec(x_9); -x_59 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_10, x_6, x_58, x_57); +x_59 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_10, x_6, x_58, x_57); lean_dec(x_10); x_60 = l_Lean_whnfCore___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__2(x_59, x_7, x_22); return x_60; @@ -2981,7 +2983,7 @@ case 0: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_dec(x_2); -x_10 = l_Lean_Expr_inhabited; +x_10 = l_Lean_Expr_Inhabited; x_11 = l_monadInhabited___rarg(x_1, x_10); x_12 = l_unreachable_x21___rarg(x_11); x_13 = lean_apply_2(x_12, x_3, x_4); @@ -3211,7 +3213,7 @@ x_63 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_62); x_64 = lean_mk_empty_array_with_capacity(x_63); lean_dec(x_63); lean_inc(x_2); -x_65 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_64); +x_65 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_64); x_66 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__3(x_2, x_26, x_29, x_46, x_33, x_65, x_3, x_61); lean_dec(x_29); lean_dec(x_26); @@ -3229,14 +3231,14 @@ lean_inc(x_68); lean_dec(x_46); x_69 = lean_unsigned_to_nat(0u); x_70 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_69); -x_71 = l_Lean_Expr_inhabited___closed__1; +x_71 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_70); x_72 = lean_mk_array(x_70, x_71); x_73 = lean_unsigned_to_nat(1u); x_74 = lean_nat_sub(x_70, x_73); lean_dec(x_70); lean_inc(x_2); -x_75 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_72, x_74); +x_75 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_72, x_74); x_76 = l_Lean_reduceQuotRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__4(x_2, x_26, x_29, x_68, x_33, x_75, x_3, x_67); lean_dec(x_75); lean_dec(x_33); @@ -3256,14 +3258,14 @@ lean_inc(x_78); lean_dec(x_46); x_79 = lean_unsigned_to_nat(0u); x_80 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_79); -x_81 = l_Lean_Expr_inhabited___closed__1; +x_81 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_80); x_82 = lean_mk_array(x_80, x_81); x_83 = lean_unsigned_to_nat(1u); x_84 = lean_nat_sub(x_80, x_83); lean_dec(x_80); lean_inc(x_2); -x_85 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_82, x_84); +x_85 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_82, x_84); x_86 = l_Lean_reduceRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__5(x_2, x_26, x_29, x_78, x_33, x_85, x_3, x_77); lean_dec(x_85); lean_dec(x_29); @@ -3390,7 +3392,7 @@ x_102 = lean_unsigned_to_nat(0u); x_103 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_102); x_104 = lean_mk_empty_array_with_capacity(x_103); lean_dec(x_103); -x_105 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_104); +x_105 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_104); x_106 = l_Lean_Expr_betaRev(x_26, x_105); lean_dec(x_26); x_107 = l_Lean_whnfCore___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__2(x_106, x_3, x_30); @@ -3544,7 +3546,7 @@ x_136 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_135); x_137 = lean_mk_empty_array_with_capacity(x_136); lean_dec(x_136); lean_inc(x_2); -x_138 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_137); +x_138 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_137); x_139 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__3(x_2, x_26, x_108, x_122, x_112, x_138, x_3, x_134); lean_dec(x_108); lean_dec(x_26); @@ -3562,14 +3564,14 @@ lean_inc(x_141); lean_dec(x_122); x_142 = lean_unsigned_to_nat(0u); x_143 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_142); -x_144 = l_Lean_Expr_inhabited___closed__1; +x_144 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_143); x_145 = lean_mk_array(x_143, x_144); x_146 = lean_unsigned_to_nat(1u); x_147 = lean_nat_sub(x_143, x_146); lean_dec(x_143); lean_inc(x_2); -x_148 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_145, x_147); +x_148 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_145, x_147); x_149 = l_Lean_reduceQuotRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__4(x_2, x_26, x_108, x_141, x_112, x_148, x_3, x_140); lean_dec(x_148); lean_dec(x_112); @@ -3589,14 +3591,14 @@ lean_inc(x_151); lean_dec(x_122); x_152 = lean_unsigned_to_nat(0u); x_153 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_152); -x_154 = l_Lean_Expr_inhabited___closed__1; +x_154 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_153); x_155 = lean_mk_array(x_153, x_154); x_156 = lean_unsigned_to_nat(1u); x_157 = lean_nat_sub(x_153, x_156); lean_dec(x_153); lean_inc(x_2); -x_158 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_155, x_157); +x_158 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_155, x_157); x_159 = l_Lean_reduceRec___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__5(x_2, x_26, x_108, x_151, x_112, x_158, x_3, x_150); lean_dec(x_158); lean_dec(x_108); @@ -3717,7 +3719,7 @@ x_174 = lean_unsigned_to_nat(0u); x_175 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_174); x_176 = lean_mk_empty_array_with_capacity(x_175); lean_dec(x_175); -x_177 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_176); +x_177 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_176); x_178 = l_Lean_Expr_betaRev(x_26, x_177); lean_dec(x_26); x_179 = l_Lean_whnfCore___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__2(x_178, x_3, x_109); @@ -4161,11 +4163,21 @@ return x_270; } } } +case 12: +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +lean_dec(x_2); +x_271 = l_Lean_Expr_Inhabited; +x_272 = l_monadInhabited___rarg(x_1, x_271); +x_273 = l_unreachable_x21___rarg(x_272); +x_274 = lean_apply_2(x_273, x_3, x_4); +return x_274; +} default: { -lean_object* x_271; -x_271 = lean_box(0); -x_5 = x_271; +lean_object* x_275; +x_275 = lean_box(0); +x_5 = x_275; goto block_9; } } @@ -4587,13 +4599,13 @@ lean_inc(x_23); lean_dec(x_21); x_24 = lean_unsigned_to_nat(0u); x_25 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_24); -x_26 = l_Lean_Expr_inhabited___closed__1; +x_26 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_25); x_27 = lean_mk_array(x_25, x_26); x_28 = lean_unsigned_to_nat(1u); x_29 = lean_nat_sub(x_25, x_28); lean_dec(x_25); -x_30 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_27, x_29); +x_30 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_27, x_29); x_31 = l_Lean_isQuotRecStuck___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__20(x_23, x_11, x_30, x_2, x_22); lean_dec(x_30); lean_dec(x_11); @@ -4611,13 +4623,13 @@ lean_inc(x_33); lean_dec(x_21); x_34 = lean_unsigned_to_nat(0u); x_35 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_34); -x_36 = l_Lean_Expr_inhabited___closed__1; +x_36 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_35); x_37 = lean_mk_array(x_35, x_36); x_38 = lean_unsigned_to_nat(1u); x_39 = lean_nat_sub(x_35, x_38); lean_dec(x_35); -x_40 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_37, x_39); +x_40 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_37, x_39); x_41 = l_Lean_isRecStuck___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__21(x_33, x_11, x_40, x_2, x_32); lean_dec(x_40); lean_dec(x_11); @@ -5425,7 +5437,7 @@ lean_free_object(x_48); x_54 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_55 = lean_mk_empty_array_with_capacity(x_54); lean_dec(x_54); -x_56 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_55); +x_56 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_55); x_57 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__16(x_1, x_39, x_28, x_56, x_3, x_51); return x_57; } @@ -5455,7 +5467,7 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; x_61 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_62 = lean_mk_empty_array_with_capacity(x_61); lean_dec(x_61); -x_63 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_62); +x_63 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_62); x_64 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__16(x_1, x_39, x_28, x_63, x_3, x_58); return x_64; } @@ -5496,7 +5508,7 @@ lean_free_object(x_48); x_70 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_71 = lean_mk_empty_array_with_capacity(x_70); lean_dec(x_70); -x_72 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_71); +x_72 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_71); x_73 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__17(x_1, x_39, x_28, x_72, x_3, x_67); return x_73; } @@ -5526,7 +5538,7 @@ lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; x_77 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_78 = lean_mk_empty_array_with_capacity(x_77); lean_dec(x_77); -x_79 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_78); +x_79 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_78); x_80 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__17(x_1, x_39, x_28, x_79, x_3, x_74); return x_80; } @@ -5542,7 +5554,7 @@ lean_dec(x_48); x_82 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_83 = lean_mk_empty_array_with_capacity(x_82); lean_dec(x_82); -x_84 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_83); +x_84 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_83); x_85 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__22(x_1, x_65, x_28, x_84, x_3, x_81); return x_85; } @@ -5574,7 +5586,7 @@ lean_free_object(x_48); x_90 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_91 = lean_mk_empty_array_with_capacity(x_90); lean_dec(x_90); -x_92 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_91); +x_92 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_91); x_93 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__23(x_1, x_39, x_28, x_92, x_3, x_87); return x_93; } @@ -5604,7 +5616,7 @@ lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; x_97 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_98 = lean_mk_empty_array_with_capacity(x_97); lean_dec(x_97); -x_99 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_98); +x_99 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_98); x_100 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__23(x_1, x_39, x_28, x_99, x_3, x_94); return x_100; } @@ -5638,7 +5650,7 @@ lean_free_object(x_48); x_105 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_106 = lean_mk_empty_array_with_capacity(x_105); lean_dec(x_105); -x_107 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_106); +x_107 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_106); x_108 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__24(x_1, x_39, x_28, x_107, x_3, x_102); return x_108; } @@ -5668,7 +5680,7 @@ lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; x_112 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_113 = lean_mk_empty_array_with_capacity(x_112); lean_dec(x_112); -x_114 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_113); +x_114 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_113); x_115 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__24(x_1, x_39, x_28, x_114, x_3, x_109); return x_115; } @@ -5702,7 +5714,7 @@ lean_free_object(x_48); x_120 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_121 = lean_mk_empty_array_with_capacity(x_120); lean_dec(x_120); -x_122 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_121); +x_122 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_121); x_123 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__25(x_1, x_39, x_28, x_122, x_3, x_117); return x_123; } @@ -5732,7 +5744,7 @@ lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; x_127 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_128 = lean_mk_empty_array_with_capacity(x_127); lean_dec(x_127); -x_129 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_128); +x_129 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_128); x_130 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__25(x_1, x_39, x_28, x_129, x_3, x_124); return x_130; } @@ -5766,7 +5778,7 @@ lean_free_object(x_48); x_135 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_136 = lean_mk_empty_array_with_capacity(x_135); lean_dec(x_135); -x_137 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_136); +x_137 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_136); x_138 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__26(x_1, x_39, x_28, x_137, x_3, x_132); return x_138; } @@ -5796,7 +5808,7 @@ lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; x_142 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_143 = lean_mk_empty_array_with_capacity(x_142); lean_dec(x_142); -x_144 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_143); +x_144 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_143); x_145 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__26(x_1, x_39, x_28, x_144, x_3, x_139); return x_145; } @@ -5830,7 +5842,7 @@ lean_free_object(x_48); x_150 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_151 = lean_mk_empty_array_with_capacity(x_150); lean_dec(x_150); -x_152 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_151); +x_152 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_151); x_153 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__27(x_1, x_39, x_28, x_152, x_3, x_147); return x_153; } @@ -5860,7 +5872,7 @@ lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; x_157 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_158 = lean_mk_empty_array_with_capacity(x_157); lean_dec(x_157); -x_159 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_158); +x_159 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_158); x_160 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__27(x_1, x_39, x_28, x_159, x_3, x_154); return x_160; } @@ -5894,7 +5906,7 @@ lean_free_object(x_48); x_165 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_166 = lean_mk_empty_array_with_capacity(x_165); lean_dec(x_165); -x_167 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_166); +x_167 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_166); x_168 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__28(x_1, x_39, x_28, x_167, x_3, x_162); return x_168; } @@ -5924,7 +5936,7 @@ lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; x_172 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_41); x_173 = lean_mk_empty_array_with_capacity(x_172); lean_dec(x_172); -x_174 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_173); +x_174 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_173); x_175 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__28(x_1, x_39, x_28, x_174, x_3, x_169); return x_175; } @@ -6040,7 +6052,7 @@ lean_dec(x_194); x_197 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_198 = lean_mk_empty_array_with_capacity(x_197); lean_dec(x_197); -x_199 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_198); +x_199 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_198); x_200 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__16(x_1, x_181, x_28, x_199, x_3, x_193); return x_200; } @@ -6090,7 +6102,7 @@ lean_dec(x_203); x_206 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_207 = lean_mk_empty_array_with_capacity(x_206); lean_dec(x_206); -x_208 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_207); +x_208 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_207); x_209 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__17(x_1, x_181, x_28, x_208, x_3, x_202); return x_209; } @@ -6105,7 +6117,7 @@ lean_dec(x_191); x_211 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_212 = lean_mk_empty_array_with_capacity(x_211); lean_dec(x_211); -x_213 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_212); +x_213 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_212); x_214 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__22(x_1, x_201, x_28, x_213, x_3, x_210); return x_214; } @@ -6147,7 +6159,7 @@ lean_dec(x_216); x_219 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_220 = lean_mk_empty_array_with_capacity(x_219); lean_dec(x_219); -x_221 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_220); +x_221 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_220); x_222 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__23(x_1, x_181, x_28, x_221, x_3, x_215); return x_222; } @@ -6190,7 +6202,7 @@ lean_dec(x_224); x_227 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_228 = lean_mk_empty_array_with_capacity(x_227); lean_dec(x_227); -x_229 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_228); +x_229 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_228); x_230 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__24(x_1, x_181, x_28, x_229, x_3, x_223); return x_230; } @@ -6233,7 +6245,7 @@ lean_dec(x_232); x_235 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_236 = lean_mk_empty_array_with_capacity(x_235); lean_dec(x_235); -x_237 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_236); +x_237 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_236); x_238 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__25(x_1, x_181, x_28, x_237, x_3, x_231); return x_238; } @@ -6276,7 +6288,7 @@ lean_dec(x_240); x_243 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_244 = lean_mk_empty_array_with_capacity(x_243); lean_dec(x_243); -x_245 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_244); +x_245 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_244); x_246 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__26(x_1, x_181, x_28, x_245, x_3, x_239); return x_246; } @@ -6319,7 +6331,7 @@ lean_dec(x_248); x_251 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_252 = lean_mk_empty_array_with_capacity(x_251); lean_dec(x_251); -x_253 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_252); +x_253 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_252); x_254 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__27(x_1, x_181, x_28, x_253, x_3, x_247); return x_254; } @@ -6362,7 +6374,7 @@ lean_dec(x_256); x_259 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_183); x_260 = lean_mk_empty_array_with_capacity(x_259); lean_dec(x_259); -x_261 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_2, x_260); +x_261 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_2, x_260); x_262 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__28(x_1, x_181, x_28, x_261, x_3, x_255); return x_262; } @@ -6468,7 +6480,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Init_Lean_Meta_InferType_1__getForallResultType___closed__1; -x_2 = l_Lean_Expr_inhabited; +x_2 = l_Lean_Expr_Inhabited; x_3 = l_monadInhabited___rarg(x_1, x_2); return x_3; } @@ -6781,14 +6793,23 @@ return x_64; } } } +case 12: +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_1); +x_65 = l_Lean_whnfEasyCases___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__29___closed__1; +x_66 = l_unreachable_x21___rarg(x_65); +x_67 = lean_apply_2(x_66, x_2, x_3); +return x_67; +} default: { -lean_object* x_65; +lean_object* x_68; lean_dec(x_2); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_1); -lean_ctor_set(x_65, 1, x_3); -return x_65; +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_1); +lean_ctor_set(x_68, 1, x_3); +return x_68; } } } @@ -6873,6 +6894,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_LocalDecl_type(x_21); lean_dec(x_21); +lean_inc(x_4); lean_inc(x_23); x_24 = l_Lean_Meta_isClassQuick___main(x_23, x_4, x_22); if (lean_obj_tag(x_24) == 0) @@ -7248,6 +7270,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_11); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_11, x_24); if (lean_obj_tag(x_26) == 0) @@ -7570,6 +7593,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_LocalDecl_type(x_21); lean_dec(x_21); +lean_inc(x_4); lean_inc(x_23); x_24 = l_Lean_Meta_isClassQuick___main(x_23, x_4, x_22); if (lean_obj_tag(x_24) == 0) @@ -7811,90 +7835,91 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { -lean_object* x_22; uint8_t 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_22; lean_object* x_23; lean_object* x_24; uint64_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_24 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 2); lean_inc(x_24); -x_25 = lean_ctor_get(x_6, 2); -lean_inc(x_25); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); lean_dec(x_6); x_26 = lean_array_get_size(x_4); lean_inc(x_4); -x_27 = lean_expr_instantiate_rev_range(x_24, x_5, x_26, x_4); +x_27 = lean_expr_instantiate_rev_range(x_23, x_5, x_26, x_4); lean_dec(x_26); -lean_dec(x_24); +lean_dec(x_23); x_28 = l_Lean_Meta_mkFreshId___rarg(x_8); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); +x_31 = (uint8_t)((x_25 << 24) >> 61); lean_inc(x_29); -x_31 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_23); -x_32 = lean_expr_mk_fvar(x_29); -x_33 = lean_array_push(x_4, x_32); +x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); +x_33 = l_Lean_mkFVar(x_29); +x_34 = lean_array_push(x_4, x_33); if (lean_obj_tag(x_2) == 0) { -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_2, 0); -lean_inc(x_35); -x_36 = lean_array_get_size(x_33); -x_37 = lean_nat_dec_lt(x_36, x_35); -lean_dec(x_35); -if (x_37 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_34); +x_38 = lean_nat_dec_lt(x_37, x_36); +lean_dec(x_36); +if (x_38 == 0) { -lean_object* x_38; uint8_t x_39; +lean_object* x_39; uint8_t x_40; lean_dec(x_2); -lean_inc(x_33); -x_38 = lean_expr_instantiate_rev_range(x_25, x_5, x_36, x_33); -lean_dec(x_36); -lean_dec(x_25); -x_39 = !lean_is_exclusive(x_7); -if (x_39 == 0) +lean_inc(x_34); +x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); +lean_dec(x_37); +lean_dec(x_24); +x_40 = !lean_is_exclusive(x_7); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_7, 1); -lean_dec(x_40); -lean_ctor_set(x_7, 1, x_31); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__40(x_38, x_33, x_5, x_7, x_30); -lean_dec(x_33); -lean_dec(x_38); -return x_41; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_7, 1); +lean_dec(x_41); +lean_ctor_set(x_7, 1, x_32); +x_42 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__40(x_39, x_34, x_5, x_7, x_30); +lean_dec(x_34); +lean_dec(x_39); +return x_42; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_7, 0); -x_43 = lean_ctor_get(x_7, 2); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 2); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); lean_dec(x_7); -x_44 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_31); -lean_ctor_set(x_44, 2, x_43); -x_45 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__40(x_38, x_33, x_5, x_44, x_30); -lean_dec(x_33); -lean_dec(x_38); -return x_45; +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_32); +lean_ctor_set(x_45, 2, x_44); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__40(x_39, x_34, x_5, x_45, x_30); +lean_dec(x_34); +lean_dec(x_39); +return x_46; } } else { -lean_dec(x_36); -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +lean_dec(x_37); +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } @@ -7902,9 +7927,9 @@ goto _start; } else { -lean_object* x_47; -x_47 = lean_box(0); -x_9 = x_47; +lean_object* x_48; +x_48 = lean_box(0); +x_9 = x_48; goto block_21; } block_21: @@ -8893,6 +8918,7 @@ lean_inc(x_21); lean_dec(x_19); x_22 = l_Lean_LocalDecl_type(x_20); lean_dec(x_20); +lean_inc(x_5); lean_inc(x_22); x_23 = l_Lean_Meta_isClassQuick___main(x_22, x_5, x_21); if (lean_obj_tag(x_23) == 0) @@ -9141,77 +9167,78 @@ lean_object* x_7; switch (lean_obj_tag(x_4)) { case 6: { -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; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t 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; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_18 = lean_ctor_get(x_4, 0); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*3); -x_20 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_4, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_4, 2); lean_inc(x_20); -x_21 = lean_ctor_get(x_4, 2); -lean_inc(x_21); +x_21 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); lean_dec(x_4); x_22 = lean_array_get_size(x_2); lean_inc(x_2); -x_23 = lean_expr_instantiate_rev_range(x_20, x_3, x_22, x_2); +x_23 = lean_expr_instantiate_rev_range(x_19, x_3, x_22, x_2); lean_dec(x_22); -lean_dec(x_20); +lean_dec(x_19); x_24 = l_Lean_Meta_mkFreshId___rarg(x_6); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); +x_27 = (uint8_t)((x_21 << 24) >> 61); lean_inc(x_25); -x_27 = lean_local_ctx_mk_local_decl(x_1, x_25, x_18, x_23, x_19); -x_28 = lean_expr_mk_fvar(x_25); -x_29 = lean_array_push(x_2, x_28); -x_1 = x_27; -x_2 = x_29; -x_4 = x_21; +x_28 = lean_local_ctx_mk_local_decl(x_1, x_25, x_18, x_23, x_27); +x_29 = l_Lean_mkFVar(x_25); +x_30 = lean_array_push(x_2, x_29); +x_1 = x_28; +x_2 = x_30; +x_4 = x_20; x_6 = x_26; goto _start; } case 8: { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_31 = lean_ctor_get(x_4, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_4, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_32 = lean_ctor_get(x_4, 0); lean_inc(x_32); -x_33 = lean_ctor_get(x_4, 2); +x_33 = lean_ctor_get(x_4, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_4, 3); +x_34 = lean_ctor_get(x_4, 2); lean_inc(x_34); +x_35 = lean_ctor_get(x_4, 3); +lean_inc(x_35); lean_dec(x_4); -x_35 = lean_array_get_size(x_2); +x_36 = lean_array_get_size(x_2); lean_inc(x_2); -x_36 = lean_expr_instantiate_rev_range(x_32, x_3, x_35, x_2); -lean_dec(x_32); -lean_inc(x_2); -x_37 = lean_expr_instantiate_rev_range(x_33, x_3, x_35, x_2); -lean_dec(x_35); +x_37 = lean_expr_instantiate_rev_range(x_33, x_3, x_36, x_2); lean_dec(x_33); -x_38 = l_Lean_Meta_mkFreshId___rarg(x_6); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_2); +x_38 = lean_expr_instantiate_rev_range(x_34, x_3, x_36, x_2); +lean_dec(x_36); +lean_dec(x_34); +x_39 = l_Lean_Meta_mkFreshId___rarg(x_6); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_39); -x_41 = lean_local_ctx_mk_let_decl(x_1, x_39, x_31, x_36, x_37); -x_42 = lean_expr_mk_fvar(x_39); -x_43 = lean_array_push(x_2, x_42); -x_1 = x_41; -x_2 = x_43; -x_4 = x_34; -x_6 = x_40; +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_40); +x_42 = lean_local_ctx_mk_let_decl(x_1, x_40, x_32, x_37, x_38); +x_43 = l_Lean_mkFVar(x_40); +x_44 = lean_array_push(x_2, x_43); +x_1 = x_42; +x_2 = x_44; +x_4 = x_35; +x_6 = x_41; goto _start; } default: { -lean_object* x_45; -x_45 = lean_box(0); -x_7 = x_45; +lean_object* x_46; +x_46 = lean_box(0); +x_7 = x_46; goto block_17; } } @@ -10071,7 +10098,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = lean_level_mk_mvar(x_23); lean_inc(x_25); -x_26 = lean_expr_mk_sort(x_25); +x_26 = l_Lean_mkSort(x_25); x_27 = l_Lean_Meta_assignExprMVar(x_17, x_26, x_2, x_24); lean_dec(x_2); if (lean_obj_tag(x_27) == 0) @@ -10378,7 +10405,7 @@ lean_inc(x_95); lean_dec(x_93); x_96 = lean_level_mk_mvar(x_94); lean_inc(x_96); -x_97 = lean_expr_mk_sort(x_96); +x_97 = l_Lean_mkSort(x_96); x_98 = l_Lean_Meta_assignExprMVar(x_88, x_97, x_2, x_95); lean_dec(x_2); if (lean_obj_tag(x_98) == 0) @@ -10752,7 +10779,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = l_Lean_Level_normalize___main(x_15); lean_dec(x_15); -x_17 = lean_expr_mk_sort(x_16); +x_17 = l_Lean_mkSort(x_16); lean_ctor_set(x_13, 0, x_17); return x_13; } @@ -10766,7 +10793,7 @@ lean_inc(x_18); lean_dec(x_13); x_20 = l_Lean_Level_normalize___main(x_18); lean_dec(x_18); -x_21 = lean_expr_mk_sort(x_20); +x_21 = l_Lean_mkSort(x_20); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_19); @@ -10838,6 +10865,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = l_Lean_LocalDecl_type(x_34); lean_dec(x_34); +lean_inc(x_6); lean_inc(x_36); x_37 = l_Lean_Meta_isClassQuick___main(x_36, x_6, x_35); if (lean_obj_tag(x_37) == 0) @@ -11112,7 +11140,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l_Lean_Level_normalize___main(x_16); lean_dec(x_16); -x_18 = lean_expr_mk_sort(x_17); +x_18 = l_Lean_mkSort(x_17); lean_ctor_set(x_14, 0, x_18); return x_14; } @@ -11126,7 +11154,7 @@ lean_inc(x_19); lean_dec(x_14); x_21 = l_Lean_Level_normalize___main(x_19); lean_dec(x_19); -x_22 = lean_expr_mk_sort(x_21); +x_22 = l_Lean_mkSort(x_21); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_20); @@ -11247,6 +11275,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_11); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_11, x_24); if (lean_obj_tag(x_26) == 0) @@ -11529,7 +11558,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = l_Lean_Level_normalize___main(x_15); lean_dec(x_15); -x_17 = lean_expr_mk_sort(x_16); +x_17 = l_Lean_mkSort(x_16); lean_ctor_set(x_13, 0, x_17); return x_13; } @@ -11543,7 +11572,7 @@ lean_inc(x_18); lean_dec(x_13); x_20 = l_Lean_Level_normalize___main(x_18); lean_dec(x_18); -x_21 = lean_expr_mk_sort(x_20); +x_21 = l_Lean_mkSort(x_20); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_19); @@ -11615,6 +11644,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = l_Lean_LocalDecl_type(x_34); lean_dec(x_34); +lean_inc(x_6); lean_inc(x_36); x_37 = l_Lean_Meta_isClassQuick___main(x_36, x_6, x_35); if (lean_obj_tag(x_37) == 0) @@ -11862,87 +11892,88 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { -lean_object* x_22; uint8_t 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_22; lean_object* x_23; lean_object* x_24; uint64_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_24 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 2); lean_inc(x_24); -x_25 = lean_ctor_get(x_6, 2); -lean_inc(x_25); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); lean_dec(x_6); x_26 = lean_array_get_size(x_4); lean_inc(x_4); -x_27 = lean_expr_instantiate_rev_range(x_24, x_5, x_26, x_4); +x_27 = lean_expr_instantiate_rev_range(x_23, x_5, x_26, x_4); lean_dec(x_26); -lean_dec(x_24); +lean_dec(x_23); x_28 = l_Lean_Meta_mkFreshId___rarg(x_8); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); +x_31 = (uint8_t)((x_25 << 24) >> 61); lean_inc(x_29); -x_31 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_23); -x_32 = lean_expr_mk_fvar(x_29); -x_33 = lean_array_push(x_4, x_32); +x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); +x_33 = l_Lean_mkFVar(x_29); +x_34 = lean_array_push(x_4, x_33); if (lean_obj_tag(x_2) == 0) { -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_2, 0); -lean_inc(x_35); -x_36 = lean_array_get_size(x_33); -x_37 = lean_nat_dec_lt(x_36, x_35); -lean_dec(x_35); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -lean_dec(x_2); -lean_inc(x_33); -x_38 = lean_expr_instantiate_rev_range(x_25, x_5, x_36, x_33); -lean_dec(x_25); -x_39 = !lean_is_exclusive(x_7); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_7, 1); -lean_dec(x_40); -lean_ctor_set(x_7, 1, x_31); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__51(x_33, x_36, x_38, x_33, x_5, x_7, x_30); -lean_dec(x_33); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_7, 0); -x_43 = lean_ctor_get(x_7, 2); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_7); -x_44 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_31); -lean_ctor_set(x_44, 2, x_43); -x_45 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__51(x_33, x_36, x_38, x_33, x_5, x_44, x_30); -lean_dec(x_33); -return x_45; -} -} -else -{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_34); +x_38 = lean_nat_dec_lt(x_37, x_36); lean_dec(x_36); -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +lean_dec(x_2); +lean_inc(x_34); +x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); +lean_dec(x_24); +x_40 = !lean_is_exclusive(x_7); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_7, 1); +lean_dec(x_41); +lean_ctor_set(x_7, 1, x_32); +x_42 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__51(x_34, x_37, x_39, x_34, x_5, x_7, x_30); +lean_dec(x_34); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 2); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_7); +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_32); +lean_ctor_set(x_45, 2, x_44); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_Default_3__auxFixpoint___main___spec__51(x_34, x_37, x_39, x_34, x_5, x_45, x_30); +lean_dec(x_34); +return x_46; +} +} +else +{ +lean_dec(x_37); +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } @@ -11950,9 +11981,9 @@ goto _start; } else { -lean_object* x_47; -x_47 = lean_box(0); -x_9 = x_47; +lean_object* x_48; +x_48 = lean_box(0); +x_9 = x_48; goto block_21; } block_21: @@ -12288,7 +12319,7 @@ else lean_object* x_28; lean_object* x_29; lean_inc(x_3); lean_inc(x_1); -x_28 = lean_expr_mk_proj(x_1, x_14, x_3); +x_28 = l_Lean_mkProj(x_1, x_14, x_3); x_29 = lean_expr_instantiate1(x_25, x_28); lean_dec(x_28); lean_dec(x_25); @@ -12441,7 +12472,7 @@ else lean_object* x_63; lean_object* x_64; lean_inc(x_3); lean_inc(x_1); -x_63 = lean_expr_mk_proj(x_1, x_14, x_3); +x_63 = l_Lean_mkProj(x_1, x_14, x_3); x_64 = lean_expr_instantiate1(x_60, x_63); lean_dec(x_63); lean_dec(x_60); @@ -12672,13 +12703,13 @@ lean_inc(x_35); lean_dec(x_30); x_36 = lean_unsigned_to_nat(0u); x_37 = l_Lean_Expr_getAppNumArgsAux___main(x_19, x_36); -x_38 = l_Lean_Expr_inhabited___closed__1; +x_38 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_37); x_39 = lean_mk_array(x_37, x_38); x_40 = lean_unsigned_to_nat(1u); x_41 = lean_nat_sub(x_37, x_40); lean_dec(x_37); -x_42 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_19, x_39, x_41); +x_42 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_19, x_39, x_41); x_43 = lean_array_get_size(x_42); x_44 = lean_nat_dec_eq(x_34, x_43); lean_dec(x_43); @@ -13108,13 +13139,13 @@ lean_inc(x_116); lean_dec(x_110); x_117 = lean_unsigned_to_nat(0u); x_118 = l_Lean_Expr_getAppNumArgsAux___main(x_98, x_117); -x_119 = l_Lean_Expr_inhabited___closed__1; +x_119 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_118); x_120 = lean_mk_array(x_118, x_119); x_121 = lean_unsigned_to_nat(1u); x_122 = lean_nat_sub(x_118, x_121); lean_dec(x_118); -x_123 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_98, x_120, x_122); +x_123 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_98, x_120, x_122); x_124 = lean_array_get_size(x_123); x_125 = lean_nat_dec_eq(x_115, x_124); lean_dec(x_124); @@ -13608,13 +13639,13 @@ lean_inc(x_209); lean_dec(x_203); x_210 = lean_unsigned_to_nat(0u); x_211 = l_Lean_Expr_getAppNumArgsAux___main(x_190, x_210); -x_212 = l_Lean_Expr_inhabited___closed__1; +x_212 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_211); x_213 = lean_mk_array(x_211, x_212); x_214 = lean_unsigned_to_nat(1u); x_215 = lean_nat_sub(x_211, x_214); lean_dec(x_211); -x_216 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_190, x_213, x_215); +x_216 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_190, x_213, x_215); x_217 = lean_array_get_size(x_216); x_218 = lean_nat_dec_eq(x_208, x_217); lean_dec(x_217); @@ -14069,7 +14100,7 @@ x_62 = lean_ctor_get(x_1, 0); lean_inc(x_62); lean_dec(x_1); x_63 = lean_level_mk_succ(x_62); -x_64 = lean_expr_mk_sort(x_63); +x_64 = l_Lean_mkSort(x_63); x_65 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_3); @@ -14096,14 +14127,14 @@ x_70 = l_Lean_Expr_getAppFn___main(x_69); lean_dec(x_69); x_71 = lean_unsigned_to_nat(0u); x_72 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_71); -x_73 = l_Lean_Expr_inhabited___closed__1; +x_73 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_72); x_74 = lean_mk_array(x_72, x_73); x_75 = lean_unsigned_to_nat(1u); x_76 = lean_nat_sub(x_72, x_75); lean_dec(x_72); lean_inc(x_1); -x_77 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_74, x_76); +x_77 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_74, x_76); x_78 = lean_ctor_get(x_3, 2); lean_inc(x_78); x_79 = lean_ctor_get(x_78, 0); @@ -14769,11 +14800,20 @@ lean_ctor_set(x_232, 1, x_3); return x_232; } } +case 12: +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_1); +x_233 = l_Lean_Meta_isClassQuick___main___closed__1; +x_234 = l_unreachable_x21___rarg(x_233); +x_235 = lean_apply_2(x_234, x_2, x_3); +return x_235; +} default: { -lean_object* x_233; -x_233 = lean_box(0); -x_4 = x_233; +lean_object* x_236; +x_236 = lean_box(0); +x_4 = x_236; goto block_54; } } @@ -15479,6 +15519,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_LocalDecl_type(x_21); lean_dec(x_21); +lean_inc(x_4); lean_inc(x_23); x_24 = l_Lean_Meta_isClassQuick___main(x_23, x_4, x_22); if (lean_obj_tag(x_24) == 0) @@ -15843,6 +15884,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_11); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_11, x_24); if (lean_obj_tag(x_26) == 0) @@ -16165,6 +16207,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_LocalDecl_type(x_21); lean_dec(x_21); +lean_inc(x_4); lean_inc(x_23); x_24 = l_Lean_Meta_isClassQuick___main(x_23, x_4, x_22); if (lean_obj_tag(x_24) == 0) @@ -16406,90 +16449,91 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { -lean_object* x_22; uint8_t 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_22; lean_object* x_23; lean_object* x_24; uint64_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_24 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 2); lean_inc(x_24); -x_25 = lean_ctor_get(x_6, 2); -lean_inc(x_25); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); lean_dec(x_6); x_26 = lean_array_get_size(x_4); lean_inc(x_4); -x_27 = lean_expr_instantiate_rev_range(x_24, x_5, x_26, x_4); +x_27 = lean_expr_instantiate_rev_range(x_23, x_5, x_26, x_4); lean_dec(x_26); -lean_dec(x_24); +lean_dec(x_23); x_28 = l_Lean_Meta_mkFreshId___rarg(x_8); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); +x_31 = (uint8_t)((x_25 << 24) >> 61); lean_inc(x_29); -x_31 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_23); -x_32 = lean_expr_mk_fvar(x_29); -x_33 = lean_array_push(x_4, x_32); +x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); +x_33 = l_Lean_mkFVar(x_29); +x_34 = lean_array_push(x_4, x_33); if (lean_obj_tag(x_2) == 0) { -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_2, 0); -lean_inc(x_35); -x_36 = lean_array_get_size(x_33); -x_37 = lean_nat_dec_lt(x_36, x_35); -lean_dec(x_35); -if (x_37 == 0) +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_34); +x_38 = lean_nat_dec_lt(x_37, x_36); +lean_dec(x_36); +if (x_38 == 0) { -lean_object* x_38; uint8_t x_39; +lean_object* x_39; uint8_t x_40; lean_dec(x_2); -lean_inc(x_33); -x_38 = lean_expr_instantiate_rev_range(x_25, x_5, x_36, x_33); -lean_dec(x_36); -lean_dec(x_25); -x_39 = !lean_is_exclusive(x_7); -if (x_39 == 0) +lean_inc(x_34); +x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); +lean_dec(x_37); +lean_dec(x_24); +x_40 = !lean_is_exclusive(x_7); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_7, 1); -lean_dec(x_40); -lean_ctor_set(x_7, 1, x_31); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__12(x_38, x_33, x_5, x_7, x_30); -lean_dec(x_33); -lean_dec(x_38); -return x_41; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_7, 1); +lean_dec(x_41); +lean_ctor_set(x_7, 1, x_32); +x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__12(x_39, x_34, x_5, x_7, x_30); +lean_dec(x_34); +lean_dec(x_39); +return x_42; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_7, 0); -x_43 = lean_ctor_get(x_7, 2); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 2); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); lean_dec(x_7); -x_44 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_31); -lean_ctor_set(x_44, 2, x_43); -x_45 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__12(x_38, x_33, x_5, x_44, x_30); -lean_dec(x_33); -lean_dec(x_38); -return x_45; +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_32); +lean_ctor_set(x_45, 2, x_44); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__12(x_39, x_34, x_5, x_45, x_30); +lean_dec(x_34); +lean_dec(x_39); +return x_46; } } else { -lean_dec(x_36); -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +lean_dec(x_37); +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } @@ -16497,9 +16541,9 @@ goto _start; } else { -lean_object* x_47; -x_47 = lean_box(0); -x_9 = x_47; +lean_object* x_48; +x_48 = lean_box(0); +x_9 = x_48; goto block_21; } block_21: @@ -17488,6 +17532,7 @@ lean_inc(x_21); lean_dec(x_19); x_22 = l_Lean_LocalDecl_type(x_20); lean_dec(x_20); +lean_inc(x_5); lean_inc(x_22); x_23 = l_Lean_Meta_isClassQuick___main(x_22, x_5, x_21); if (lean_obj_tag(x_23) == 0) @@ -17736,77 +17781,78 @@ lean_object* x_7; switch (lean_obj_tag(x_4)) { case 6: { -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; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t 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; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_18 = lean_ctor_get(x_4, 0); lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*3); -x_20 = lean_ctor_get(x_4, 1); +x_19 = lean_ctor_get(x_4, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_4, 2); lean_inc(x_20); -x_21 = lean_ctor_get(x_4, 2); -lean_inc(x_21); +x_21 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); lean_dec(x_4); x_22 = lean_array_get_size(x_2); lean_inc(x_2); -x_23 = lean_expr_instantiate_rev_range(x_20, x_3, x_22, x_2); +x_23 = lean_expr_instantiate_rev_range(x_19, x_3, x_22, x_2); lean_dec(x_22); -lean_dec(x_20); +lean_dec(x_19); x_24 = l_Lean_Meta_mkFreshId___rarg(x_6); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); lean_dec(x_24); +x_27 = (uint8_t)((x_21 << 24) >> 61); lean_inc(x_25); -x_27 = lean_local_ctx_mk_local_decl(x_1, x_25, x_18, x_23, x_19); -x_28 = lean_expr_mk_fvar(x_25); -x_29 = lean_array_push(x_2, x_28); -x_1 = x_27; -x_2 = x_29; -x_4 = x_21; +x_28 = lean_local_ctx_mk_local_decl(x_1, x_25, x_18, x_23, x_27); +x_29 = l_Lean_mkFVar(x_25); +x_30 = lean_array_push(x_2, x_29); +x_1 = x_28; +x_2 = x_30; +x_4 = x_20; x_6 = x_26; goto _start; } case 8: { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_31 = lean_ctor_get(x_4, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_4, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_32 = lean_ctor_get(x_4, 0); lean_inc(x_32); -x_33 = lean_ctor_get(x_4, 2); +x_33 = lean_ctor_get(x_4, 1); lean_inc(x_33); -x_34 = lean_ctor_get(x_4, 3); +x_34 = lean_ctor_get(x_4, 2); lean_inc(x_34); +x_35 = lean_ctor_get(x_4, 3); +lean_inc(x_35); lean_dec(x_4); -x_35 = lean_array_get_size(x_2); +x_36 = lean_array_get_size(x_2); lean_inc(x_2); -x_36 = lean_expr_instantiate_rev_range(x_32, x_3, x_35, x_2); -lean_dec(x_32); -lean_inc(x_2); -x_37 = lean_expr_instantiate_rev_range(x_33, x_3, x_35, x_2); -lean_dec(x_35); +x_37 = lean_expr_instantiate_rev_range(x_33, x_3, x_36, x_2); lean_dec(x_33); -x_38 = l_Lean_Meta_mkFreshId___rarg(x_6); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_2); +x_38 = lean_expr_instantiate_rev_range(x_34, x_3, x_36, x_2); +lean_dec(x_36); +lean_dec(x_34); +x_39 = l_Lean_Meta_mkFreshId___rarg(x_6); +x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_39); -x_41 = lean_local_ctx_mk_let_decl(x_1, x_39, x_31, x_36, x_37); -x_42 = lean_expr_mk_fvar(x_39); -x_43 = lean_array_push(x_2, x_42); -x_1 = x_41; -x_2 = x_43; -x_4 = x_34; -x_6 = x_40; +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +lean_inc(x_40); +x_42 = lean_local_ctx_mk_let_decl(x_1, x_40, x_32, x_37, x_38); +x_43 = l_Lean_mkFVar(x_40); +x_44 = lean_array_push(x_2, x_43); +x_1 = x_42; +x_2 = x_44; +x_4 = x_35; +x_6 = x_41; goto _start; } default: { -lean_object* x_45; -x_45 = lean_box(0); -x_7 = x_45; +lean_object* x_46; +x_46 = lean_box(0); +x_7 = x_46; goto block_17; } } @@ -18666,7 +18712,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = lean_level_mk_mvar(x_23); lean_inc(x_25); -x_26 = lean_expr_mk_sort(x_25); +x_26 = l_Lean_mkSort(x_25); x_27 = l_Lean_Meta_assignExprMVar(x_17, x_26, x_2, x_24); lean_dec(x_2); if (lean_obj_tag(x_27) == 0) @@ -18973,7 +19019,7 @@ lean_inc(x_95); lean_dec(x_93); x_96 = lean_level_mk_mvar(x_94); lean_inc(x_96); -x_97 = lean_expr_mk_sort(x_96); +x_97 = l_Lean_mkSort(x_96); x_98 = l_Lean_Meta_assignExprMVar(x_88, x_97, x_2, x_95); lean_dec(x_2); if (lean_obj_tag(x_98) == 0) @@ -19347,7 +19393,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = l_Lean_Level_normalize___main(x_15); lean_dec(x_15); -x_17 = lean_expr_mk_sort(x_16); +x_17 = l_Lean_mkSort(x_16); lean_ctor_set(x_13, 0, x_17); return x_13; } @@ -19361,7 +19407,7 @@ lean_inc(x_18); lean_dec(x_13); x_20 = l_Lean_Level_normalize___main(x_18); lean_dec(x_18); -x_21 = lean_expr_mk_sort(x_20); +x_21 = l_Lean_mkSort(x_20); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_19); @@ -19433,6 +19479,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = l_Lean_LocalDecl_type(x_34); lean_dec(x_34); +lean_inc(x_6); lean_inc(x_36); x_37 = l_Lean_Meta_isClassQuick___main(x_36, x_6, x_35); if (lean_obj_tag(x_37) == 0) @@ -19707,7 +19754,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l_Lean_Level_normalize___main(x_16); lean_dec(x_16); -x_18 = lean_expr_mk_sort(x_17); +x_18 = l_Lean_mkSort(x_17); lean_ctor_set(x_14, 0, x_18); return x_14; } @@ -19721,7 +19768,7 @@ lean_inc(x_19); lean_dec(x_14); x_21 = l_Lean_Level_normalize___main(x_19); lean_dec(x_19); -x_22 = lean_expr_mk_sort(x_21); +x_22 = l_Lean_mkSort(x_21); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_20); @@ -19842,6 +19889,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_11); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_11, x_24); if (lean_obj_tag(x_26) == 0) @@ -20124,7 +20172,7 @@ lean_object* x_15; lean_object* x_16; lean_object* x_17; x_15 = lean_ctor_get(x_13, 0); x_16 = l_Lean_Level_normalize___main(x_15); lean_dec(x_15); -x_17 = lean_expr_mk_sort(x_16); +x_17 = l_Lean_mkSort(x_16); lean_ctor_set(x_13, 0, x_17); return x_13; } @@ -20138,7 +20186,7 @@ lean_inc(x_18); lean_dec(x_13); x_20 = l_Lean_Level_normalize___main(x_18); lean_dec(x_18); -x_21 = lean_expr_mk_sort(x_20); +x_21 = l_Lean_mkSort(x_20); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_19); @@ -20210,6 +20258,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = l_Lean_LocalDecl_type(x_34); lean_dec(x_34); +lean_inc(x_6); lean_inc(x_36); x_37 = l_Lean_Meta_isClassQuick___main(x_36, x_6, x_35); if (lean_obj_tag(x_37) == 0) @@ -20457,87 +20506,88 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { -lean_object* x_22; uint8_t 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_22; lean_object* x_23; lean_object* x_24; uint64_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_24 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 2); lean_inc(x_24); -x_25 = lean_ctor_get(x_6, 2); -lean_inc(x_25); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); lean_dec(x_6); x_26 = lean_array_get_size(x_4); lean_inc(x_4); -x_27 = lean_expr_instantiate_rev_range(x_24, x_5, x_26, x_4); +x_27 = lean_expr_instantiate_rev_range(x_23, x_5, x_26, x_4); lean_dec(x_26); -lean_dec(x_24); +lean_dec(x_23); x_28 = l_Lean_Meta_mkFreshId___rarg(x_8); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); +x_31 = (uint8_t)((x_25 << 24) >> 61); lean_inc(x_29); -x_31 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_23); -x_32 = lean_expr_mk_fvar(x_29); -x_33 = lean_array_push(x_4, x_32); +x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); +x_33 = l_Lean_mkFVar(x_29); +x_34 = lean_array_push(x_4, x_33); if (lean_obj_tag(x_2) == 0) { -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_2, 0); -lean_inc(x_35); -x_36 = lean_array_get_size(x_33); -x_37 = lean_nat_dec_lt(x_36, x_35); -lean_dec(x_35); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -lean_dec(x_2); -lean_inc(x_33); -x_38 = lean_expr_instantiate_rev_range(x_25, x_5, x_36, x_33); -lean_dec(x_25); -x_39 = !lean_is_exclusive(x_7); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_7, 1); -lean_dec(x_40); -lean_ctor_set(x_7, 1, x_31); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__23(x_33, x_36, x_38, x_33, x_5, x_7, x_30); -lean_dec(x_33); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_7, 0); -x_43 = lean_ctor_get(x_7, 2); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_7); -x_44 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_31); -lean_ctor_set(x_44, 2, x_43); -x_45 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__23(x_33, x_36, x_38, x_33, x_5, x_44, x_30); -lean_dec(x_33); -return x_45; -} -} -else -{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_34); +x_38 = lean_nat_dec_lt(x_37, x_36); lean_dec(x_36); -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +lean_dec(x_2); +lean_inc(x_34); +x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); +lean_dec(x_24); +x_40 = !lean_is_exclusive(x_7); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_7, 1); +lean_dec(x_41); +lean_ctor_set(x_7, 1, x_32); +x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__23(x_34, x_37, x_39, x_34, x_5, x_7, x_30); +lean_dec(x_34); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 2); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_7); +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_32); +lean_ctor_set(x_45, 2, x_44); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_isProp___spec__23(x_34, x_37, x_39, x_34, x_5, x_45, x_30); +lean_dec(x_34); +return x_46; +} +} +else +{ +lean_dec(x_37); +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } @@ -20545,9 +20595,9 @@ goto _start; } else { -lean_object* x_47; -x_47 = lean_box(0); -x_9 = x_47; +lean_object* x_48; +x_48 = lean_box(0); +x_9 = x_48; goto block_21; } block_21: @@ -20883,7 +20933,7 @@ else lean_object* x_28; lean_object* x_29; lean_inc(x_3); lean_inc(x_1); -x_28 = lean_expr_mk_proj(x_1, x_14, x_3); +x_28 = l_Lean_mkProj(x_1, x_14, x_3); x_29 = lean_expr_instantiate1(x_25, x_28); lean_dec(x_28); lean_dec(x_25); @@ -21036,7 +21086,7 @@ else lean_object* x_63; lean_object* x_64; lean_inc(x_3); lean_inc(x_1); -x_63 = lean_expr_mk_proj(x_1, x_14, x_3); +x_63 = l_Lean_mkProj(x_1, x_14, x_3); x_64 = lean_expr_instantiate1(x_60, x_63); lean_dec(x_63); lean_dec(x_60); @@ -21267,13 +21317,13 @@ lean_inc(x_35); lean_dec(x_30); x_36 = lean_unsigned_to_nat(0u); x_37 = l_Lean_Expr_getAppNumArgsAux___main(x_19, x_36); -x_38 = l_Lean_Expr_inhabited___closed__1; +x_38 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_37); x_39 = lean_mk_array(x_37, x_38); x_40 = lean_unsigned_to_nat(1u); x_41 = lean_nat_sub(x_37, x_40); lean_dec(x_37); -x_42 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_19, x_39, x_41); +x_42 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_19, x_39, x_41); x_43 = lean_array_get_size(x_42); x_44 = lean_nat_dec_eq(x_34, x_43); lean_dec(x_43); @@ -21703,13 +21753,13 @@ lean_inc(x_116); lean_dec(x_110); x_117 = lean_unsigned_to_nat(0u); x_118 = l_Lean_Expr_getAppNumArgsAux___main(x_98, x_117); -x_119 = l_Lean_Expr_inhabited___closed__1; +x_119 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_118); x_120 = lean_mk_array(x_118, x_119); x_121 = lean_unsigned_to_nat(1u); x_122 = lean_nat_sub(x_118, x_121); lean_dec(x_118); -x_123 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_98, x_120, x_122); +x_123 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_98, x_120, x_122); x_124 = lean_array_get_size(x_123); x_125 = lean_nat_dec_eq(x_115, x_124); lean_dec(x_124); @@ -22203,13 +22253,13 @@ lean_inc(x_209); lean_dec(x_203); x_210 = lean_unsigned_to_nat(0u); x_211 = l_Lean_Expr_getAppNumArgsAux___main(x_190, x_210); -x_212 = l_Lean_Expr_inhabited___closed__1; +x_212 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_211); x_213 = lean_mk_array(x_211, x_212); x_214 = lean_unsigned_to_nat(1u); x_215 = lean_nat_sub(x_211, x_214); lean_dec(x_211); -x_216 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_190, x_213, x_215); +x_216 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_190, x_213, x_215); x_217 = lean_array_get_size(x_216); x_218 = lean_nat_dec_eq(x_208, x_217); lean_dec(x_217); @@ -22664,7 +22714,7 @@ x_62 = lean_ctor_get(x_1, 0); lean_inc(x_62); lean_dec(x_1); x_63 = lean_level_mk_succ(x_62); -x_64 = lean_expr_mk_sort(x_63); +x_64 = l_Lean_mkSort(x_63); x_65 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_3); @@ -22691,14 +22741,14 @@ x_70 = l_Lean_Expr_getAppFn___main(x_69); lean_dec(x_69); x_71 = lean_unsigned_to_nat(0u); x_72 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_71); -x_73 = l_Lean_Expr_inhabited___closed__1; +x_73 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_72); x_74 = lean_mk_array(x_72, x_73); x_75 = lean_unsigned_to_nat(1u); x_76 = lean_nat_sub(x_72, x_75); lean_dec(x_72); lean_inc(x_1); -x_77 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_74, x_76); +x_77 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_74, x_76); x_78 = lean_ctor_get(x_3, 2); lean_inc(x_78); x_79 = lean_ctor_get(x_78, 0); @@ -23364,11 +23414,20 @@ lean_ctor_set(x_232, 1, x_3); return x_232; } } +case 12: +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_1); +x_233 = l_Lean_Meta_isClassQuick___main___closed__1; +x_234 = l_unreachable_x21___rarg(x_233); +x_235 = lean_apply_2(x_234, x_2, x_3); +return x_235; +} default: { -lean_object* x_233; -x_233 = lean_box(0); -x_4 = x_233; +lean_object* x_236; +x_236 = lean_box(0); +x_4 = x_236; goto block_54; } } @@ -24136,7 +24195,7 @@ lean_dec(x_3); x_11 = lean_nat_sub(x_2, x_10); x_12 = lean_nat_sub(x_11, x_9); lean_dec(x_11); -x_13 = l_Lean_Expr_inhabited; +x_13 = l_Lean_Expr_Inhabited; x_14 = lean_array_get(x_13, x_1, x_12); lean_dec(x_12); x_15 = l_Lean_Expr_fvarId_x21(x_14); @@ -24343,6 +24402,7 @@ lean_inc(x_31); lean_dec(x_29); x_32 = l_Lean_LocalDecl_type(x_30); lean_dec(x_30); +lean_inc(x_6); lean_inc(x_32); x_33 = l_Lean_Meta_isClassQuick___main(x_32, x_6, x_31); if (lean_obj_tag(x_33) == 0) @@ -24721,6 +24781,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_11); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_11, x_24); if (lean_obj_tag(x_26) == 0) @@ -25061,6 +25122,7 @@ lean_inc(x_31); lean_dec(x_29); x_32 = l_Lean_LocalDecl_type(x_30); lean_dec(x_30); +lean_inc(x_6); lean_inc(x_32); x_33 = l_Lean_Meta_isClassQuick___main(x_32, x_6, x_31); if (lean_obj_tag(x_33) == 0) @@ -25305,89 +25367,90 @@ _start: lean_object* x_9; if (lean_obj_tag(x_6) == 7) { -lean_object* x_22; uint8_t 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_22; lean_object* x_23; lean_object* x_24; uint64_t 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_22 = lean_ctor_get(x_6, 0); lean_inc(x_22); -x_23 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); -x_24 = lean_ctor_get(x_6, 1); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_6, 2); lean_inc(x_24); -x_25 = lean_ctor_get(x_6, 2); -lean_inc(x_25); +x_25 = lean_ctor_get_uint64(x_6, sizeof(void*)*3); lean_dec(x_6); x_26 = lean_array_get_size(x_4); lean_inc(x_4); -x_27 = lean_expr_instantiate_rev_range(x_24, x_5, x_26, x_4); +x_27 = lean_expr_instantiate_rev_range(x_23, x_5, x_26, x_4); lean_dec(x_26); -lean_dec(x_24); +lean_dec(x_23); x_28 = l_Lean_Meta_mkFreshId___rarg(x_8); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); +x_31 = (uint8_t)((x_25 << 24) >> 61); lean_inc(x_29); -x_31 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_23); -x_32 = lean_expr_mk_fvar(x_29); -x_33 = lean_array_push(x_4, x_32); +x_32 = lean_local_ctx_mk_local_decl(x_3, x_29, x_22, x_27, x_31); +x_33 = l_Lean_mkFVar(x_29); +x_34 = lean_array_push(x_4, x_33); if (lean_obj_tag(x_2) == 0) { -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } else { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_2, 0); -lean_inc(x_35); -x_36 = lean_array_get_size(x_33); -x_37 = lean_nat_dec_lt(x_36, x_35); -lean_dec(x_35); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -lean_dec(x_2); -lean_inc(x_33); -x_38 = lean_expr_instantiate_rev_range(x_25, x_5, x_36, x_33); -lean_dec(x_25); -x_39 = !lean_is_exclusive(x_7); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_7, 1); -lean_dec(x_40); -lean_ctor_set(x_7, 1, x_31); -x_41 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__8(x_33, x_36, x_38, x_33, x_5, x_7, x_30); -lean_dec(x_38); -lean_dec(x_33); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_7, 0); -x_43 = lean_ctor_get(x_7, 2); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_7); -x_44 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_31); -lean_ctor_set(x_44, 2, x_43); -x_45 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__8(x_33, x_36, x_38, x_33, x_5, x_44, x_30); -lean_dec(x_38); -lean_dec(x_33); -return x_45; -} -} -else -{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_34); +x_38 = lean_nat_dec_lt(x_37, x_36); lean_dec(x_36); -x_3 = x_31; -x_4 = x_33; -x_6 = x_25; +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +lean_dec(x_2); +lean_inc(x_34); +x_39 = lean_expr_instantiate_rev_range(x_24, x_5, x_37, x_34); +lean_dec(x_24); +x_40 = !lean_is_exclusive(x_7); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_7, 1); +lean_dec(x_41); +lean_ctor_set(x_7, 1, x_32); +x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__8(x_34, x_37, x_39, x_34, x_5, x_7, x_30); +lean_dec(x_39); +lean_dec(x_34); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 2); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_7); +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_32); +lean_ctor_set(x_45, 2, x_44); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_getFunInfo___spec__8(x_34, x_37, x_39, x_34, x_5, x_45, x_30); +lean_dec(x_39); +lean_dec(x_34); +return x_46; +} +} +else +{ +lean_dec(x_37); +x_3 = x_32; +x_4 = x_34; +x_6 = x_24; x_8 = x_30; goto _start; } @@ -25395,9 +25458,9 @@ goto _start; } else { -lean_object* x_47; -x_47 = lean_box(0); -x_9 = x_47; +lean_object* x_48; +x_48 = lean_box(0); +x_9 = x_48; goto block_21; } block_21: diff --git a/stage0/library/Init/Lean/Meta/ExprDefEq.c b/stage0/library/Init/Lean/Meta/ExprDefEq.c index 5a05df239e..edf7ca9228 100644 --- a/stage0/library/Init/Lean/Meta/ExprDefEq.c +++ b/stage0/library/Init/Lean/Meta/ExprDefEq.c @@ -17,7 +17,7 @@ lean_object* l_Lean_Meta_inferTypeAuxAux___main(lean_object*, lean_object*, lean lean_object* l___private_Init_Lean_Meta_ExprDefEq_6__isDefEqBinding(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_checkFVar___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__12; -uint8_t lean_expr_has_fvar(lean_object*); +uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_4__isDefEqArgs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar(lean_object*, lean_object*, lean_object*, lean_object*); @@ -31,17 +31,18 @@ lean_object* l_Lean_Meta_CheckAssignment_cache(lean_object*, lean_object*, lean_ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateMData_x21___closed__2; -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__2; +lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_mkAuxMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_replace___main___at_Lean_Meta_CheckAssignment_cache___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__simpAssignmentArg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__3; lean_object* l_HashMapImp_insert___at_Lean_Meta_CheckAssignment_cache___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__isDefEqFOApprox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__isDefEqFOApprox___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Trace_3__addTrace___at___private_Init_Lean_Meta_LevelDefEq_7__isLevelDefEqAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_3__isDefEqArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__22; lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__simpAssignmentArgAux___main(lean_object*, lean_object*, lean_object*); @@ -55,6 +56,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__20; lean_object* l_mkHashMap___at_Lean_Meta_checkAssignment___spec__2(lean_object*); +lean_object* l_Lean_mkMVar(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignment(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Meta_CheckAssignment_checkFVar___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__5; @@ -63,16 +65,15 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__isDefEqFOApprox(lean_object lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_6__isDefEqBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_check___main___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__isDefEqFOApprox___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_moveEntries___main___at_Lean_Meta_CheckAssignment_cache___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_usingDefault(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__processAssignmentFOApprox___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Id_Monad; lean_object* l_AssocList_foldlM___main___at_Lean_Meta_CheckAssignment_cache___spec__5(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__17; -lean_object* l___private_Init_Lean_Expr_10__etaExpandedAux___main(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__13; lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_containsFVar(lean_object*, lean_object*); @@ -98,6 +99,7 @@ lean_object* l_Lean_Meta_isTypeCorrect___rarg(lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___closed__5; +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_find___at_Lean_Meta_CheckAssignment_findCached___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_simpleMonadTracerAdapter___rarg(lean_object*, lean_object*); @@ -107,6 +109,7 @@ uint8_t l_AssocList_contains___main___at_Lean_Meta_CheckAssignment_cache___spec_ lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___lambda__1(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__processAssignmentFOApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__21; lean_object* l_Lean_Meta_CheckAssignment_getMCtx___boxed(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_check___main(lean_object*, lean_object*, lean_object*); @@ -117,6 +120,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateApp_x21___closed__1; lean_object* lean_metavar_ctx_assign_expr(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshId___rarg(lean_object*); @@ -144,18 +148,15 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__processAssignmentFOApproxA lean_object* l_HashMapImp_expand___at_Lean_Meta_CheckAssignment_cache___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_MessageData_coeOfArrayExpr___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited; lean_object* l_Lean_Meta_isClass(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_findCached___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_AssocList_find___main___at_Lean_Meta_CheckAssignment_findCached___spec__2___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___closed__6; lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__simpAssignmentArgAux(lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_mvar(lean_object*); lean_object* l_Lean_Meta_isTypeCorrect___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__1; lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* lean_expr_mk_bvar(lean_object*); lean_object* l_Lean_Meta_isReadOnlyOrSyntheticExprMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Trace_5__checkTraceOption___at___private_Init_Lean_Meta_LevelDefEq_7__isLevelDefEqAux___main___spec__1(lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_checkFVar___spec__1(lean_object*, lean_object*); @@ -163,6 +164,7 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_3__isDefEqArgsAux___main___box lean_object* l_panic(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__18; +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); @@ -186,31 +188,30 @@ lean_object* l_mkHashMapImp___rarg(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___closed__7; lean_object* l_Lean_Meta_CheckAssignment_findCached(lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__3; lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__9; lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___closed__3; lean_object* l_Lean_Meta_isDefEqBindingDomain___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* lean_metavar_ctx_mk_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__19; -lean_object* lean_expr_mk_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___closed__2; lean_object* l_Lean_Meta_CheckAssignment_getMCtx(lean_object*); lean_object* l_HashMapImp_find___at_Lean_Meta_CheckAssignment_findCached___spec__1(lean_object*, lean_object*); lean_object* l_ReaderT_pure___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main___lambda__1___boxed(lean_object*, lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); +uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__14; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Trace_3__addTrace___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_check(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_4__isDefEqArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__2; extern lean_object* l_Lean_Expr_updateForallE_x21___closed__1; uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); @@ -220,23 +221,26 @@ lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__16; lean_object* l_Lean_Meta_CheckAssignment_cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux___main(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__visit(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_MetavarContext_isWellFormed___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_isWellFormed___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkBVar(lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__4; lean_object* l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(uint8_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__15; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___closed__1() { _start: { lean_object* x_1; lean_object* x_2; x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_expr_mk_bvar(x_1); +x_2 = l_Lean_mkBVar(x_1); return x_2; } } @@ -304,775 +308,777 @@ x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); if (lean_obj_tag(x_23) == 7) { -lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); x_25 = lean_ctor_get(x_23, 0); lean_inc(x_25); -x_26 = lean_ctor_get_uint8(x_23, sizeof(void*)*3); -x_27 = lean_ctor_get(x_23, 1); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_23, 2); lean_inc(x_27); -x_28 = lean_ctor_get(x_23, 2); -lean_inc(x_28); +x_28 = lean_ctor_get_uint64(x_23, sizeof(void*)*3); lean_dec(x_23); -x_29 = l___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___closed__1; -x_30 = lean_expr_mk_app(x_28, x_29); -x_31 = lean_expr_mk_lambda(x_25, x_26, x_27, x_30); -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) +x_29 = (uint8_t)((x_28 << 24) >> 61); +x_30 = l___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___closed__1; +x_31 = l_Lean_mkApp(x_27, x_30); +x_32 = l_Lean_mkLambda(x_25, x_29, x_26, x_31); +x_33 = !lean_is_exclusive(x_24); +if (x_33 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_45; -x_33 = lean_ctor_get(x_24, 0); -x_34 = lean_ctor_get(x_24, 1); -x_35 = lean_ctor_get(x_24, 5); -x_36 = l_PersistentArray_empty___closed__3; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_46; +x_34 = lean_ctor_get(x_24, 0); +x_35 = lean_ctor_get(x_24, 1); +x_36 = lean_ctor_get(x_24, 5); +x_37 = l_PersistentArray_empty___closed__3; +lean_inc(x_35); lean_inc(x_34); -lean_inc(x_33); -lean_ctor_set(x_24, 5, x_36); +lean_ctor_set(x_24, 5, x_37); lean_inc(x_5); -x_45 = lean_apply_4(x_2, x_3, x_31, x_5, x_24); -if (lean_obj_tag(x_45) == 0) +x_46 = lean_apply_4(x_2, x_3, x_32, x_5, x_24); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_46; uint8_t x_47; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_unbox(x_46); -if (x_47 == 0) +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_unbox(x_47); +if (x_48 == 0) { -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -lean_dec(x_45); -x_49 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_33, x_34, x_35, x_5, x_48); -lean_dec(x_5); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -lean_ctor_set(x_49, 0, x_46); -return x_49; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_49, 1); -lean_inc(x_52); -lean_dec(x_49); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_46); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -else -{ -lean_object* x_54; uint8_t x_55; lean_object* x_56; +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); lean_dec(x_46); -x_54 = lean_ctor_get(x_45, 1); -lean_inc(x_54); -lean_dec(x_45); -x_55 = 0; -x_56 = l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(x_55, x_5, x_54); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; uint8_t x_58; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_unbox(x_57); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -x_60 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_33, x_34, x_35, x_5, x_59); +x_50 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_34, x_35, x_36, x_5, x_49); lean_dec(x_5); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -lean_object* x_62; -x_62 = lean_ctor_get(x_60, 0); -lean_dec(x_62); -lean_ctor_set(x_60, 0, x_57); -return x_60; +lean_object* x_52; +x_52 = lean_ctor_get(x_50, 0); +lean_dec(x_52); +lean_ctor_set(x_50, 0, x_47); +return x_50; } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_57); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_47); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } else { -uint8_t x_65; +lean_object* x_55; uint8_t x_56; lean_object* x_57; +lean_dec(x_47); +x_55 = lean_ctor_get(x_46, 1); +lean_inc(x_55); +lean_dec(x_46); +x_56 = 0; +x_57 = l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(x_56, x_5, x_55); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_unbox(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_34, x_35, x_36, x_5, x_60); +lean_dec(x_5); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +lean_ctor_set(x_61, 0, x_58); +return x_61; +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_58); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +else +{ +uint8_t x_66; +lean_dec(x_36); lean_dec(x_35); lean_dec(x_34); -lean_dec(x_33); lean_dec(x_5); -x_65 = !lean_is_exclusive(x_56); -if (x_65 == 0) +x_66 = !lean_is_exclusive(x_57); +if (x_66 == 0) { -lean_object* x_66; -x_66 = lean_ctor_get(x_56, 0); -lean_dec(x_66); -return x_56; +lean_object* x_67; +x_67 = lean_ctor_get(x_57, 0); +lean_dec(x_67); +return x_57; } else { -lean_object* x_67; lean_object* x_68; -x_67 = lean_ctor_get(x_56, 1); -lean_inc(x_67); -lean_dec(x_56); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_57); -lean_ctor_set(x_68, 1, x_67); -return x_68; +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_57, 1); +lean_inc(x_68); +lean_dec(x_57); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_58); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } else { -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_56, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_56, 1); +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_57, 0); lean_inc(x_70); -lean_dec(x_56); -x_37 = x_69; -x_38 = x_70; -goto block_44; -} -} -} -else -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_45, 0); +x_71 = lean_ctor_get(x_57, 1); lean_inc(x_71); -x_72 = lean_ctor_get(x_45, 1); +lean_dec(x_57); +x_38 = x_70; +x_39 = x_71; +goto block_45; +} +} +} +else +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_46, 0); lean_inc(x_72); -lean_dec(x_45); -x_37 = x_71; +x_73 = lean_ctor_get(x_46, 1); +lean_inc(x_73); +lean_dec(x_46); x_38 = x_72; -goto block_44; +x_39 = x_73; +goto block_45; } -block_44: +block_45: { -lean_object* x_39; uint8_t x_40; -x_39 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_33, x_34, x_35, x_5, x_38); +lean_object* x_40; uint8_t x_41; +x_40 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_34, x_35, x_36, x_5, x_39); lean_dec(x_5); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_41; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -lean_ctor_set_tag(x_39, 1); -lean_ctor_set(x_39, 0, x_37); -return x_39; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set_tag(x_40, 1); +lean_ctor_set(x_40, 0, x_38); +return x_40; } else { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_37); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_88; -x_73 = lean_ctor_get(x_24, 0); -x_74 = lean_ctor_get(x_24, 1); -x_75 = lean_ctor_get(x_24, 2); -x_76 = lean_ctor_get(x_24, 3); -x_77 = lean_ctor_get(x_24, 4); -x_78 = lean_ctor_get(x_24, 5); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_89; +x_74 = lean_ctor_get(x_24, 0); +x_75 = lean_ctor_get(x_24, 1); +x_76 = lean_ctor_get(x_24, 2); +x_77 = lean_ctor_get(x_24, 3); +x_78 = lean_ctor_get(x_24, 4); +x_79 = lean_ctor_get(x_24, 5); +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_dec(x_24); -x_79 = l_PersistentArray_empty___closed__3; +x_80 = l_PersistentArray_empty___closed__3; +lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -x_80 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_80, 0, x_73); -lean_ctor_set(x_80, 1, x_74); -lean_ctor_set(x_80, 2, x_75); -lean_ctor_set(x_80, 3, x_76); -lean_ctor_set(x_80, 4, x_77); -lean_ctor_set(x_80, 5, x_79); +x_81 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_81, 0, x_74); +lean_ctor_set(x_81, 1, x_75); +lean_ctor_set(x_81, 2, x_76); +lean_ctor_set(x_81, 3, x_77); +lean_ctor_set(x_81, 4, x_78); +lean_ctor_set(x_81, 5, x_80); lean_inc(x_5); -x_88 = lean_apply_4(x_2, x_3, x_31, x_5, x_80); -if (lean_obj_tag(x_88) == 0) +x_89 = lean_apply_4(x_2, x_3, x_32, x_5, x_81); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_unbox(x_89); -if (x_90 == 0) +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_unbox(x_90); +if (x_91 == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -lean_dec(x_88); -x_92 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_73, x_74, x_78, x_5, x_91); -lean_dec(x_5); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_94 = x_92; -} else { - lean_dec_ref(x_92); - x_94 = lean_box(0); -} -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(0, 2, 0); -} else { - x_95 = x_94; -} -lean_ctor_set(x_95, 0, x_89); -lean_ctor_set(x_95, 1, x_93); -return x_95; -} -else -{ -lean_object* x_96; uint8_t x_97; lean_object* x_98; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_92 = lean_ctor_get(x_89, 1); +lean_inc(x_92); lean_dec(x_89); -x_96 = lean_ctor_get(x_88, 1); -lean_inc(x_96); -lean_dec(x_88); -x_97 = 0; -x_98 = l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(x_97, x_5, x_96); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; uint8_t x_100; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_unbox(x_99); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_101 = lean_ctor_get(x_98, 1); -lean_inc(x_101); -lean_dec(x_98); -x_102 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_73, x_74, x_78, x_5, x_101); +x_93 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_74, x_75, x_79, x_5, x_92); lean_dec(x_5); -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; +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_93)) { + lean_ctor_release(x_93, 0); + lean_ctor_release(x_93, 1); + x_95 = x_93; } else { - lean_dec_ref(x_102); - x_104 = lean_box(0); + lean_dec_ref(x_93); + x_95 = lean_box(0); } -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(0, 2, 0); } else { - x_105 = x_104; + x_96 = x_95; } -lean_ctor_set(x_105, 0, x_99); -lean_ctor_set(x_105, 1, x_103); -return x_105; +lean_ctor_set(x_96, 0, x_90); +lean_ctor_set(x_96, 1, x_94); +return x_96; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -lean_dec(x_78); +lean_object* x_97; uint8_t x_98; lean_object* x_99; +lean_dec(x_90); +x_97 = lean_ctor_get(x_89, 1); +lean_inc(x_97); +lean_dec(x_89); +x_98 = 0; +x_99 = l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(x_98, x_5, x_97); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; uint8_t x_101; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_unbox(x_100); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_ctor_get(x_99, 1); +lean_inc(x_102); +lean_dec(x_99); +x_103 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_74, x_75, x_79, x_5, x_102); +lean_dec(x_5); +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_103); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_100); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_79); +lean_dec(x_75); lean_dec(x_74); -lean_dec(x_73); lean_dec(x_5); -x_106 = lean_ctor_get(x_98, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_107 = x_98; +x_107 = lean_ctor_get(x_99, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_108 = x_99; } else { - lean_dec_ref(x_98); - x_107 = lean_box(0); + lean_dec_ref(x_99); + x_108 = lean_box(0); } -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(0, 2, 0); } else { - x_108 = x_107; + x_109 = x_108; } -lean_ctor_set(x_108, 0, x_99); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_ctor_set(x_109, 0, x_100); +lean_ctor_set(x_109, 1, x_107); +return x_109; } } else { -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_98, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_98, 1); +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_99, 0); lean_inc(x_110); -lean_dec(x_98); -x_81 = x_109; -x_82 = x_110; -goto block_87; -} -} -} -else -{ -lean_object* x_111; lean_object* x_112; -x_111 = lean_ctor_get(x_88, 0); +x_111 = lean_ctor_get(x_99, 1); lean_inc(x_111); -x_112 = lean_ctor_get(x_88, 1); -lean_inc(x_112); -lean_dec(x_88); -x_81 = x_111; -x_82 = x_112; -goto block_87; -} -block_87: -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_83 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_73, x_74, x_78, x_5, x_82); -lean_dec(x_5); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(1, 2, 0); -} else { - x_86 = x_85; - lean_ctor_set_tag(x_86, 1); -} -lean_ctor_set(x_86, 0, x_81); -lean_ctor_set(x_86, 1, x_84); -return x_86; +lean_dec(x_99); +x_82 = x_110; +x_83 = x_111; +goto block_88; } } } else { -uint8_t x_113; +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_89, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_89, 1); +lean_inc(x_113); +lean_dec(x_89); +x_82 = x_112; +x_83 = x_113; +goto block_88; +} +block_88: +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_74, x_75, x_79, x_5, x_83); +lean_dec(x_5); +x_85 = lean_ctor_get(x_84, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_86 = x_84; +} else { + lean_dec_ref(x_84); + x_86 = lean_box(0); +} +if (lean_is_scalar(x_86)) { + x_87 = lean_alloc_ctor(1, 2, 0); +} else { + x_87 = x_86; + lean_ctor_set_tag(x_87, 1); +} +lean_ctor_set(x_87, 0, x_82); +lean_ctor_set(x_87, 1, x_85); +return x_87; +} +} +} +else +{ +uint8_t x_114; lean_dec(x_23); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_113 = !lean_is_exclusive(x_22); -if (x_113 == 0) +x_114 = !lean_is_exclusive(x_22); +if (x_114 == 0) { -lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_22, 0); -lean_dec(x_114); -x_115 = 0; -x_116 = lean_box(x_115); -lean_ctor_set(x_22, 0, x_116); +lean_object* x_115; uint8_t x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_22, 0); +lean_dec(x_115); +x_116 = 0; +x_117 = lean_box(x_116); +lean_ctor_set(x_22, 0, x_117); return x_22; } else { -lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_22, 1); -lean_inc(x_117); +lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_22, 1); +lean_inc(x_118); lean_dec(x_22); -x_118 = 0; -x_119 = lean_box(x_118); -x_120 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_117); -return x_120; +x_119 = 0; +x_120 = lean_box(x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_118); +return x_121; } } } else { -uint8_t x_121; +uint8_t x_122; lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_121 = !lean_is_exclusive(x_22); -if (x_121 == 0) +x_122 = !lean_is_exclusive(x_22); +if (x_122 == 0) { return x_22; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_22, 0); -x_123 = lean_ctor_get(x_22, 1); +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_22, 0); +x_124 = lean_ctor_get(x_22, 1); +lean_inc(x_124); lean_inc(x_123); -lean_inc(x_122); lean_dec(x_22); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +return x_125; } } } else { -lean_object* x_125; uint8_t x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_125 = lean_ctor_get(x_14, 0); -x_126 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); -x_127 = lean_ctor_get_uint8(x_14, sizeof(void*)*1 + 1); -x_128 = lean_ctor_get_uint8(x_14, sizeof(void*)*1 + 2); -x_129 = lean_ctor_get_uint8(x_14, sizeof(void*)*1 + 3); -lean_inc(x_125); +lean_object* x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_126 = lean_ctor_get(x_14, 0); +x_127 = lean_ctor_get_uint8(x_14, sizeof(void*)*1); +x_128 = lean_ctor_get_uint8(x_14, sizeof(void*)*1 + 1); +x_129 = lean_ctor_get_uint8(x_14, sizeof(void*)*1 + 2); +x_130 = lean_ctor_get_uint8(x_14, sizeof(void*)*1 + 3); +lean_inc(x_126); lean_dec(x_14); -x_130 = 1; -x_131 = lean_alloc_ctor(0, 1, 5); -lean_ctor_set(x_131, 0, x_125); -lean_ctor_set_uint8(x_131, sizeof(void*)*1, x_126); -lean_ctor_set_uint8(x_131, sizeof(void*)*1 + 1, x_127); -lean_ctor_set_uint8(x_131, sizeof(void*)*1 + 2, x_128); -lean_ctor_set_uint8(x_131, sizeof(void*)*1 + 3, x_129); -lean_ctor_set_uint8(x_131, sizeof(void*)*1 + 4, x_130); -x_132 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_132, 0, x_131); -lean_ctor_set(x_132, 1, x_17); -lean_ctor_set(x_132, 2, x_18); -x_133 = lean_apply_3(x_1, x_15, x_132, x_16); -if (lean_obj_tag(x_133) == 0) +x_131 = 1; +x_132 = lean_alloc_ctor(0, 1, 5); +lean_ctor_set(x_132, 0, x_126); +lean_ctor_set_uint8(x_132, sizeof(void*)*1, x_127); +lean_ctor_set_uint8(x_132, sizeof(void*)*1 + 1, x_128); +lean_ctor_set_uint8(x_132, sizeof(void*)*1 + 2, x_129); +lean_ctor_set_uint8(x_132, sizeof(void*)*1 + 3, x_130); +lean_ctor_set_uint8(x_132, sizeof(void*)*1 + 4, x_131); +x_133 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_17); +lean_ctor_set(x_133, 2, x_18); +x_134 = lean_apply_3(x_1, x_15, x_133, x_16); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_134; -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -if (lean_obj_tag(x_134) == 7) -{ -lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_159; -x_135 = lean_ctor_get(x_133, 1); +lean_object* x_135; +x_135 = lean_ctor_get(x_134, 0); lean_inc(x_135); -lean_dec(x_133); -x_136 = lean_ctor_get(x_134, 0); +if (lean_obj_tag(x_135) == 7) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint64_t x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_161; +x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); -x_137 = lean_ctor_get_uint8(x_134, sizeof(void*)*3); -x_138 = lean_ctor_get(x_134, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_134, 2); -lean_inc(x_139); lean_dec(x_134); -x_140 = l___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___closed__1; -x_141 = lean_expr_mk_app(x_139, x_140); -x_142 = lean_expr_mk_lambda(x_136, x_137, x_138, x_141); -x_143 = lean_ctor_get(x_135, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_135, 1); -lean_inc(x_144); -x_145 = lean_ctor_get(x_135, 2); +x_137 = lean_ctor_get(x_135, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +x_139 = lean_ctor_get(x_135, 2); +lean_inc(x_139); +x_140 = lean_ctor_get_uint64(x_135, sizeof(void*)*3); +lean_dec(x_135); +x_141 = (uint8_t)((x_140 << 24) >> 61); +x_142 = l___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___closed__1; +x_143 = l_Lean_mkApp(x_139, x_142); +x_144 = l_Lean_mkLambda(x_137, x_141, x_138, x_143); +x_145 = lean_ctor_get(x_136, 0); lean_inc(x_145); -x_146 = lean_ctor_get(x_135, 3); +x_146 = lean_ctor_get(x_136, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_135, 4); +x_147 = lean_ctor_get(x_136, 2); lean_inc(x_147); -x_148 = lean_ctor_get(x_135, 5); +x_148 = lean_ctor_get(x_136, 3); lean_inc(x_148); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - lean_ctor_release(x_135, 2); - lean_ctor_release(x_135, 3); - lean_ctor_release(x_135, 4); - lean_ctor_release(x_135, 5); - x_149 = x_135; +x_149 = lean_ctor_get(x_136, 4); +lean_inc(x_149); +x_150 = lean_ctor_get(x_136, 5); +lean_inc(x_150); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + lean_ctor_release(x_136, 4); + lean_ctor_release(x_136, 5); + x_151 = x_136; } else { - lean_dec_ref(x_135); - x_149 = lean_box(0); + lean_dec_ref(x_136); + x_151 = lean_box(0); } -x_150 = l_PersistentArray_empty___closed__3; -lean_inc(x_144); -lean_inc(x_143); -if (lean_is_scalar(x_149)) { - x_151 = lean_alloc_ctor(0, 6, 0); +x_152 = l_PersistentArray_empty___closed__3; +lean_inc(x_146); +lean_inc(x_145); +if (lean_is_scalar(x_151)) { + x_153 = lean_alloc_ctor(0, 6, 0); } else { - x_151 = x_149; + x_153 = x_151; } -lean_ctor_set(x_151, 0, x_143); -lean_ctor_set(x_151, 1, x_144); -lean_ctor_set(x_151, 2, x_145); -lean_ctor_set(x_151, 3, x_146); -lean_ctor_set(x_151, 4, x_147); -lean_ctor_set(x_151, 5, x_150); +lean_ctor_set(x_153, 0, x_145); +lean_ctor_set(x_153, 1, x_146); +lean_ctor_set(x_153, 2, x_147); +lean_ctor_set(x_153, 3, x_148); +lean_ctor_set(x_153, 4, x_149); +lean_ctor_set(x_153, 5, x_152); lean_inc(x_5); -x_159 = lean_apply_4(x_2, x_3, x_142, x_5, x_151); -if (lean_obj_tag(x_159) == 0) +x_161 = lean_apply_4(x_2, x_3, x_144, x_5, x_153); +if (lean_obj_tag(x_161) == 0) { -lean_object* x_160; uint8_t x_161; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_unbox(x_160); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_162 = lean_ctor_get(x_159, 1); +lean_object* x_162; uint8_t x_163; +x_162 = lean_ctor_get(x_161, 0); lean_inc(x_162); -lean_dec(x_159); -x_163 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_143, x_144, x_148, x_5, x_162); -lean_dec(x_5); -x_164 = lean_ctor_get(x_163, 1); +x_163 = lean_unbox(x_162); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_164 = lean_ctor_get(x_161, 1); lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +lean_dec(x_161); +x_165 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_145, x_146, x_150, x_5, x_164); +lean_dec(x_5); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_167 = x_165; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_165); + x_167 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_167)) { + x_168 = lean_alloc_ctor(0, 2, 0); } else { - x_166 = x_165; + x_168 = x_167; } -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_168, 0, x_162); +lean_ctor_set(x_168, 1, x_166); +return x_168; } else { -lean_object* x_167; uint8_t x_168; lean_object* x_169; -lean_dec(x_160); -x_167 = lean_ctor_get(x_159, 1); -lean_inc(x_167); -lean_dec(x_159); -x_168 = 0; -x_169 = l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(x_168, x_5, x_167); -if (lean_obj_tag(x_169) == 0) +lean_object* x_169; uint8_t x_170; lean_object* x_171; +lean_dec(x_162); +x_169 = lean_ctor_get(x_161, 1); +lean_inc(x_169); +lean_dec(x_161); +x_170 = 0; +x_171 = l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(x_170, x_5, x_169); +if (lean_obj_tag(x_171) == 0) { -lean_object* x_170; uint8_t x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_unbox(x_170); -if (x_171 == 0) -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_172 = lean_ctor_get(x_169, 1); +lean_object* x_172; uint8_t x_173; +x_172 = lean_ctor_get(x_171, 0); lean_inc(x_172); -lean_dec(x_169); -x_173 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_143, x_144, x_148, x_5, x_172); -lean_dec(x_5); -x_174 = lean_ctor_get(x_173, 1); +x_173 = lean_unbox(x_172); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_174 = lean_ctor_get(x_171, 1); lean_inc(x_174); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_175 = x_173; -} else { - lean_dec_ref(x_173); - x_175 = lean_box(0); -} -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(0, 2, 0); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_170); -lean_ctor_set(x_176, 1, x_174); -return x_176; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_148); -lean_dec(x_144); -lean_dec(x_143); +lean_dec(x_171); +x_175 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_145, x_146, x_150, x_5, x_174); lean_dec(x_5); -x_177 = lean_ctor_get(x_169, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - x_178 = x_169; +x_176 = lean_ctor_get(x_175, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_177 = x_175; } else { - lean_dec_ref(x_169); - x_178 = lean_box(0); + lean_dec_ref(x_175); + x_177 = lean_box(0); } -if (lean_is_scalar(x_178)) { - x_179 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(0, 2, 0); } else { - x_179 = x_178; -} -lean_ctor_set(x_179, 0, x_170); -lean_ctor_set(x_179, 1, x_177); -return x_179; + x_178 = x_177; } +lean_ctor_set(x_178, 0, x_172); +lean_ctor_set(x_178, 1, x_176); +return x_178; } else { -lean_object* x_180; lean_object* x_181; -x_180 = lean_ctor_get(x_169, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_169, 1); -lean_inc(x_181); -lean_dec(x_169); -x_152 = x_180; -x_153 = x_181; -goto block_158; +lean_object* x_179; lean_object* x_180; lean_object* x_181; +lean_dec(x_150); +lean_dec(x_146); +lean_dec(x_145); +lean_dec(x_5); +x_179 = lean_ctor_get(x_171, 1); +lean_inc(x_179); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_180 = x_171; +} else { + lean_dec_ref(x_171); + x_180 = lean_box(0); } +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(0, 2, 0); +} else { + x_181 = x_180; +} +lean_ctor_set(x_181, 0, x_172); +lean_ctor_set(x_181, 1, x_179); +return x_181; } } else { lean_object* x_182; lean_object* x_183; -x_182 = lean_ctor_get(x_159, 0); +x_182 = lean_ctor_get(x_171, 0); lean_inc(x_182); -x_183 = lean_ctor_get(x_159, 1); +x_183 = lean_ctor_get(x_171, 1); lean_inc(x_183); -lean_dec(x_159); -x_152 = x_182; -x_153 = x_183; -goto block_158; +lean_dec(x_171); +x_154 = x_182; +x_155 = x_183; +goto block_160; } -block_158: -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_154 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_143, x_144, x_148, x_5, x_153); -lean_dec(x_5); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_156 = x_154; -} else { - lean_dec_ref(x_154); - x_156 = lean_box(0); -} -if (lean_is_scalar(x_156)) { - x_157 = lean_alloc_ctor(1, 2, 0); -} else { - x_157 = x_156; - lean_ctor_set_tag(x_157, 1); -} -lean_ctor_set(x_157, 0, x_152); -lean_ctor_set(x_157, 1, x_155); -return x_157; } } else { -lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_134); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_184 = lean_ctor_get(x_133, 1); +lean_object* x_184; lean_object* x_185; +x_184 = lean_ctor_get(x_161, 0); lean_inc(x_184); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_185 = x_133; -} else { - lean_dec_ref(x_133); - x_185 = lean_box(0); +x_185 = lean_ctor_get(x_161, 1); +lean_inc(x_185); +lean_dec(x_161); +x_154 = x_184; +x_155 = x_185; +goto block_160; } -x_186 = 0; -x_187 = lean_box(x_186); -if (lean_is_scalar(x_185)) { - x_188 = lean_alloc_ctor(0, 2, 0); +block_160: +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_156 = l___private_Init_Lean_Meta_LevelDefEq_13__restore(x_145, x_146, x_150, x_5, x_155); +lean_dec(x_5); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_158 = x_156; } else { - x_188 = x_185; + lean_dec_ref(x_156); + x_158 = lean_box(0); } -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_184); -return x_188; +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_158; + lean_ctor_set_tag(x_159, 1); +} +lean_ctor_set(x_159, 0, x_154); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_object* x_186; lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_135); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_189 = lean_ctor_get(x_133, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_133, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_133)) { - lean_ctor_release(x_133, 0); - lean_ctor_release(x_133, 1); - x_191 = x_133; +x_186 = lean_ctor_get(x_134, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_187 = x_134; } else { - lean_dec_ref(x_133); - x_191 = lean_box(0); + lean_dec_ref(x_134); + x_187 = lean_box(0); } -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); +x_188 = 0; +x_189 = lean_box(x_188); +if (lean_is_scalar(x_187)) { + x_190 = lean_alloc_ctor(0, 2, 0); } else { - x_192 = x_191; + x_190 = x_187; } -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_190); -return x_192; +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_186); +return x_190; +} +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_191 = lean_ctor_get(x_134, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_134, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_193 = x_134; +} else { + lean_dec_ref(x_134); + x_193 = lean_box(0); +} +if (lean_is_scalar(x_193)) { + x_194 = lean_alloc_ctor(1, 2, 0); +} else { + x_194 = x_193; +} +lean_ctor_set(x_194, 0, x_191); +lean_ctor_set(x_194, 1, x_192); +return x_194; } } } else { -uint8_t x_193; +uint8_t x_195; lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_193 = !lean_is_exclusive(x_13); -if (x_193 == 0) +x_195 = !lean_is_exclusive(x_13); +if (x_195 == 0) { return x_13; } else { -lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_194 = lean_ctor_get(x_13, 0); -x_195 = lean_ctor_get(x_13, 1); -lean_inc(x_195); -lean_inc(x_194); +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_13, 0); +x_197 = lean_ctor_get(x_13, 1); +lean_inc(x_197); +lean_inc(x_196); lean_dec(x_13); -x_196 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_196, 0, x_194); -lean_ctor_set(x_196, 1, x_195); -return x_196; +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +return x_198; } } } else { -uint8_t x_197; lean_object* x_198; lean_object* x_199; +uint8_t x_199; lean_object* x_200; lean_object* x_201; lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_197 = 0; -x_198 = lean_box(x_197); -x_199 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_6); -return x_199; +x_199 = 0; +x_200 = lean_box(x_199); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_6); +return x_201; } } } @@ -1082,7 +1088,7 @@ _start: { lean_object* x_4; lean_object* x_5; x_4 = lean_unsigned_to_nat(0u); -x_5 = l___private_Init_Lean_Expr_10__etaExpandedAux___main(x_1, x_4); +x_5 = l___private_Init_Lean_Expr_9__etaExpandedAux___main(x_1, x_4); if (lean_obj_tag(x_5) == 0) { uint8_t x_6; lean_object* x_7; lean_object* x_8; @@ -1272,7 +1278,7 @@ else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; uint8_t x_41; x_13 = lean_array_fget(x_2, x_5); -x_14 = l_Lean_Expr_inhabited; +x_14 = l_Lean_Expr_Inhabited; x_15 = lean_array_get(x_14, x_3, x_5); x_16 = lean_array_get(x_14, x_4, x_5); x_41 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); @@ -1846,7 +1852,7 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_4__isDefEqArgs___lambda__1(lea _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_9 = l_Lean_Expr_inhabited; +x_9 = l_Lean_Expr_Inhabited; x_10 = lean_array_get(x_9, x_1, x_6); x_11 = lean_array_get(x_9, x_2, x_6); x_100 = l_Lean_Meta_ParamInfo_inhabited; @@ -2695,7 +2701,7 @@ lean_inc(x_16); lean_dec(x_14); x_17 = l_Lean_LocalDecl_type(x_15); lean_dec(x_15); -x_18 = l_Lean_Expr_inhabited; +x_18 = l_Lean_Expr_Inhabited; x_19 = lean_array_get(x_18, x_4, x_5); lean_inc(x_2); lean_inc(x_7); @@ -2967,7 +2973,7 @@ lean_dec(x_31); x_34 = 0; lean_inc(x_32); x_35 = lean_local_ctx_mk_local_decl(x_3, x_32, x_24, x_29, x_34); -x_36 = lean_expr_mk_fvar(x_32); +x_36 = l_Lean_mkFVar(x_32); x_37 = lean_array_push(x_4, x_36); x_38 = lean_array_push(x_7, x_30); x_3 = x_35; @@ -3012,7 +3018,7 @@ lean_dec(x_48); x_51 = 0; lean_inc(x_49); x_52 = lean_local_ctx_mk_local_decl(x_3, x_49, x_41, x_46, x_51); -x_53 = lean_expr_mk_fvar(x_49); +x_53 = l_Lean_mkFVar(x_49); x_54 = lean_array_push(x_4, x_53); x_55 = lean_array_push(x_7, x_47); x_3 = x_52; @@ -3166,7 +3172,7 @@ _start: lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; x_3 = lean_ctor_get(x_1, 1); x_4 = lean_array_get_size(x_3); -x_5 = lean_expr_hash(x_2); +x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); @@ -3265,7 +3271,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; le x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_array_get_size(x_1); -x_7 = lean_expr_hash(x_4); +x_7 = l_Lean_Expr_hash(x_4); x_8 = lean_usize_modn(x_7, x_6); lean_dec(x_6); x_9 = lean_array_uget(x_1, x_8); @@ -3286,7 +3292,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_15 = lean_array_get_size(x_1); -x_16 = lean_expr_hash(x_12); +x_16 = l_Lean_Expr_hash(x_12); x_17 = lean_usize_modn(x_16, x_15); lean_dec(x_15); x_18 = lean_array_uget(x_1, x_17); @@ -3433,7 +3439,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; le x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); x_7 = lean_array_get_size(x_6); -x_8 = lean_expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); x_11 = l_AssocList_contains___main___at_Lean_Meta_CheckAssignment_cache___spec__2(x_2, x_10); @@ -3483,7 +3489,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_22 = lean_array_get_size(x_21); -x_23 = lean_expr_hash(x_2); +x_23 = l_Lean_Expr_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); x_26 = l_AssocList_contains___main___at_Lean_Meta_CheckAssignment_cache___spec__2(x_2, x_25); @@ -3629,11 +3635,11 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__visit(lean_object* x_1, lea _start: { lean_object* x_5; uint8_t x_28; -x_28 = lean_expr_has_expr_mvar(x_2); +x_28 = l_Lean_Expr_hasExprMVar(x_2); if (x_28 == 0) { uint8_t x_29; -x_29 = lean_expr_has_fvar(x_2); +x_29 = l_Lean_Expr_hasFVar(x_2); if (x_29 == 0) { lean_object* x_30; @@ -3905,11 +3911,11 @@ lean_dec(x_2); x_23 = lean_ctor_get(x_16, 4); lean_inc(x_23); lean_dec(x_16); -x_47 = lean_expr_has_expr_mvar(x_23); +x_47 = l_Lean_Expr_hasExprMVar(x_23); if (x_47 == 0) { uint8_t x_48; -x_48 = lean_expr_has_fvar(x_23); +x_48 = l_Lean_Expr_hasFVar(x_23); if (x_48 == 0) { lean_object* x_49; @@ -4138,7 +4144,7 @@ x_16 = lean_nat_add(x_10, x_15); lean_dec(x_10); lean_ctor_set(x_6, 1, x_16); lean_ctor_set(x_4, 0, x_14); -x_17 = lean_expr_mk_mvar(x_11); +x_17 = l_Lean_mkMVar(x_11); x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_4); @@ -4168,7 +4174,7 @@ lean_ctor_set(x_28, 0, x_20); lean_ctor_set(x_28, 1, x_27); lean_ctor_set(x_4, 1, x_28); lean_ctor_set(x_4, 0, x_25); -x_29 = lean_expr_mk_mvar(x_22); +x_29 = l_Lean_mkMVar(x_22); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_4); @@ -4218,7 +4224,7 @@ x_44 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_44, 0, x_40); lean_ctor_set(x_44, 1, x_43); lean_ctor_set(x_44, 2, x_33); -x_45 = lean_expr_mk_mvar(x_37); +x_45 = l_Lean_mkMVar(x_37); x_46 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); @@ -4360,7 +4366,7 @@ return x_28; } else { -lean_object* x_29; uint8_t x_30; +lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_dec(x_2); x_29 = lean_ctor_get(x_14, 2); lean_inc(x_29); @@ -4368,98 +4374,100 @@ lean_dec(x_14); lean_inc(x_29); lean_inc(x_17); x_30 = l_Lean_MetavarContext_isWellFormed___main(x_6, x_17, x_29); -if (x_30 == 0) +x_31 = lean_unbox(x_30); +lean_dec(x_30); +if (x_31 == 0) { -lean_object* x_31; lean_object* x_32; +lean_object* x_32; lean_object* x_33; lean_dec(x_29); lean_dec(x_17); lean_dec(x_3); -x_31 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_31, 0, x_5); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_4); -return x_32; -} -else -{ -lean_object* x_33; uint8_t x_34; -x_33 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_17, x_29, x_3, x_4); -lean_dec(x_3); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_33, 1); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -x_39 = lean_metavar_ctx_assign_expr(x_38, x_5, x_37); -lean_ctor_set(x_35, 0, x_39); +x_32 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_32, 0, x_5); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_4); return x_33; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_40 = lean_ctor_get(x_33, 0); -x_41 = lean_ctor_get(x_35, 0); -x_42 = lean_ctor_get(x_35, 1); -x_43 = lean_ctor_get(x_35, 2); +lean_object* x_34; uint8_t x_35; +x_34 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_17, x_29, x_3, x_4); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = lean_ctor_get(x_34, 1); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_34, 0); +x_39 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +x_40 = lean_metavar_ctx_assign_expr(x_39, x_5, x_38); +lean_ctor_set(x_36, 0, x_40); +return x_34; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_41 = lean_ctor_get(x_34, 0); +x_42 = lean_ctor_get(x_36, 0); +x_43 = lean_ctor_get(x_36, 1); +x_44 = lean_ctor_get(x_36, 2); +lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); +lean_dec(x_36); lean_inc(x_41); -lean_dec(x_35); -lean_inc(x_40); -x_44 = lean_metavar_ctx_assign_expr(x_41, x_5, x_40); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_42); -lean_ctor_set(x_45, 2, x_43); -lean_ctor_set(x_33, 1, x_45); -return x_33; +x_45 = lean_metavar_ctx_assign_expr(x_42, x_5, x_41); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +lean_ctor_set(x_46, 2, x_44); +lean_ctor_set(x_34, 1, x_46); +return x_34; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_46 = lean_ctor_get(x_33, 1); -x_47 = lean_ctor_get(x_33, 0); -lean_inc(x_46); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_47 = lean_ctor_get(x_34, 1); +x_48 = lean_ctor_get(x_34, 0); lean_inc(x_47); -lean_dec(x_33); -x_48 = lean_ctor_get(x_46, 0); lean_inc(x_48); -x_49 = lean_ctor_get(x_46, 1); +lean_dec(x_34); +x_49 = lean_ctor_get(x_47, 0); lean_inc(x_49); -x_50 = lean_ctor_get(x_46, 2); +x_50 = lean_ctor_get(x_47, 1); lean_inc(x_50); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - lean_ctor_release(x_46, 2); - x_51 = x_46; +x_51 = lean_ctor_get(x_47, 2); +lean_inc(x_51); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + lean_ctor_release(x_47, 2); + x_52 = x_47; } else { - lean_dec_ref(x_46); - x_51 = lean_box(0); + lean_dec_ref(x_47); + x_52 = lean_box(0); } -lean_inc(x_47); -x_52 = lean_metavar_ctx_assign_expr(x_48, x_5, x_47); -if (lean_is_scalar(x_51)) { - x_53 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_48); +x_53 = lean_metavar_ctx_assign_expr(x_49, x_5, x_48); +if (lean_is_scalar(x_52)) { + x_54 = lean_alloc_ctor(0, 3, 0); } else { - x_53 = x_51; + x_54 = x_52; } -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_49); -lean_ctor_set(x_53, 2, x_50); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_47); -lean_ctor_set(x_54, 1, x_53); -return x_54; +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_50); +lean_ctor_set(x_54, 2, x_51); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_48); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } @@ -4467,216 +4475,226 @@ return x_54; } else { -lean_object* x_55; lean_object* x_56; +lean_object* x_56; lean_object* x_57; lean_dec(x_17); lean_dec(x_15); lean_dec(x_14); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_55 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_55, 0, x_5); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_4); -return x_56; +x_56 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_56, 0, x_5); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_4); +return x_57; } } } else { -lean_object* x_57; +lean_object* x_58; lean_dec(x_17); lean_dec(x_15); lean_dec(x_14); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_2); -lean_ctor_set(x_57, 1, x_4); -return x_57; +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_2); +lean_ctor_set(x_58, 1, x_4); +return x_58; } } else { -lean_object* x_58; lean_object* x_59; +lean_object* x_59; lean_object* x_60; lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_58 = lean_box(1); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_4); -return x_59; +x_59 = lean_box(1); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_4); +return x_60; } } } else { -lean_object* x_60; lean_object* x_61; +lean_object* x_61; lean_object* x_62; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_60 = lean_box(0); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_4); -return x_61; +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_4); +return x_62; } } else { -lean_object* x_62; lean_object* x_63; uint8_t x_86; +lean_object* x_63; lean_object* x_64; uint8_t x_87; lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); -x_62 = lean_ctor_get(x_7, 0); -lean_inc(x_62); +x_63 = lean_ctor_get(x_7, 0); +lean_inc(x_63); lean_dec(x_7); -x_86 = lean_expr_has_expr_mvar(x_62); -if (x_86 == 0) -{ -uint8_t x_87; -x_87 = lean_expr_has_fvar(x_62); +x_87 = l_Lean_Expr_hasExprMVar(x_63); if (x_87 == 0) { -lean_object* x_88; -lean_dec(x_3); -lean_dec(x_1); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_62); -lean_ctor_set(x_88, 1, x_4); -return x_88; -} -else +uint8_t x_88; +x_88 = l_Lean_Expr_hasFVar(x_63); +if (x_88 == 0) { lean_object* x_89; -x_89 = lean_box(0); -x_63 = x_89; -goto block_85; -} +lean_dec(x_3); +lean_dec(x_1); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_63); +lean_ctor_set(x_89, 1, x_4); +return x_89; } else { lean_object* x_90; x_90 = lean_box(0); -x_63 = x_90; -goto block_85; +x_64 = x_90; +goto block_86; } -block_85: +} +else { -lean_object* x_64; lean_object* x_65; -lean_dec(x_63); -x_64 = l_Lean_Meta_CheckAssignment_findCached(x_62, x_3, x_4); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -if (lean_obj_tag(x_65) == 0) +lean_object* x_91; +x_91 = lean_box(0); +x_64 = x_91; +goto block_86; +} +block_86: { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); +lean_object* x_65; lean_object* x_66; lean_dec(x_64); +x_65 = l_Lean_Meta_CheckAssignment_findCached(x_63, x_3, x_4); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); lean_inc(x_3); -lean_inc(x_62); -x_67 = lean_apply_3(x_1, x_62, x_3, x_66); -if (lean_obj_tag(x_67) == 0) +lean_inc(x_63); +x_68 = lean_apply_3(x_1, x_63, x_3, x_67); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -lean_inc(x_68); -x_70 = l_Lean_Meta_CheckAssignment_cache(x_62, x_68, x_3, x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_69); +x_71 = l_Lean_Meta_CheckAssignment_cache(x_63, x_69, x_3, x_70); lean_dec(x_3); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -lean_object* x_72; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); -lean_ctor_set(x_70, 0, x_68); -return x_70; +lean_object* x_73; +x_73 = lean_ctor_get(x_71, 0); +lean_dec(x_73); +lean_ctor_set(x_71, 0, x_69); +return x_71; } else { -lean_object* x_73; lean_object* x_74; -x_73 = lean_ctor_get(x_70, 1); -lean_inc(x_73); -lean_dec(x_70); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_68); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_69); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } else { -uint8_t x_75; -lean_dec(x_62); +uint8_t x_76; +lean_dec(x_63); lean_dec(x_3); -x_75 = !lean_is_exclusive(x_67); -if (x_75 == 0) +x_76 = !lean_is_exclusive(x_68); +if (x_76 == 0) { -return x_67; +return x_68; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_67, 0); -x_77 = lean_ctor_get(x_67, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_68, 0); +x_78 = lean_ctor_get(x_68, 1); +lean_inc(x_78); lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_67); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -return x_78; +lean_dec(x_68); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } else { -uint8_t x_79; -lean_dec(x_62); +uint8_t x_80; +lean_dec(x_63); lean_dec(x_3); lean_dec(x_1); -x_79 = !lean_is_exclusive(x_64); -if (x_79 == 0) +x_80 = !lean_is_exclusive(x_65); +if (x_80 == 0) { -lean_object* x_80; lean_object* x_81; -x_80 = lean_ctor_get(x_64, 0); -lean_dec(x_80); +lean_object* x_81; lean_object* x_82; x_81 = lean_ctor_get(x_65, 0); -lean_inc(x_81); -lean_dec(x_65); -lean_ctor_set(x_64, 0, x_81); -return x_64; +lean_dec(x_81); +x_82 = lean_ctor_get(x_66, 0); +lean_inc(x_82); +lean_dec(x_66); +lean_ctor_set(x_65, 0, x_82); +return x_65; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_64, 1); -lean_inc(x_82); -lean_dec(x_64); -x_83 = lean_ctor_get(x_65, 0); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_65, 1); lean_inc(x_83); lean_dec(x_65); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -return x_84; +x_84 = lean_ctor_get(x_66, 0); +lean_inc(x_84); +lean_dec(x_66); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; } } } } } } +lean_object* _init_l_Lean_Meta_CheckAssignment_check___main___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Meta_InferType_1__getForallResultType___closed__1; +x_2 = l_Lean_Expr_Inhabited; +x_3 = l_monadInhabited___rarg(x_1, x_2); +return x_3; +} +} lean_object* l_Lean_Meta_CheckAssignment_check___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4685,11 +4703,11 @@ switch (lean_obj_tag(x_1)) { case 1: { lean_object* x_30; uint8_t x_116; -x_116 = lean_expr_has_expr_mvar(x_1); +x_116 = l_Lean_Expr_hasExprMVar(x_1); if (x_116 == 0) { uint8_t x_117; -x_117 = lean_expr_has_fvar(x_1); +x_117 = l_Lean_Expr_hasFVar(x_1); if (x_117 == 0) { lean_object* x_118; @@ -4814,11 +4832,11 @@ lean_free_object(x_31); x_50 = lean_ctor_get(x_45, 4); lean_inc(x_50); lean_dec(x_45); -x_67 = lean_expr_has_expr_mvar(x_50); +x_67 = l_Lean_Expr_hasExprMVar(x_50); if (x_67 == 0) { uint8_t x_68; -x_68 = lean_expr_has_fvar(x_50); +x_68 = l_Lean_Expr_hasFVar(x_50); if (x_68 == 0) { x_4 = x_50; @@ -5014,11 +5032,11 @@ lean_object* x_88; lean_object* x_89; uint8_t x_105; x_88 = lean_ctor_get(x_82, 4); lean_inc(x_88); lean_dec(x_82); -x_105 = lean_expr_has_expr_mvar(x_88); +x_105 = l_Lean_Expr_hasExprMVar(x_88); if (x_105 == 0) { uint8_t x_106; -x_106 = lean_expr_has_fvar(x_88); +x_106 = l_Lean_Expr_hasFVar(x_88); if (x_106 == 0) { x_4 = x_88; @@ -5164,37 +5182,37 @@ return x_114; } case 2: { -lean_object* x_121; uint8_t x_255; -x_255 = lean_expr_has_expr_mvar(x_1); -if (x_255 == 0) +lean_object* x_121; uint8_t x_257; +x_257 = l_Lean_Expr_hasExprMVar(x_1); +if (x_257 == 0) { -uint8_t x_256; -x_256 = lean_expr_has_fvar(x_1); -if (x_256 == 0) -{ -lean_object* x_257; -lean_dec(x_2); -x_257 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_257, 0, x_1); -lean_ctor_set(x_257, 1, x_3); -return x_257; -} -else -{ -lean_object* x_258; -x_258 = lean_box(0); -x_121 = x_258; -goto block_254; -} -} -else +uint8_t x_258; +x_258 = l_Lean_Expr_hasFVar(x_1); +if (x_258 == 0) { lean_object* x_259; -x_259 = lean_box(0); -x_121 = x_259; -goto block_254; +lean_dec(x_2); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_1); +lean_ctor_set(x_259, 1, x_3); +return x_259; } -block_254: +else +{ +lean_object* x_260; +x_260 = lean_box(0); +x_121 = x_260; +goto block_256; +} +} +else +{ +lean_object* x_261; +x_261 = lean_box(0); +x_121 = x_261; +goto block_256; +} +block_256: { lean_object* x_122; lean_object* x_123; lean_dec(x_121); @@ -5327,66 +5345,68 @@ goto block_11; } else { -lean_object* x_147; uint8_t x_148; +lean_object* x_147; lean_object* x_148; uint8_t x_149; x_147 = lean_ctor_get(x_135, 2); lean_inc(x_147); lean_dec(x_135); lean_inc(x_147); lean_inc(x_138); x_148 = l_Lean_MetavarContext_isWellFormed___main(x_128, x_138, x_147); -if (x_148 == 0) +x_149 = lean_unbox(x_148); +lean_dec(x_148); +if (x_149 == 0) { -lean_object* x_149; +lean_object* x_150; lean_dec(x_147); lean_dec(x_138); lean_dec(x_2); lean_dec(x_1); -x_149 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_149, 0, x_127); +x_150 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_150, 0, x_127); lean_ctor_set_tag(x_122, 1); -lean_ctor_set(x_122, 0, x_149); +lean_ctor_set(x_122, 0, x_150); return x_122; } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; +lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; lean_free_object(x_122); -x_150 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_138, x_147, x_2, x_125); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 0); +x_151 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_138, x_147, x_2, x_125); +x_152 = lean_ctor_get(x_151, 1); lean_inc(x_152); -lean_dec(x_150); -x_153 = !lean_is_exclusive(x_151); -if (x_153 == 0) +x_153 = lean_ctor_get(x_151, 0); +lean_inc(x_153); +lean_dec(x_151); +x_154 = !lean_is_exclusive(x_152); +if (x_154 == 0) { -lean_object* x_154; lean_object* x_155; -x_154 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_155 = lean_metavar_ctx_assign_expr(x_154, x_127, x_152); -lean_ctor_set(x_151, 0, x_155); -x_4 = x_152; -x_5 = x_151; +lean_object* x_155; lean_object* x_156; +x_155 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +x_156 = lean_metavar_ctx_assign_expr(x_155, x_127, x_153); +lean_ctor_set(x_152, 0, x_156); +x_4 = x_153; +x_5 = x_152; goto block_11; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_156 = lean_ctor_get(x_151, 0); -x_157 = lean_ctor_get(x_151, 1); -x_158 = lean_ctor_get(x_151, 2); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_157 = lean_ctor_get(x_152, 0); +x_158 = lean_ctor_get(x_152, 1); +x_159 = lean_ctor_get(x_152, 2); +lean_inc(x_159); lean_inc(x_158); lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_151); -lean_inc(x_152); -x_159 = lean_metavar_ctx_assign_expr(x_156, x_127, x_152); -x_160 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_157); -lean_ctor_set(x_160, 2, x_158); -x_4 = x_152; -x_5 = x_160; +lean_dec(x_152); +lean_inc(x_153); +x_160 = lean_metavar_ctx_assign_expr(x_157, x_127, x_153); +x_161 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_158); +lean_ctor_set(x_161, 2, x_159); +x_4 = x_153; +x_5 = x_161; goto block_11; } } @@ -5395,44 +5415,15 @@ goto block_11; } else { -lean_object* x_161; -lean_dec(x_138); -lean_dec(x_136); -lean_dec(x_135); -lean_dec(x_128); -lean_dec(x_2); -lean_dec(x_1); -x_161 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_161, 0, x_127); -lean_ctor_set_tag(x_122, 1); -lean_ctor_set(x_122, 0, x_161); -return x_122; -} -} -} -else -{ -lean_dec(x_138); -lean_dec(x_136); -lean_dec(x_135); -lean_dec(x_128); -lean_dec(x_127); -lean_free_object(x_122); -lean_inc(x_1); -x_4 = x_1; -x_5 = x_125; -goto block_11; -} -} -else -{ lean_object* x_162; -lean_dec(x_132); +lean_dec(x_138); +lean_dec(x_136); +lean_dec(x_135); lean_dec(x_128); -lean_dec(x_127); lean_dec(x_2); lean_dec(x_1); -x_162 = lean_box(1); +x_162 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_162, 0, x_127); lean_ctor_set_tag(x_122, 1); lean_ctor_set(x_122, 0, x_162); return x_122; @@ -5441,123 +5432,152 @@ return x_122; } else { +lean_dec(x_138); +lean_dec(x_136); +lean_dec(x_135); +lean_dec(x_128); +lean_dec(x_127); +lean_free_object(x_122); +lean_inc(x_1); +x_4 = x_1; +x_5 = x_125; +goto block_11; +} +} +else +{ lean_object* x_163; +lean_dec(x_132); lean_dec(x_128); lean_dec(x_127); lean_dec(x_2); lean_dec(x_1); -x_163 = lean_box(0); +x_163 = lean_box(1); lean_ctor_set_tag(x_122, 1); lean_ctor_set(x_122, 0, x_163); return x_122; } } +} else { -lean_object* x_164; lean_object* x_165; uint8_t x_181; +lean_object* x_164; +lean_dec(x_128); +lean_dec(x_127); +lean_dec(x_2); +lean_dec(x_1); +x_164 = lean_box(0); +lean_ctor_set_tag(x_122, 1); +lean_ctor_set(x_122, 0, x_164); +return x_122; +} +} +else +{ +lean_object* x_165; lean_object* x_166; uint8_t x_182; lean_dec(x_128); lean_dec(x_127); lean_free_object(x_122); -x_164 = lean_ctor_get(x_129, 0); -lean_inc(x_164); +x_165 = lean_ctor_get(x_129, 0); +lean_inc(x_165); lean_dec(x_129); -x_181 = lean_expr_has_expr_mvar(x_164); -if (x_181 == 0) -{ -uint8_t x_182; -x_182 = lean_expr_has_fvar(x_164); +x_182 = l_Lean_Expr_hasExprMVar(x_165); if (x_182 == 0) { -x_4 = x_164; +uint8_t x_183; +x_183 = l_Lean_Expr_hasFVar(x_165); +if (x_183 == 0) +{ +x_4 = x_165; x_5 = x_125; goto block_11; } else { -lean_object* x_183; -x_183 = lean_box(0); -x_165 = x_183; -goto block_180; -} -} -else -{ lean_object* x_184; x_184 = lean_box(0); -x_165 = x_184; -goto block_180; +x_166 = x_184; +goto block_181; } -block_180: +} +else { -lean_object* x_166; lean_object* x_167; -lean_dec(x_165); -x_166 = l_Lean_Meta_CheckAssignment_findCached(x_164, x_2, x_125); -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -if (lean_obj_tag(x_167) == 0) +lean_object* x_185; +x_185 = lean_box(0); +x_166 = x_185; +goto block_181; +} +block_181: { -lean_object* x_168; lean_object* x_169; -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); +lean_object* x_167; lean_object* x_168; lean_dec(x_166); -lean_inc(x_2); -lean_inc(x_164); -x_169 = l_Lean_Meta_CheckAssignment_check___main(x_164, x_2, x_168); -if (lean_obj_tag(x_169) == 0) +x_167 = l_Lean_Meta_CheckAssignment_findCached(x_165, x_2, x_125); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +if (lean_obj_tag(x_168) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec(x_167); +lean_inc(x_2); +lean_inc(x_165); +x_170 = l_Lean_Meta_CheckAssignment_check___main(x_165, x_2, x_169); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_171 = lean_ctor_get(x_170, 0); lean_inc(x_171); -lean_dec(x_169); -lean_inc(x_170); -x_172 = l_Lean_Meta_CheckAssignment_cache(x_164, x_170, x_2, x_171); -x_173 = lean_ctor_get(x_172, 1); -lean_inc(x_173); -lean_dec(x_172); -x_4 = x_170; -x_5 = x_173; +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +lean_inc(x_171); +x_173 = l_Lean_Meta_CheckAssignment_cache(x_165, x_171, x_2, x_172); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +lean_dec(x_173); +x_4 = x_171; +x_5 = x_174; goto block_11; } else { -uint8_t x_174; -lean_dec(x_164); +uint8_t x_175; +lean_dec(x_165); lean_dec(x_2); lean_dec(x_1); -x_174 = !lean_is_exclusive(x_169); -if (x_174 == 0) +x_175 = !lean_is_exclusive(x_170); +if (x_175 == 0) { -return x_169; +return x_170; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_175 = lean_ctor_get(x_169, 0); -x_176 = lean_ctor_get(x_169, 1); +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_170, 0); +x_177 = lean_ctor_get(x_170, 1); +lean_inc(x_177); lean_inc(x_176); -lean_inc(x_175); -lean_dec(x_169); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set(x_177, 1, x_176); -return x_177; +lean_dec(x_170); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_176); +lean_ctor_set(x_178, 1, x_177); +return x_178; } } } else { -lean_object* x_178; lean_object* x_179; -lean_dec(x_164); -x_178 = lean_ctor_get(x_166, 1); -lean_inc(x_178); -lean_dec(x_166); -x_179 = lean_ctor_get(x_167, 0); +lean_object* x_179; lean_object* x_180; +lean_dec(x_165); +x_179 = lean_ctor_get(x_167, 1); lean_inc(x_179); lean_dec(x_167); -x_4 = x_179; -x_5 = x_178; +x_180 = lean_ctor_get(x_168, 0); +lean_inc(x_180); +lean_dec(x_168); +x_4 = x_180; +x_5 = x_179; goto block_11; } } @@ -5565,356 +5585,358 @@ goto block_11; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_185 = lean_ctor_get(x_122, 1); -lean_inc(x_185); +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_186 = lean_ctor_get(x_122, 1); +lean_inc(x_186); lean_dec(x_122); -x_186 = l_Lean_Expr_mvarId_x21(x_1); -x_187 = lean_ctor_get(x_185, 0); +x_187 = l_Lean_Expr_mvarId_x21(x_1); +x_188 = lean_ctor_get(x_186, 0); +lean_inc(x_188); lean_inc(x_187); -lean_inc(x_186); +lean_inc(x_188); +x_189 = lean_metavar_ctx_get_expr_assignment(x_188, x_187); +if (lean_obj_tag(x_189) == 0) +{ +lean_object* x_190; uint8_t x_191; +x_190 = lean_ctor_get(x_2, 1); +lean_inc(x_190); +x_191 = lean_name_dec_eq(x_187, x_190); +lean_dec(x_190); +if (x_191 == 0) +{ +lean_object* x_192; lean_inc(x_187); -x_188 = lean_metavar_ctx_get_expr_assignment(x_187, x_186); -if (lean_obj_tag(x_188) == 0) +lean_inc(x_188); +x_192 = lean_metavar_ctx_find_decl(x_188, x_187); +if (lean_obj_tag(x_192) == 0) { -lean_object* x_189; uint8_t x_190; -x_189 = lean_ctor_get(x_2, 1); -lean_inc(x_189); -x_190 = lean_name_dec_eq(x_186, x_189); -lean_dec(x_189); -if (x_190 == 0) -{ -lean_object* x_191; -lean_inc(x_186); -lean_inc(x_187); -x_191 = lean_metavar_ctx_find_decl(x_187, x_186); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; lean_object* x_193; -lean_dec(x_187); +lean_object* x_193; lean_object* x_194; +lean_dec(x_188); lean_dec(x_2); lean_dec(x_1); -x_192 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_192, 0, x_186); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_185); -return x_193; +x_193 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_193, 0, x_187); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_186); +return x_194; } else { -uint8_t x_194; -x_194 = lean_ctor_get_uint8(x_2, sizeof(void*)*4 + 1); -if (x_194 == 0) +uint8_t x_195; +x_195 = lean_ctor_get_uint8(x_2, sizeof(void*)*4 + 1); +if (x_195 == 0) { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; -x_195 = lean_ctor_get(x_191, 0); -lean_inc(x_195); -lean_dec(x_191); -x_196 = lean_ctor_get(x_195, 1); +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_196 = lean_ctor_get(x_192, 0); lean_inc(x_196); -x_197 = lean_ctor_get(x_2, 2); +lean_dec(x_192); +x_197 = lean_ctor_get(x_196, 1); lean_inc(x_197); -x_198 = lean_ctor_get(x_197, 1); +x_198 = lean_ctor_get(x_2, 2); lean_inc(x_198); -lean_dec(x_197); -lean_inc(x_198); -lean_inc(x_196); -x_199 = l_Lean_LocalContext_isSubPrefixOf(x_196, x_198); -if (x_199 == 0) -{ -lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_200 = lean_ctor_get(x_195, 3); -lean_inc(x_200); -x_201 = lean_ctor_get(x_187, 0); -lean_inc(x_201); -x_202 = lean_nat_dec_eq(x_200, x_201); -lean_dec(x_201); -lean_dec(x_200); -if (x_202 == 0) -{ -lean_object* x_203; lean_object* x_204; +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); lean_dec(x_198); +lean_inc(x_199); +lean_inc(x_197); +x_200 = l_Lean_LocalContext_isSubPrefixOf(x_197, x_199); +if (x_200 == 0) +{ +lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_201 = lean_ctor_get(x_196, 3); +lean_inc(x_201); +x_202 = lean_ctor_get(x_188, 0); +lean_inc(x_202); +x_203 = lean_nat_dec_eq(x_201, x_202); +lean_dec(x_202); +lean_dec(x_201); +if (x_203 == 0) +{ +lean_object* x_204; lean_object* x_205; +lean_dec(x_199); +lean_dec(x_197); lean_dec(x_196); -lean_dec(x_195); -lean_dec(x_187); +lean_dec(x_188); lean_dec(x_2); lean_dec(x_1); -x_203 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_203, 0, x_186); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_185); -return x_204; +x_204 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_204, 0, x_187); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_186); +return x_205; } else { -uint8_t x_205; -x_205 = lean_ctor_get_uint8(x_195, sizeof(void*)*4); -if (x_205 == 0) -{ uint8_t x_206; -x_206 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +x_206 = lean_ctor_get_uint8(x_196, sizeof(void*)*4); if (x_206 == 0) { -lean_dec(x_198); -lean_dec(x_196); -lean_dec(x_195); -lean_dec(x_187); -lean_dec(x_186); -lean_inc(x_1); -x_4 = x_1; -x_5 = x_185; -goto block_11; -} -else -{ uint8_t x_207; -lean_inc(x_198); -x_207 = l_Lean_LocalContext_isSubPrefixOf(x_198, x_196); +x_207 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); if (x_207 == 0) { -lean_dec(x_198); -lean_dec(x_195); +lean_dec(x_199); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_188); lean_dec(x_187); -lean_dec(x_186); lean_inc(x_1); x_4 = x_1; -x_5 = x_185; +x_5 = x_186; goto block_11; } else { -lean_object* x_208; uint8_t x_209; -x_208 = lean_ctor_get(x_195, 2); -lean_inc(x_208); -lean_dec(x_195); -lean_inc(x_208); -lean_inc(x_198); -x_209 = l_Lean_MetavarContext_isWellFormed___main(x_187, x_198, x_208); -if (x_209 == 0) +uint8_t x_208; +lean_inc(x_199); +x_208 = l_Lean_LocalContext_isSubPrefixOf(x_199, x_197); +if (x_208 == 0) { -lean_object* x_210; lean_object* x_211; -lean_dec(x_208); -lean_dec(x_198); -lean_dec(x_2); -lean_dec(x_1); -x_210 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_210, 0, x_186); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_185); -return x_211; +lean_dec(x_199); +lean_dec(x_196); +lean_dec(x_188); +lean_dec(x_187); +lean_inc(x_1); +x_4 = x_1; +x_5 = x_186; +goto block_11; } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_212 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_198, x_208, x_2, x_185); -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 0); -lean_inc(x_214); -lean_dec(x_212); -x_215 = lean_ctor_get(x_213, 0); +lean_object* x_209; lean_object* x_210; uint8_t x_211; +x_209 = lean_ctor_get(x_196, 2); +lean_inc(x_209); +lean_dec(x_196); +lean_inc(x_209); +lean_inc(x_199); +x_210 = l_Lean_MetavarContext_isWellFormed___main(x_188, x_199, x_209); +x_211 = lean_unbox(x_210); +lean_dec(x_210); +if (x_211 == 0) +{ +lean_object* x_212; lean_object* x_213; +lean_dec(x_209); +lean_dec(x_199); +lean_dec(x_2); +lean_dec(x_1); +x_212 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_212, 0, x_187); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_186); +return x_213; +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_214 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_199, x_209, x_2, x_186); +x_215 = lean_ctor_get(x_214, 1); lean_inc(x_215); -x_216 = lean_ctor_get(x_213, 1); +x_216 = lean_ctor_get(x_214, 0); lean_inc(x_216); -x_217 = lean_ctor_get(x_213, 2); +lean_dec(x_214); +x_217 = lean_ctor_get(x_215, 0); lean_inc(x_217); -if (lean_is_exclusive(x_213)) { - lean_ctor_release(x_213, 0); - lean_ctor_release(x_213, 1); - lean_ctor_release(x_213, 2); - x_218 = x_213; +x_218 = lean_ctor_get(x_215, 1); +lean_inc(x_218); +x_219 = lean_ctor_get(x_215, 2); +lean_inc(x_219); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + lean_ctor_release(x_215, 2); + x_220 = x_215; } else { - lean_dec_ref(x_213); - x_218 = lean_box(0); + lean_dec_ref(x_215); + x_220 = lean_box(0); } -lean_inc(x_214); -x_219 = lean_metavar_ctx_assign_expr(x_215, x_186, x_214); -if (lean_is_scalar(x_218)) { - x_220 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_216); +x_221 = lean_metavar_ctx_assign_expr(x_217, x_187, x_216); +if (lean_is_scalar(x_220)) { + x_222 = lean_alloc_ctor(0, 3, 0); } else { - x_220 = x_218; + x_222 = x_220; } -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_216); -lean_ctor_set(x_220, 2, x_217); -x_4 = x_214; -x_5 = x_220; -goto block_11; -} -} -} -} -else -{ -lean_object* x_221; lean_object* x_222; -lean_dec(x_198); -lean_dec(x_196); -lean_dec(x_195); -lean_dec(x_187); -lean_dec(x_2); -lean_dec(x_1); -x_221 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_221, 0, x_186); -x_222 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_222, 0, x_221); -lean_ctor_set(x_222, 1, x_185); -return x_222; -} -} -} -else -{ -lean_dec(x_198); -lean_dec(x_196); -lean_dec(x_195); -lean_dec(x_187); -lean_dec(x_186); -lean_inc(x_1); -x_4 = x_1; -x_5 = x_185; +lean_ctor_set(x_222, 1, x_218); +lean_ctor_set(x_222, 2, x_219); +x_4 = x_216; +x_5 = x_222; goto block_11; } } +} +} else { lean_object* x_223; lean_object* x_224; -lean_dec(x_191); -lean_dec(x_187); -lean_dec(x_186); +lean_dec(x_199); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_188); lean_dec(x_2); lean_dec(x_1); -x_223 = lean_box(1); +x_223 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_223, 0, x_187); x_224 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_185); +lean_ctor_set(x_224, 1, x_186); return x_224; } } } else { -lean_object* x_225; lean_object* x_226; +lean_dec(x_199); +lean_dec(x_197); +lean_dec(x_196); +lean_dec(x_188); +lean_dec(x_187); +lean_inc(x_1); +x_4 = x_1; +x_5 = x_186; +goto block_11; +} +} +else +{ +lean_object* x_225; lean_object* x_226; +lean_dec(x_192); +lean_dec(x_188); lean_dec(x_187); -lean_dec(x_186); lean_dec(x_2); lean_dec(x_1); -x_225 = lean_box(0); +x_225 = lean_box(1); x_226 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_185); +lean_ctor_set(x_226, 1, x_186); return x_226; } } +} else { -lean_object* x_227; lean_object* x_228; uint8_t x_244; -lean_dec(x_187); -lean_dec(x_186); -x_227 = lean_ctor_get(x_188, 0); -lean_inc(x_227); +lean_object* x_227; lean_object* x_228; lean_dec(x_188); -x_244 = lean_expr_has_expr_mvar(x_227); -if (x_244 == 0) +lean_dec(x_187); +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_box(0); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_186); +return x_228; +} +} +else { -uint8_t x_245; -x_245 = lean_expr_has_fvar(x_227); -if (x_245 == 0) +lean_object* x_229; lean_object* x_230; uint8_t x_246; +lean_dec(x_188); +lean_dec(x_187); +x_229 = lean_ctor_get(x_189, 0); +lean_inc(x_229); +lean_dec(x_189); +x_246 = l_Lean_Expr_hasExprMVar(x_229); +if (x_246 == 0) { -x_4 = x_227; -x_5 = x_185; +uint8_t x_247; +x_247 = l_Lean_Expr_hasFVar(x_229); +if (x_247 == 0) +{ +x_4 = x_229; +x_5 = x_186; goto block_11; } else { -lean_object* x_246; -x_246 = lean_box(0); -x_228 = x_246; -goto block_243; +lean_object* x_248; +x_248 = lean_box(0); +x_230 = x_248; +goto block_245; } } else { -lean_object* x_247; -x_247 = lean_box(0); -x_228 = x_247; -goto block_243; +lean_object* x_249; +x_249 = lean_box(0); +x_230 = x_249; +goto block_245; } -block_243: -{ -lean_object* x_229; lean_object* x_230; -lean_dec(x_228); -x_229 = l_Lean_Meta_CheckAssignment_findCached(x_227, x_2, x_185); -x_230 = lean_ctor_get(x_229, 0); -lean_inc(x_230); -if (lean_obj_tag(x_230) == 0) +block_245: { lean_object* x_231; lean_object* x_232; -x_231 = lean_ctor_get(x_229, 1); -lean_inc(x_231); -lean_dec(x_229); -lean_inc(x_2); -lean_inc(x_227); -x_232 = l_Lean_Meta_CheckAssignment_check___main(x_227, x_2, x_231); +lean_dec(x_230); +x_231 = l_Lean_Meta_CheckAssignment_findCached(x_229, x_2, x_186); +x_232 = lean_ctor_get(x_231, 0); +lean_inc(x_232); if (lean_obj_tag(x_232) == 0) { -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_233 = lean_ctor_get(x_232, 0); +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_231, 1); lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -lean_dec(x_232); -lean_inc(x_233); -x_235 = l_Lean_Meta_CheckAssignment_cache(x_227, x_233, x_2, x_234); -x_236 = lean_ctor_get(x_235, 1); +lean_dec(x_231); +lean_inc(x_2); +lean_inc(x_229); +x_234 = l_Lean_Meta_CheckAssignment_check___main(x_229, x_2, x_233); +if (lean_obj_tag(x_234) == 0) +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); lean_inc(x_236); -lean_dec(x_235); -x_4 = x_233; -x_5 = x_236; -goto block_11; -} -else -{ -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -lean_dec(x_227); -lean_dec(x_2); -lean_dec(x_1); -x_237 = lean_ctor_get(x_232, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_232, 1); +lean_dec(x_234); +lean_inc(x_235); +x_237 = l_Lean_Meta_CheckAssignment_cache(x_229, x_235, x_2, x_236); +x_238 = lean_ctor_get(x_237, 1); lean_inc(x_238); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - x_239 = x_232; -} else { - lean_dec_ref(x_232); - x_239 = lean_box(0); +lean_dec(x_237); +x_4 = x_235; +x_5 = x_238; +goto block_11; } -if (lean_is_scalar(x_239)) { - x_240 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_229); +lean_dec(x_2); +lean_dec(x_1); +x_239 = lean_ctor_get(x_234, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_234, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_241 = x_234; } else { - x_240 = x_239; + lean_dec_ref(x_234); + x_241 = lean_box(0); } -lean_ctor_set(x_240, 0, x_237); -lean_ctor_set(x_240, 1, x_238); -return x_240; +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); +return x_242; } } else { -lean_object* x_241; lean_object* x_242; -lean_dec(x_227); -x_241 = lean_ctor_get(x_229, 1); -lean_inc(x_241); +lean_object* x_243; lean_object* x_244; lean_dec(x_229); -x_242 = lean_ctor_get(x_230, 0); -lean_inc(x_242); -lean_dec(x_230); -x_4 = x_242; -x_5 = x_241; +x_243 = lean_ctor_get(x_231, 1); +lean_inc(x_243); +lean_dec(x_231); +x_244 = lean_ctor_get(x_232, 0); +lean_inc(x_244); +lean_dec(x_232); +x_4 = x_244; +x_5 = x_243; goto block_11; } } @@ -5923,1349 +5945,1360 @@ goto block_11; } else { -uint8_t x_248; +uint8_t x_250; lean_dec(x_2); lean_dec(x_1); -x_248 = !lean_is_exclusive(x_122); -if (x_248 == 0) +x_250 = !lean_is_exclusive(x_122); +if (x_250 == 0) { -lean_object* x_249; lean_object* x_250; -x_249 = lean_ctor_get(x_122, 0); -lean_dec(x_249); -x_250 = lean_ctor_get(x_123, 0); -lean_inc(x_250); +lean_object* x_251; lean_object* x_252; +x_251 = lean_ctor_get(x_122, 0); +lean_dec(x_251); +x_252 = lean_ctor_get(x_123, 0); +lean_inc(x_252); lean_dec(x_123); -lean_ctor_set(x_122, 0, x_250); +lean_ctor_set(x_122, 0, x_252); return x_122; } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_251 = lean_ctor_get(x_122, 1); -lean_inc(x_251); +lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_253 = lean_ctor_get(x_122, 1); +lean_inc(x_253); lean_dec(x_122); -x_252 = lean_ctor_get(x_123, 0); -lean_inc(x_252); +x_254 = lean_ctor_get(x_123, 0); +lean_inc(x_254); lean_dec(x_123); -x_253 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_253, 0, x_252); -lean_ctor_set(x_253, 1, x_251); -return x_253; +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_253); +return x_255; } } } } case 5: { -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_294; uint8_t x_310; -x_260 = lean_ctor_get(x_1, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_1, 1); -lean_inc(x_261); -x_310 = lean_expr_has_expr_mvar(x_260); -if (x_310 == 0) +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_296; uint8_t x_312; +x_262 = lean_ctor_get(x_1, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_1, 1); +lean_inc(x_263); +x_312 = l_Lean_Expr_hasExprMVar(x_262); +if (x_312 == 0) { -uint8_t x_311; -x_311 = lean_expr_has_fvar(x_260); -if (x_311 == 0) +uint8_t x_313; +x_313 = l_Lean_Expr_hasFVar(x_262); +if (x_313 == 0) { -x_262 = x_260; -x_263 = x_3; -goto block_293; +x_264 = x_262; +x_265 = x_3; +goto block_295; } else { -lean_object* x_312; -x_312 = lean_box(0); -x_294 = x_312; -goto block_309; +lean_object* x_314; +x_314 = lean_box(0); +x_296 = x_314; +goto block_311; } } else { -lean_object* x_313; -x_313 = lean_box(0); -x_294 = x_313; -goto block_309; +lean_object* x_315; +x_315 = lean_box(0); +x_296 = x_315; +goto block_311; } -block_293: +block_295: { -lean_object* x_264; lean_object* x_265; lean_object* x_273; uint8_t x_289; -x_289 = lean_expr_has_expr_mvar(x_261); -if (x_289 == 0) +lean_object* x_266; lean_object* x_267; lean_object* x_275; uint8_t x_291; +x_291 = l_Lean_Expr_hasExprMVar(x_263); +if (x_291 == 0) { -uint8_t x_290; -x_290 = lean_expr_has_fvar(x_261); -if (x_290 == 0) +uint8_t x_292; +x_292 = l_Lean_Expr_hasFVar(x_263); +if (x_292 == 0) { lean_dec(x_2); -x_264 = x_261; -x_265 = x_263; -goto block_272; +x_266 = x_263; +x_267 = x_265; +goto block_274; } else { -lean_object* x_291; -x_291 = lean_box(0); -x_273 = x_291; -goto block_288; +lean_object* x_293; +x_293 = lean_box(0); +x_275 = x_293; +goto block_290; } } else { -lean_object* x_292; -x_292 = lean_box(0); -x_273 = x_292; -goto block_288; +lean_object* x_294; +x_294 = lean_box(0); +x_275 = x_294; +goto block_290; } -block_272: +block_274: { if (lean_obj_tag(x_1) == 5) { -lean_object* x_266; lean_object* x_267; -x_266 = lean_expr_update_app(x_1, x_262, x_264); -x_267 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_267, 0, x_266); -lean_ctor_set(x_267, 1, x_265); -return x_267; +lean_object* x_268; lean_object* x_269; +x_268 = lean_expr_update_app(x_1, x_264, x_266); +x_269 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_267); +return x_269; } else { -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +lean_dec(x_266); lean_dec(x_264); -lean_dec(x_262); lean_dec(x_1); -x_268 = l_Lean_Expr_inhabited; -x_269 = l_Lean_Expr_updateApp_x21___closed__1; -x_270 = lean_panic_fn(x_269); -x_271 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_265); -return x_271; +x_270 = l_Lean_Expr_Inhabited; +x_271 = l_Lean_Expr_updateApp_x21___closed__1; +x_272 = lean_panic_fn(x_271); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_267); +return x_273; } } -block_288: -{ -lean_object* x_274; lean_object* x_275; -lean_dec(x_273); -x_274 = l_Lean_Meta_CheckAssignment_findCached(x_261, x_2, x_263); -x_275 = lean_ctor_get(x_274, 0); -lean_inc(x_275); -if (lean_obj_tag(x_275) == 0) +block_290: { lean_object* x_276; lean_object* x_277; -x_276 = lean_ctor_get(x_274, 1); -lean_inc(x_276); -lean_dec(x_274); -lean_inc(x_2); -lean_inc(x_261); -x_277 = l_Lean_Meta_CheckAssignment_check___main(x_261, x_2, x_276); +lean_dec(x_275); +x_276 = l_Lean_Meta_CheckAssignment_findCached(x_263, x_2, x_265); +x_277 = lean_ctor_get(x_276, 0); +lean_inc(x_277); if (lean_obj_tag(x_277) == 0) { -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_278 = lean_ctor_get(x_277, 0); +lean_object* x_278; lean_object* x_279; +x_278 = lean_ctor_get(x_276, 1); lean_inc(x_278); -x_279 = lean_ctor_get(x_277, 1); -lean_inc(x_279); -lean_dec(x_277); -lean_inc(x_278); -x_280 = l_Lean_Meta_CheckAssignment_cache(x_261, x_278, x_2, x_279); -lean_dec(x_2); -x_281 = lean_ctor_get(x_280, 1); +lean_dec(x_276); +lean_inc(x_2); +lean_inc(x_263); +x_279 = l_Lean_Meta_CheckAssignment_check___main(x_263, x_2, x_278); +if (lean_obj_tag(x_279) == 0) +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +x_280 = lean_ctor_get(x_279, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_279, 1); lean_inc(x_281); -lean_dec(x_280); -x_264 = x_278; -x_265 = x_281; -goto block_272; +lean_dec(x_279); +lean_inc(x_280); +x_282 = l_Lean_Meta_CheckAssignment_cache(x_263, x_280, x_2, x_281); +lean_dec(x_2); +x_283 = lean_ctor_get(x_282, 1); +lean_inc(x_283); +lean_dec(x_282); +x_266 = x_280; +x_267 = x_283; +goto block_274; } else { -uint8_t x_282; -lean_dec(x_262); -lean_dec(x_261); +uint8_t x_284; +lean_dec(x_264); +lean_dec(x_263); lean_dec(x_2); lean_dec(x_1); -x_282 = !lean_is_exclusive(x_277); -if (x_282 == 0) +x_284 = !lean_is_exclusive(x_279); +if (x_284 == 0) { -return x_277; +return x_279; } else { -lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_283 = lean_ctor_get(x_277, 0); -x_284 = lean_ctor_get(x_277, 1); -lean_inc(x_284); -lean_inc(x_283); -lean_dec(x_277); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_283); -lean_ctor_set(x_285, 1, x_284); -return x_285; -} -} -} -else -{ -lean_object* x_286; lean_object* x_287; -lean_dec(x_261); -lean_dec(x_2); -x_286 = lean_ctor_get(x_274, 1); +lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_285 = lean_ctor_get(x_279, 0); +x_286 = lean_ctor_get(x_279, 1); lean_inc(x_286); -lean_dec(x_274); -x_287 = lean_ctor_get(x_275, 0); -lean_inc(x_287); -lean_dec(x_275); -x_264 = x_287; -x_265 = x_286; -goto block_272; +lean_inc(x_285); +lean_dec(x_279); +x_287 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_287, 0, x_285); +lean_ctor_set(x_287, 1, x_286); +return x_287; } } } -block_309: +else { -lean_object* x_295; lean_object* x_296; -lean_dec(x_294); -x_295 = l_Lean_Meta_CheckAssignment_findCached(x_260, x_2, x_3); -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -if (lean_obj_tag(x_296) == 0) +lean_object* x_288; lean_object* x_289; +lean_dec(x_263); +lean_dec(x_2); +x_288 = lean_ctor_get(x_276, 1); +lean_inc(x_288); +lean_dec(x_276); +x_289 = lean_ctor_get(x_277, 0); +lean_inc(x_289); +lean_dec(x_277); +x_266 = x_289; +x_267 = x_288; +goto block_274; +} +} +} +block_311: { lean_object* x_297; lean_object* x_298; -x_297 = lean_ctor_get(x_295, 1); -lean_inc(x_297); -lean_dec(x_295); -lean_inc(x_2); -lean_inc(x_260); -x_298 = l_Lean_Meta_CheckAssignment_check___main(x_260, x_2, x_297); +lean_dec(x_296); +x_297 = l_Lean_Meta_CheckAssignment_findCached(x_262, x_2, x_3); +x_298 = lean_ctor_get(x_297, 0); +lean_inc(x_298); if (lean_obj_tag(x_298) == 0) { -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_299 = lean_ctor_get(x_298, 0); +lean_object* x_299; lean_object* x_300; +x_299 = lean_ctor_get(x_297, 1); lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -lean_dec(x_298); -lean_inc(x_299); -x_301 = l_Lean_Meta_CheckAssignment_cache(x_260, x_299, x_2, x_300); -x_302 = lean_ctor_get(x_301, 1); +lean_dec(x_297); +lean_inc(x_2); +lean_inc(x_262); +x_300 = l_Lean_Meta_CheckAssignment_check___main(x_262, x_2, x_299); +if (lean_obj_tag(x_300) == 0) +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +x_301 = lean_ctor_get(x_300, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 1); lean_inc(x_302); -lean_dec(x_301); -x_262 = x_299; -x_263 = x_302; -goto block_293; +lean_dec(x_300); +lean_inc(x_301); +x_303 = l_Lean_Meta_CheckAssignment_cache(x_262, x_301, x_2, x_302); +x_304 = lean_ctor_get(x_303, 1); +lean_inc(x_304); +lean_dec(x_303); +x_264 = x_301; +x_265 = x_304; +goto block_295; } else { -uint8_t x_303; -lean_dec(x_261); -lean_dec(x_260); +uint8_t x_305; +lean_dec(x_263); +lean_dec(x_262); lean_dec(x_2); lean_dec(x_1); -x_303 = !lean_is_exclusive(x_298); -if (x_303 == 0) +x_305 = !lean_is_exclusive(x_300); +if (x_305 == 0) { -return x_298; +return x_300; } else { -lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_304 = lean_ctor_get(x_298, 0); -x_305 = lean_ctor_get(x_298, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_298); -x_306 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_306, 0, x_304); -lean_ctor_set(x_306, 1, x_305); -return x_306; -} -} -} -else -{ -lean_object* x_307; lean_object* x_308; -lean_dec(x_260); -x_307 = lean_ctor_get(x_295, 1); +lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_306 = lean_ctor_get(x_300, 0); +x_307 = lean_ctor_get(x_300, 1); lean_inc(x_307); -lean_dec(x_295); -x_308 = lean_ctor_get(x_296, 0); -lean_inc(x_308); -lean_dec(x_296); -x_262 = x_308; -x_263 = x_307; -goto block_293; +lean_inc(x_306); +lean_dec(x_300); +x_308 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_308, 0, x_306); +lean_ctor_set(x_308, 1, x_307); +return x_308; +} +} +} +else +{ +lean_object* x_309; lean_object* x_310; +lean_dec(x_262); +x_309 = lean_ctor_get(x_297, 1); +lean_inc(x_309); +lean_dec(x_297); +x_310 = lean_ctor_get(x_298, 0); +lean_inc(x_310); +lean_dec(x_298); +x_264 = x_310; +x_265 = x_309; +goto block_295; } } } case 6: { -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_349; uint8_t x_365; -x_314 = lean_ctor_get(x_1, 1); -lean_inc(x_314); -x_315 = lean_ctor_get(x_1, 2); -lean_inc(x_315); -x_365 = lean_expr_has_expr_mvar(x_314); -if (x_365 == 0) +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_352; uint8_t x_368; +x_316 = lean_ctor_get(x_1, 1); +lean_inc(x_316); +x_317 = lean_ctor_get(x_1, 2); +lean_inc(x_317); +x_368 = l_Lean_Expr_hasExprMVar(x_316); +if (x_368 == 0) { -uint8_t x_366; -x_366 = lean_expr_has_fvar(x_314); -if (x_366 == 0) +uint8_t x_369; +x_369 = l_Lean_Expr_hasFVar(x_316); +if (x_369 == 0) { -x_316 = x_314; -x_317 = x_3; -goto block_348; +x_318 = x_316; +x_319 = x_3; +goto block_351; } else { -lean_object* x_367; -x_367 = lean_box(0); -x_349 = x_367; -goto block_364; +lean_object* x_370; +x_370 = lean_box(0); +x_352 = x_370; +goto block_367; } } else { -lean_object* x_368; -x_368 = lean_box(0); -x_349 = x_368; -goto block_364; +lean_object* x_371; +x_371 = lean_box(0); +x_352 = x_371; +goto block_367; } -block_348: +block_351: { -lean_object* x_318; lean_object* x_319; lean_object* x_328; uint8_t x_344; -x_344 = lean_expr_has_expr_mvar(x_315); -if (x_344 == 0) +lean_object* x_320; lean_object* x_321; lean_object* x_331; uint8_t x_347; +x_347 = l_Lean_Expr_hasExprMVar(x_317); +if (x_347 == 0) { -uint8_t x_345; -x_345 = lean_expr_has_fvar(x_315); -if (x_345 == 0) +uint8_t x_348; +x_348 = l_Lean_Expr_hasFVar(x_317); +if (x_348 == 0) { lean_dec(x_2); -x_318 = x_315; -x_319 = x_317; -goto block_327; +x_320 = x_317; +x_321 = x_319; +goto block_330; } else { -lean_object* x_346; -x_346 = lean_box(0); -x_328 = x_346; -goto block_343; +lean_object* x_349; +x_349 = lean_box(0); +x_331 = x_349; +goto block_346; } } else { -lean_object* x_347; -x_347 = lean_box(0); -x_328 = x_347; -goto block_343; +lean_object* x_350; +x_350 = lean_box(0); +x_331 = x_350; +goto block_346; } -block_327: +block_330: { if (lean_obj_tag(x_1) == 6) { -uint8_t x_320; lean_object* x_321; lean_object* x_322; -x_320 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); -x_321 = lean_expr_update_lambda(x_1, x_320, x_316, x_318); -x_322 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_322, 0, x_321); -lean_ctor_set(x_322, 1, x_319); -return x_322; +uint64_t x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; +x_322 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_323 = (uint8_t)((x_322 << 24) >> 61); +x_324 = lean_expr_update_lambda(x_1, x_323, x_318, x_320); +x_325 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_321); +return x_325; } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; +lean_dec(x_320); lean_dec(x_318); -lean_dec(x_316); lean_dec(x_1); -x_323 = l_Lean_Expr_inhabited; -x_324 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_325 = lean_panic_fn(x_324); -x_326 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_319); -return x_326; +x_326 = l_Lean_Expr_Inhabited; +x_327 = l_Lean_Expr_updateLambdaE_x21___closed__1; +x_328 = lean_panic_fn(x_327); +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_321); +return x_329; } } -block_343: +block_346: { -lean_object* x_329; lean_object* x_330; -lean_dec(x_328); -x_329 = l_Lean_Meta_CheckAssignment_findCached(x_315, x_2, x_317); -x_330 = lean_ctor_get(x_329, 0); -lean_inc(x_330); -if (lean_obj_tag(x_330) == 0) -{ -lean_object* x_331; lean_object* x_332; -x_331 = lean_ctor_get(x_329, 1); -lean_inc(x_331); -lean_dec(x_329); -lean_inc(x_2); -lean_inc(x_315); -x_332 = l_Lean_Meta_CheckAssignment_check___main(x_315, x_2, x_331); -if (lean_obj_tag(x_332) == 0) -{ -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +lean_object* x_332; lean_object* x_333; +lean_dec(x_331); +x_332 = l_Lean_Meta_CheckAssignment_findCached(x_317, x_2, x_319); x_333 = lean_ctor_get(x_332, 0); lean_inc(x_333); +if (lean_obj_tag(x_333) == 0) +{ +lean_object* x_334; lean_object* x_335; x_334 = lean_ctor_get(x_332, 1); lean_inc(x_334); lean_dec(x_332); -lean_inc(x_333); -x_335 = l_Lean_Meta_CheckAssignment_cache(x_315, x_333, x_2, x_334); -lean_dec(x_2); -x_336 = lean_ctor_get(x_335, 1); +lean_inc(x_2); +lean_inc(x_317); +x_335 = l_Lean_Meta_CheckAssignment_check___main(x_317, x_2, x_334); +if (lean_obj_tag(x_335) == 0) +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_336 = lean_ctor_get(x_335, 0); lean_inc(x_336); +x_337 = lean_ctor_get(x_335, 1); +lean_inc(x_337); lean_dec(x_335); -x_318 = x_333; -x_319 = x_336; -goto block_327; +lean_inc(x_336); +x_338 = l_Lean_Meta_CheckAssignment_cache(x_317, x_336, x_2, x_337); +lean_dec(x_2); +x_339 = lean_ctor_get(x_338, 1); +lean_inc(x_339); +lean_dec(x_338); +x_320 = x_336; +x_321 = x_339; +goto block_330; } else { -uint8_t x_337; -lean_dec(x_316); -lean_dec(x_315); +uint8_t x_340; +lean_dec(x_318); +lean_dec(x_317); lean_dec(x_2); lean_dec(x_1); -x_337 = !lean_is_exclusive(x_332); -if (x_337 == 0) +x_340 = !lean_is_exclusive(x_335); +if (x_340 == 0) { -return x_332; +return x_335; } else { -lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_338 = lean_ctor_get(x_332, 0); -x_339 = lean_ctor_get(x_332, 1); -lean_inc(x_339); -lean_inc(x_338); -lean_dec(x_332); -x_340 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_340, 0, x_338); -lean_ctor_set(x_340, 1, x_339); -return x_340; -} -} -} -else -{ -lean_object* x_341; lean_object* x_342; -lean_dec(x_315); -lean_dec(x_2); -x_341 = lean_ctor_get(x_329, 1); -lean_inc(x_341); -lean_dec(x_329); -x_342 = lean_ctor_get(x_330, 0); +lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_341 = lean_ctor_get(x_335, 0); +x_342 = lean_ctor_get(x_335, 1); lean_inc(x_342); -lean_dec(x_330); -x_318 = x_342; -x_319 = x_341; -goto block_327; +lean_inc(x_341); +lean_dec(x_335); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +return x_343; } } } -block_364: +else { -lean_object* x_350; lean_object* x_351; -lean_dec(x_349); -x_350 = l_Lean_Meta_CheckAssignment_findCached(x_314, x_2, x_3); -x_351 = lean_ctor_get(x_350, 0); -lean_inc(x_351); -if (lean_obj_tag(x_351) == 0) +lean_object* x_344; lean_object* x_345; +lean_dec(x_317); +lean_dec(x_2); +x_344 = lean_ctor_get(x_332, 1); +lean_inc(x_344); +lean_dec(x_332); +x_345 = lean_ctor_get(x_333, 0); +lean_inc(x_345); +lean_dec(x_333); +x_320 = x_345; +x_321 = x_344; +goto block_330; +} +} +} +block_367: { -lean_object* x_352; lean_object* x_353; -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); -lean_dec(x_350); -lean_inc(x_2); -lean_inc(x_314); -x_353 = l_Lean_Meta_CheckAssignment_check___main(x_314, x_2, x_352); -if (lean_obj_tag(x_353) == 0) -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +lean_object* x_353; lean_object* x_354; +lean_dec(x_352); +x_353 = l_Lean_Meta_CheckAssignment_findCached(x_316, x_2, x_3); x_354 = lean_ctor_get(x_353, 0); lean_inc(x_354); +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; x_355 = lean_ctor_get(x_353, 1); lean_inc(x_355); lean_dec(x_353); -lean_inc(x_354); -x_356 = l_Lean_Meta_CheckAssignment_cache(x_314, x_354, x_2, x_355); -x_357 = lean_ctor_get(x_356, 1); +lean_inc(x_2); +lean_inc(x_316); +x_356 = l_Lean_Meta_CheckAssignment_check___main(x_316, x_2, x_355); +if (lean_obj_tag(x_356) == 0) +{ +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_357 = lean_ctor_get(x_356, 0); lean_inc(x_357); +x_358 = lean_ctor_get(x_356, 1); +lean_inc(x_358); lean_dec(x_356); -x_316 = x_354; -x_317 = x_357; -goto block_348; +lean_inc(x_357); +x_359 = l_Lean_Meta_CheckAssignment_cache(x_316, x_357, x_2, x_358); +x_360 = lean_ctor_get(x_359, 1); +lean_inc(x_360); +lean_dec(x_359); +x_318 = x_357; +x_319 = x_360; +goto block_351; } else { -uint8_t x_358; -lean_dec(x_315); -lean_dec(x_314); +uint8_t x_361; +lean_dec(x_317); +lean_dec(x_316); lean_dec(x_2); lean_dec(x_1); -x_358 = !lean_is_exclusive(x_353); -if (x_358 == 0) +x_361 = !lean_is_exclusive(x_356); +if (x_361 == 0) { -return x_353; +return x_356; } else { -lean_object* x_359; lean_object* x_360; lean_object* x_361; -x_359 = lean_ctor_get(x_353, 0); -x_360 = lean_ctor_get(x_353, 1); -lean_inc(x_360); -lean_inc(x_359); -lean_dec(x_353); -x_361 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_361, 0, x_359); -lean_ctor_set(x_361, 1, x_360); -return x_361; -} -} -} -else -{ -lean_object* x_362; lean_object* x_363; -lean_dec(x_314); -x_362 = lean_ctor_get(x_350, 1); -lean_inc(x_362); -lean_dec(x_350); -x_363 = lean_ctor_get(x_351, 0); +lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_362 = lean_ctor_get(x_356, 0); +x_363 = lean_ctor_get(x_356, 1); lean_inc(x_363); -lean_dec(x_351); -x_316 = x_363; -x_317 = x_362; -goto block_348; +lean_inc(x_362); +lean_dec(x_356); +x_364 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_364, 0, x_362); +lean_ctor_set(x_364, 1, x_363); +return x_364; +} +} +} +else +{ +lean_object* x_365; lean_object* x_366; +lean_dec(x_316); +x_365 = lean_ctor_get(x_353, 1); +lean_inc(x_365); +lean_dec(x_353); +x_366 = lean_ctor_get(x_354, 0); +lean_inc(x_366); +lean_dec(x_354); +x_318 = x_366; +x_319 = x_365; +goto block_351; } } } case 7: { -lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_404; uint8_t x_420; -x_369 = lean_ctor_get(x_1, 1); -lean_inc(x_369); -x_370 = lean_ctor_get(x_1, 2); -lean_inc(x_370); -x_420 = lean_expr_has_expr_mvar(x_369); -if (x_420 == 0) +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_408; uint8_t x_424; +x_372 = lean_ctor_get(x_1, 1); +lean_inc(x_372); +x_373 = lean_ctor_get(x_1, 2); +lean_inc(x_373); +x_424 = l_Lean_Expr_hasExprMVar(x_372); +if (x_424 == 0) { -uint8_t x_421; -x_421 = lean_expr_has_fvar(x_369); -if (x_421 == 0) +uint8_t x_425; +x_425 = l_Lean_Expr_hasFVar(x_372); +if (x_425 == 0) { -x_371 = x_369; -x_372 = x_3; -goto block_403; +x_374 = x_372; +x_375 = x_3; +goto block_407; } else { -lean_object* x_422; -x_422 = lean_box(0); -x_404 = x_422; -goto block_419; +lean_object* x_426; +x_426 = lean_box(0); +x_408 = x_426; +goto block_423; } } else { -lean_object* x_423; -x_423 = lean_box(0); -x_404 = x_423; -goto block_419; +lean_object* x_427; +x_427 = lean_box(0); +x_408 = x_427; +goto block_423; } -block_403: +block_407: { -lean_object* x_373; lean_object* x_374; lean_object* x_383; uint8_t x_399; -x_399 = lean_expr_has_expr_mvar(x_370); -if (x_399 == 0) +lean_object* x_376; lean_object* x_377; lean_object* x_387; uint8_t x_403; +x_403 = l_Lean_Expr_hasExprMVar(x_373); +if (x_403 == 0) { -uint8_t x_400; -x_400 = lean_expr_has_fvar(x_370); -if (x_400 == 0) +uint8_t x_404; +x_404 = l_Lean_Expr_hasFVar(x_373); +if (x_404 == 0) { lean_dec(x_2); -x_373 = x_370; -x_374 = x_372; -goto block_382; +x_376 = x_373; +x_377 = x_375; +goto block_386; } else { -lean_object* x_401; -x_401 = lean_box(0); -x_383 = x_401; -goto block_398; +lean_object* x_405; +x_405 = lean_box(0); +x_387 = x_405; +goto block_402; } } else { -lean_object* x_402; -x_402 = lean_box(0); -x_383 = x_402; -goto block_398; +lean_object* x_406; +x_406 = lean_box(0); +x_387 = x_406; +goto block_402; } -block_382: +block_386: { if (lean_obj_tag(x_1) == 7) { -uint8_t x_375; lean_object* x_376; lean_object* x_377; -x_375 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); -x_376 = lean_expr_update_forall(x_1, x_375, x_371, x_373); -x_377 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_377, 0, x_376); -lean_ctor_set(x_377, 1, x_374); -return x_377; -} -else -{ -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; -lean_dec(x_373); -lean_dec(x_371); -lean_dec(x_1); -x_378 = l_Lean_Expr_inhabited; -x_379 = l_Lean_Expr_updateForallE_x21___closed__1; -x_380 = lean_panic_fn(x_379); +uint64_t x_378; uint8_t x_379; lean_object* x_380; lean_object* x_381; +x_378 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_379 = (uint8_t)((x_378 << 24) >> 61); +x_380 = lean_expr_update_forall(x_1, x_379, x_374, x_376); x_381 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_381, 0, x_380); -lean_ctor_set(x_381, 1, x_374); +lean_ctor_set(x_381, 1, x_377); return x_381; } +else +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +lean_dec(x_376); +lean_dec(x_374); +lean_dec(x_1); +x_382 = l_Lean_Expr_Inhabited; +x_383 = l_Lean_Expr_updateForallE_x21___closed__1; +x_384 = lean_panic_fn(x_383); +x_385 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_385, 0, x_384); +lean_ctor_set(x_385, 1, x_377); +return x_385; } -block_398: +} +block_402: { -lean_object* x_384; lean_object* x_385; -lean_dec(x_383); -x_384 = l_Lean_Meta_CheckAssignment_findCached(x_370, x_2, x_372); -x_385 = lean_ctor_get(x_384, 0); -lean_inc(x_385); -if (lean_obj_tag(x_385) == 0) -{ -lean_object* x_386; lean_object* x_387; -x_386 = lean_ctor_get(x_384, 1); -lean_inc(x_386); -lean_dec(x_384); -lean_inc(x_2); -lean_inc(x_370); -x_387 = l_Lean_Meta_CheckAssignment_check___main(x_370, x_2, x_386); -if (lean_obj_tag(x_387) == 0) -{ -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; -x_388 = lean_ctor_get(x_387, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_387, 1); +lean_object* x_388; lean_object* x_389; +lean_dec(x_387); +x_388 = l_Lean_Meta_CheckAssignment_findCached(x_373, x_2, x_375); +x_389 = lean_ctor_get(x_388, 0); lean_inc(x_389); -lean_dec(x_387); -lean_inc(x_388); -x_390 = l_Lean_Meta_CheckAssignment_cache(x_370, x_388, x_2, x_389); -lean_dec(x_2); -x_391 = lean_ctor_get(x_390, 1); -lean_inc(x_391); -lean_dec(x_390); -x_373 = x_388; -x_374 = x_391; -goto block_382; -} -else +if (lean_obj_tag(x_389) == 0) { -uint8_t x_392; -lean_dec(x_371); -lean_dec(x_370); -lean_dec(x_2); -lean_dec(x_1); -x_392 = !lean_is_exclusive(x_387); -if (x_392 == 0) -{ -return x_387; -} -else -{ -lean_object* x_393; lean_object* x_394; lean_object* x_395; -x_393 = lean_ctor_get(x_387, 0); -x_394 = lean_ctor_get(x_387, 1); -lean_inc(x_394); -lean_inc(x_393); -lean_dec(x_387); -x_395 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_395, 0, x_393); -lean_ctor_set(x_395, 1, x_394); -return x_395; -} -} -} -else -{ -lean_object* x_396; lean_object* x_397; -lean_dec(x_370); -lean_dec(x_2); -x_396 = lean_ctor_get(x_384, 1); -lean_inc(x_396); -lean_dec(x_384); -x_397 = lean_ctor_get(x_385, 0); -lean_inc(x_397); -lean_dec(x_385); -x_373 = x_397; -x_374 = x_396; -goto block_382; -} -} -} -block_419: -{ -lean_object* x_405; lean_object* x_406; -lean_dec(x_404); -x_405 = l_Lean_Meta_CheckAssignment_findCached(x_369, x_2, x_3); -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -if (lean_obj_tag(x_406) == 0) -{ -lean_object* x_407; lean_object* x_408; -x_407 = lean_ctor_get(x_405, 1); -lean_inc(x_407); -lean_dec(x_405); +lean_object* x_390; lean_object* x_391; +x_390 = lean_ctor_get(x_388, 1); +lean_inc(x_390); +lean_dec(x_388); lean_inc(x_2); -lean_inc(x_369); -x_408 = l_Lean_Meta_CheckAssignment_check___main(x_369, x_2, x_407); -if (lean_obj_tag(x_408) == 0) +lean_inc(x_373); +x_391 = l_Lean_Meta_CheckAssignment_check___main(x_373, x_2, x_390); +if (lean_obj_tag(x_391) == 0) { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; -x_409 = lean_ctor_get(x_408, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_408, 1); -lean_inc(x_410); -lean_dec(x_408); -lean_inc(x_409); -x_411 = l_Lean_Meta_CheckAssignment_cache(x_369, x_409, x_2, x_410); -x_412 = lean_ctor_get(x_411, 1); -lean_inc(x_412); -lean_dec(x_411); -x_371 = x_409; -x_372 = x_412; -goto block_403; +lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_392 = lean_ctor_get(x_391, 0); +lean_inc(x_392); +x_393 = lean_ctor_get(x_391, 1); +lean_inc(x_393); +lean_dec(x_391); +lean_inc(x_392); +x_394 = l_Lean_Meta_CheckAssignment_cache(x_373, x_392, x_2, x_393); +lean_dec(x_2); +x_395 = lean_ctor_get(x_394, 1); +lean_inc(x_395); +lean_dec(x_394); +x_376 = x_392; +x_377 = x_395; +goto block_386; } else { -uint8_t x_413; -lean_dec(x_370); -lean_dec(x_369); +uint8_t x_396; +lean_dec(x_374); +lean_dec(x_373); lean_dec(x_2); lean_dec(x_1); -x_413 = !lean_is_exclusive(x_408); -if (x_413 == 0) +x_396 = !lean_is_exclusive(x_391); +if (x_396 == 0) { -return x_408; +return x_391; } else { -lean_object* x_414; lean_object* x_415; lean_object* x_416; -x_414 = lean_ctor_get(x_408, 0); -x_415 = lean_ctor_get(x_408, 1); -lean_inc(x_415); -lean_inc(x_414); +lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_397 = lean_ctor_get(x_391, 0); +x_398 = lean_ctor_get(x_391, 1); +lean_inc(x_398); +lean_inc(x_397); +lean_dec(x_391); +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_397); +lean_ctor_set(x_399, 1, x_398); +return x_399; +} +} +} +else +{ +lean_object* x_400; lean_object* x_401; +lean_dec(x_373); +lean_dec(x_2); +x_400 = lean_ctor_get(x_388, 1); +lean_inc(x_400); +lean_dec(x_388); +x_401 = lean_ctor_get(x_389, 0); +lean_inc(x_401); +lean_dec(x_389); +x_376 = x_401; +x_377 = x_400; +goto block_386; +} +} +} +block_423: +{ +lean_object* x_409; lean_object* x_410; lean_dec(x_408); -x_416 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_416, 0, x_414); -lean_ctor_set(x_416, 1, x_415); -return x_416; +x_409 = l_Lean_Meta_CheckAssignment_findCached(x_372, x_2, x_3); +x_410 = lean_ctor_get(x_409, 0); +lean_inc(x_410); +if (lean_obj_tag(x_410) == 0) +{ +lean_object* x_411; lean_object* x_412; +x_411 = lean_ctor_get(x_409, 1); +lean_inc(x_411); +lean_dec(x_409); +lean_inc(x_2); +lean_inc(x_372); +x_412 = l_Lean_Meta_CheckAssignment_check___main(x_372, x_2, x_411); +if (lean_obj_tag(x_412) == 0) +{ +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_413 = lean_ctor_get(x_412, 0); +lean_inc(x_413); +x_414 = lean_ctor_get(x_412, 1); +lean_inc(x_414); +lean_dec(x_412); +lean_inc(x_413); +x_415 = l_Lean_Meta_CheckAssignment_cache(x_372, x_413, x_2, x_414); +x_416 = lean_ctor_get(x_415, 1); +lean_inc(x_416); +lean_dec(x_415); +x_374 = x_413; +x_375 = x_416; +goto block_407; +} +else +{ +uint8_t x_417; +lean_dec(x_373); +lean_dec(x_372); +lean_dec(x_2); +lean_dec(x_1); +x_417 = !lean_is_exclusive(x_412); +if (x_417 == 0) +{ +return x_412; +} +else +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_418 = lean_ctor_get(x_412, 0); +x_419 = lean_ctor_get(x_412, 1); +lean_inc(x_419); +lean_inc(x_418); +lean_dec(x_412); +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); +return x_420; } } } else { -lean_object* x_417; lean_object* x_418; -lean_dec(x_369); -x_417 = lean_ctor_get(x_405, 1); -lean_inc(x_417); -lean_dec(x_405); -x_418 = lean_ctor_get(x_406, 0); -lean_inc(x_418); -lean_dec(x_406); -x_371 = x_418; -x_372 = x_417; -goto block_403; +lean_object* x_421; lean_object* x_422; +lean_dec(x_372); +x_421 = lean_ctor_get(x_409, 1); +lean_inc(x_421); +lean_dec(x_409); +x_422 = lean_ctor_get(x_410, 0); +lean_inc(x_422); +lean_dec(x_410); +x_374 = x_422; +x_375 = x_421; +goto block_407; } } } case 8: { -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_482; uint8_t x_498; -x_424 = lean_ctor_get(x_1, 1); -lean_inc(x_424); -x_425 = lean_ctor_get(x_1, 2); -lean_inc(x_425); -x_426 = lean_ctor_get(x_1, 3); -lean_inc(x_426); -x_498 = lean_expr_has_expr_mvar(x_424); -if (x_498 == 0) +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_486; uint8_t x_502; +x_428 = lean_ctor_get(x_1, 1); +lean_inc(x_428); +x_429 = lean_ctor_get(x_1, 2); +lean_inc(x_429); +x_430 = lean_ctor_get(x_1, 3); +lean_inc(x_430); +x_502 = l_Lean_Expr_hasExprMVar(x_428); +if (x_502 == 0) { -uint8_t x_499; -x_499 = lean_expr_has_fvar(x_424); -if (x_499 == 0) +uint8_t x_503; +x_503 = l_Lean_Expr_hasFVar(x_428); +if (x_503 == 0) { -x_427 = x_424; -x_428 = x_3; -goto block_481; +x_431 = x_428; +x_432 = x_3; +goto block_485; } else { -lean_object* x_500; -x_500 = lean_box(0); -x_482 = x_500; -goto block_497; +lean_object* x_504; +x_504 = lean_box(0); +x_486 = x_504; +goto block_501; } } else { -lean_object* x_501; -x_501 = lean_box(0); -x_482 = x_501; -goto block_497; +lean_object* x_505; +x_505 = lean_box(0); +x_486 = x_505; +goto block_501; } -block_481: +block_485: { -lean_object* x_429; lean_object* x_430; lean_object* x_461; uint8_t x_477; -x_477 = lean_expr_has_expr_mvar(x_425); -if (x_477 == 0) +lean_object* x_433; lean_object* x_434; lean_object* x_465; uint8_t x_481; +x_481 = l_Lean_Expr_hasExprMVar(x_429); +if (x_481 == 0) { -uint8_t x_478; -x_478 = lean_expr_has_fvar(x_425); -if (x_478 == 0) +uint8_t x_482; +x_482 = l_Lean_Expr_hasFVar(x_429); +if (x_482 == 0) { -x_429 = x_425; -x_430 = x_428; -goto block_460; +x_433 = x_429; +x_434 = x_432; +goto block_464; } else { -lean_object* x_479; -x_479 = lean_box(0); -x_461 = x_479; -goto block_476; +lean_object* x_483; +x_483 = lean_box(0); +x_465 = x_483; +goto block_480; } } else { -lean_object* x_480; -x_480 = lean_box(0); -x_461 = x_480; -goto block_476; +lean_object* x_484; +x_484 = lean_box(0); +x_465 = x_484; +goto block_480; } -block_460: +block_464: { -lean_object* x_431; lean_object* x_432; lean_object* x_440; uint8_t x_456; -x_456 = lean_expr_has_expr_mvar(x_426); -if (x_456 == 0) +lean_object* x_435; lean_object* x_436; lean_object* x_444; uint8_t x_460; +x_460 = l_Lean_Expr_hasExprMVar(x_430); +if (x_460 == 0) { -uint8_t x_457; -x_457 = lean_expr_has_fvar(x_426); -if (x_457 == 0) +uint8_t x_461; +x_461 = l_Lean_Expr_hasFVar(x_430); +if (x_461 == 0) { lean_dec(x_2); -x_431 = x_426; -x_432 = x_430; -goto block_439; +x_435 = x_430; +x_436 = x_434; +goto block_443; } else { -lean_object* x_458; -x_458 = lean_box(0); -x_440 = x_458; -goto block_455; +lean_object* x_462; +x_462 = lean_box(0); +x_444 = x_462; +goto block_459; } } else { -lean_object* x_459; -x_459 = lean_box(0); -x_440 = x_459; -goto block_455; +lean_object* x_463; +x_463 = lean_box(0); +x_444 = x_463; +goto block_459; } -block_439: +block_443: { if (lean_obj_tag(x_1) == 8) { -lean_object* x_433; lean_object* x_434; -x_433 = lean_expr_update_let(x_1, x_427, x_429, x_431); -x_434 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_434, 0, x_433); -lean_ctor_set(x_434, 1, x_432); -return x_434; -} -else -{ -lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; -lean_dec(x_431); -lean_dec(x_429); -lean_dec(x_427); -lean_dec(x_1); -x_435 = l_Lean_Expr_inhabited; -x_436 = l_Lean_Expr_updateLet_x21___closed__1; -x_437 = lean_panic_fn(x_436); +lean_object* x_437; lean_object* x_438; +x_437 = lean_expr_update_let(x_1, x_431, x_433, x_435); x_438 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_438, 0, x_437); -lean_ctor_set(x_438, 1, x_432); +lean_ctor_set(x_438, 1, x_436); return x_438; } +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; +lean_dec(x_435); +lean_dec(x_433); +lean_dec(x_431); +lean_dec(x_1); +x_439 = l_Lean_Expr_Inhabited; +x_440 = l_Lean_Expr_updateLet_x21___closed__1; +x_441 = lean_panic_fn(x_440); +x_442 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_442, 0, x_441); +lean_ctor_set(x_442, 1, x_436); +return x_442; } -block_455: +} +block_459: { -lean_object* x_441; lean_object* x_442; -lean_dec(x_440); -x_441 = l_Lean_Meta_CheckAssignment_findCached(x_426, x_2, x_430); -x_442 = lean_ctor_get(x_441, 0); -lean_inc(x_442); -if (lean_obj_tag(x_442) == 0) -{ -lean_object* x_443; lean_object* x_444; -x_443 = lean_ctor_get(x_441, 1); -lean_inc(x_443); -lean_dec(x_441); -lean_inc(x_2); -lean_inc(x_426); -x_444 = l_Lean_Meta_CheckAssignment_check___main(x_426, x_2, x_443); -if (lean_obj_tag(x_444) == 0) -{ -lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; -x_445 = lean_ctor_get(x_444, 0); -lean_inc(x_445); -x_446 = lean_ctor_get(x_444, 1); +lean_object* x_445; lean_object* x_446; +lean_dec(x_444); +x_445 = l_Lean_Meta_CheckAssignment_findCached(x_430, x_2, x_434); +x_446 = lean_ctor_get(x_445, 0); lean_inc(x_446); -lean_dec(x_444); -lean_inc(x_445); -x_447 = l_Lean_Meta_CheckAssignment_cache(x_426, x_445, x_2, x_446); -lean_dec(x_2); -x_448 = lean_ctor_get(x_447, 1); -lean_inc(x_448); -lean_dec(x_447); -x_431 = x_445; -x_432 = x_448; -goto block_439; -} -else +if (lean_obj_tag(x_446) == 0) { -uint8_t x_449; -lean_dec(x_429); -lean_dec(x_427); -lean_dec(x_426); -lean_dec(x_2); -lean_dec(x_1); -x_449 = !lean_is_exclusive(x_444); -if (x_449 == 0) +lean_object* x_447; lean_object* x_448; +x_447 = lean_ctor_get(x_445, 1); +lean_inc(x_447); +lean_dec(x_445); +lean_inc(x_2); +lean_inc(x_430); +x_448 = l_Lean_Meta_CheckAssignment_check___main(x_430, x_2, x_447); +if (lean_obj_tag(x_448) == 0) { -return x_444; -} -else -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; -x_450 = lean_ctor_get(x_444, 0); -x_451 = lean_ctor_get(x_444, 1); -lean_inc(x_451); +lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_449 = lean_ctor_get(x_448, 0); +lean_inc(x_449); +x_450 = lean_ctor_get(x_448, 1); lean_inc(x_450); -lean_dec(x_444); -x_452 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_452, 0, x_450); -lean_ctor_set(x_452, 1, x_451); -return x_452; -} -} +lean_dec(x_448); +lean_inc(x_449); +x_451 = l_Lean_Meta_CheckAssignment_cache(x_430, x_449, x_2, x_450); +lean_dec(x_2); +x_452 = lean_ctor_get(x_451, 1); +lean_inc(x_452); +lean_dec(x_451); +x_435 = x_449; +x_436 = x_452; +goto block_443; } else { -lean_object* x_453; lean_object* x_454; -lean_dec(x_426); +uint8_t x_453; +lean_dec(x_433); +lean_dec(x_431); +lean_dec(x_430); lean_dec(x_2); -x_453 = lean_ctor_get(x_441, 1); -lean_inc(x_453); -lean_dec(x_441); -x_454 = lean_ctor_get(x_442, 0); +lean_dec(x_1); +x_453 = !lean_is_exclusive(x_448); +if (x_453 == 0) +{ +return x_448; +} +else +{ +lean_object* x_454; lean_object* x_455; lean_object* x_456; +x_454 = lean_ctor_get(x_448, 0); +x_455 = lean_ctor_get(x_448, 1); +lean_inc(x_455); lean_inc(x_454); -lean_dec(x_442); -x_431 = x_454; -x_432 = x_453; -goto block_439; +lean_dec(x_448); +x_456 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_456, 0, x_454); +lean_ctor_set(x_456, 1, x_455); +return x_456; } } } -block_476: +else { -lean_object* x_462; lean_object* x_463; -lean_dec(x_461); -x_462 = l_Lean_Meta_CheckAssignment_findCached(x_425, x_2, x_428); -x_463 = lean_ctor_get(x_462, 0); -lean_inc(x_463); -if (lean_obj_tag(x_463) == 0) +lean_object* x_457; lean_object* x_458; +lean_dec(x_430); +lean_dec(x_2); +x_457 = lean_ctor_get(x_445, 1); +lean_inc(x_457); +lean_dec(x_445); +x_458 = lean_ctor_get(x_446, 0); +lean_inc(x_458); +lean_dec(x_446); +x_435 = x_458; +x_436 = x_457; +goto block_443; +} +} +} +block_480: { -lean_object* x_464; lean_object* x_465; -x_464 = lean_ctor_get(x_462, 1); -lean_inc(x_464); -lean_dec(x_462); -lean_inc(x_2); -lean_inc(x_425); -x_465 = l_Lean_Meta_CheckAssignment_check___main(x_425, x_2, x_464); -if (lean_obj_tag(x_465) == 0) -{ -lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -x_466 = lean_ctor_get(x_465, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_465, 1); +lean_object* x_466; lean_object* x_467; +lean_dec(x_465); +x_466 = l_Lean_Meta_CheckAssignment_findCached(x_429, x_2, x_432); +x_467 = lean_ctor_get(x_466, 0); lean_inc(x_467); -lean_dec(x_465); -lean_inc(x_466); -x_468 = l_Lean_Meta_CheckAssignment_cache(x_425, x_466, x_2, x_467); -x_469 = lean_ctor_get(x_468, 1); -lean_inc(x_469); -lean_dec(x_468); -x_429 = x_466; -x_430 = x_469; -goto block_460; -} -else +if (lean_obj_tag(x_467) == 0) { -uint8_t x_470; -lean_dec(x_427); -lean_dec(x_426); -lean_dec(x_425); -lean_dec(x_2); -lean_dec(x_1); -x_470 = !lean_is_exclusive(x_465); -if (x_470 == 0) -{ -return x_465; -} -else -{ -lean_object* x_471; lean_object* x_472; lean_object* x_473; -x_471 = lean_ctor_get(x_465, 0); -x_472 = lean_ctor_get(x_465, 1); -lean_inc(x_472); -lean_inc(x_471); -lean_dec(x_465); -x_473 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_473, 0, x_471); -lean_ctor_set(x_473, 1, x_472); -return x_473; -} -} -} -else -{ -lean_object* x_474; lean_object* x_475; -lean_dec(x_425); -x_474 = lean_ctor_get(x_462, 1); -lean_inc(x_474); -lean_dec(x_462); -x_475 = lean_ctor_get(x_463, 0); -lean_inc(x_475); -lean_dec(x_463); -x_429 = x_475; -x_430 = x_474; -goto block_460; -} -} -} -block_497: -{ -lean_object* x_483; lean_object* x_484; -lean_dec(x_482); -x_483 = l_Lean_Meta_CheckAssignment_findCached(x_424, x_2, x_3); -x_484 = lean_ctor_get(x_483, 0); -lean_inc(x_484); -if (lean_obj_tag(x_484) == 0) -{ -lean_object* x_485; lean_object* x_486; -x_485 = lean_ctor_get(x_483, 1); -lean_inc(x_485); -lean_dec(x_483); +lean_object* x_468; lean_object* x_469; +x_468 = lean_ctor_get(x_466, 1); +lean_inc(x_468); +lean_dec(x_466); lean_inc(x_2); -lean_inc(x_424); -x_486 = l_Lean_Meta_CheckAssignment_check___main(x_424, x_2, x_485); -if (lean_obj_tag(x_486) == 0) +lean_inc(x_429); +x_469 = l_Lean_Meta_CheckAssignment_check___main(x_429, x_2, x_468); +if (lean_obj_tag(x_469) == 0) { -lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_487 = lean_ctor_get(x_486, 0); -lean_inc(x_487); -x_488 = lean_ctor_get(x_486, 1); -lean_inc(x_488); -lean_dec(x_486); -lean_inc(x_487); -x_489 = l_Lean_Meta_CheckAssignment_cache(x_424, x_487, x_2, x_488); -x_490 = lean_ctor_get(x_489, 1); -lean_inc(x_490); -lean_dec(x_489); -x_427 = x_487; -x_428 = x_490; -goto block_481; +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; +x_470 = lean_ctor_get(x_469, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_469, 1); +lean_inc(x_471); +lean_dec(x_469); +lean_inc(x_470); +x_472 = l_Lean_Meta_CheckAssignment_cache(x_429, x_470, x_2, x_471); +x_473 = lean_ctor_get(x_472, 1); +lean_inc(x_473); +lean_dec(x_472); +x_433 = x_470; +x_434 = x_473; +goto block_464; } else { -uint8_t x_491; -lean_dec(x_426); -lean_dec(x_425); -lean_dec(x_424); +uint8_t x_474; +lean_dec(x_431); +lean_dec(x_430); +lean_dec(x_429); lean_dec(x_2); lean_dec(x_1); -x_491 = !lean_is_exclusive(x_486); -if (x_491 == 0) +x_474 = !lean_is_exclusive(x_469); +if (x_474 == 0) { -return x_486; +return x_469; } else { -lean_object* x_492; lean_object* x_493; lean_object* x_494; -x_492 = lean_ctor_get(x_486, 0); -x_493 = lean_ctor_get(x_486, 1); -lean_inc(x_493); -lean_inc(x_492); +lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_475 = lean_ctor_get(x_469, 0); +x_476 = lean_ctor_get(x_469, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_469); +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +return x_477; +} +} +} +else +{ +lean_object* x_478; lean_object* x_479; +lean_dec(x_429); +x_478 = lean_ctor_get(x_466, 1); +lean_inc(x_478); +lean_dec(x_466); +x_479 = lean_ctor_get(x_467, 0); +lean_inc(x_479); +lean_dec(x_467); +x_433 = x_479; +x_434 = x_478; +goto block_464; +} +} +} +block_501: +{ +lean_object* x_487; lean_object* x_488; lean_dec(x_486); -x_494 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_494, 0, x_492); -lean_ctor_set(x_494, 1, x_493); -return x_494; +x_487 = l_Lean_Meta_CheckAssignment_findCached(x_428, x_2, x_3); +x_488 = lean_ctor_get(x_487, 0); +lean_inc(x_488); +if (lean_obj_tag(x_488) == 0) +{ +lean_object* x_489; lean_object* x_490; +x_489 = lean_ctor_get(x_487, 1); +lean_inc(x_489); +lean_dec(x_487); +lean_inc(x_2); +lean_inc(x_428); +x_490 = l_Lean_Meta_CheckAssignment_check___main(x_428, x_2, x_489); +if (lean_obj_tag(x_490) == 0) +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_491 = lean_ctor_get(x_490, 0); +lean_inc(x_491); +x_492 = lean_ctor_get(x_490, 1); +lean_inc(x_492); +lean_dec(x_490); +lean_inc(x_491); +x_493 = l_Lean_Meta_CheckAssignment_cache(x_428, x_491, x_2, x_492); +x_494 = lean_ctor_get(x_493, 1); +lean_inc(x_494); +lean_dec(x_493); +x_431 = x_491; +x_432 = x_494; +goto block_485; +} +else +{ +uint8_t x_495; +lean_dec(x_430); +lean_dec(x_429); +lean_dec(x_428); +lean_dec(x_2); +lean_dec(x_1); +x_495 = !lean_is_exclusive(x_490); +if (x_495 == 0) +{ +return x_490; +} +else +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; +x_496 = lean_ctor_get(x_490, 0); +x_497 = lean_ctor_get(x_490, 1); +lean_inc(x_497); +lean_inc(x_496); +lean_dec(x_490); +x_498 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_498, 0, x_496); +lean_ctor_set(x_498, 1, x_497); +return x_498; } } } else { -lean_object* x_495; lean_object* x_496; -lean_dec(x_424); -x_495 = lean_ctor_get(x_483, 1); -lean_inc(x_495); -lean_dec(x_483); -x_496 = lean_ctor_get(x_484, 0); -lean_inc(x_496); -lean_dec(x_484); -x_427 = x_496; -x_428 = x_495; -goto block_481; +lean_object* x_499; lean_object* x_500; +lean_dec(x_428); +x_499 = lean_ctor_get(x_487, 1); +lean_inc(x_499); +lean_dec(x_487); +x_500 = lean_ctor_get(x_488, 0); +lean_inc(x_500); +lean_dec(x_488); +x_431 = x_500; +x_432 = x_499; +goto block_485; } } } case 10: { -lean_object* x_502; lean_object* x_503; uint8_t x_519; -x_502 = lean_ctor_get(x_1, 1); -lean_inc(x_502); -x_519 = lean_expr_has_expr_mvar(x_502); -if (x_519 == 0) +lean_object* x_506; lean_object* x_507; uint8_t x_523; +x_506 = lean_ctor_get(x_1, 1); +lean_inc(x_506); +x_523 = l_Lean_Expr_hasExprMVar(x_506); +if (x_523 == 0) { -uint8_t x_520; -x_520 = lean_expr_has_fvar(x_502); -if (x_520 == 0) +uint8_t x_524; +x_524 = l_Lean_Expr_hasFVar(x_506); +if (x_524 == 0) { lean_dec(x_2); -x_12 = x_502; +x_12 = x_506; x_13 = x_3; goto block_20; } else { -lean_object* x_521; -x_521 = lean_box(0); -x_503 = x_521; -goto block_518; +lean_object* x_525; +x_525 = lean_box(0); +x_507 = x_525; +goto block_522; } } else { -lean_object* x_522; -x_522 = lean_box(0); -x_503 = x_522; -goto block_518; +lean_object* x_526; +x_526 = lean_box(0); +x_507 = x_526; +goto block_522; } -block_518: +block_522: { -lean_object* x_504; lean_object* x_505; -lean_dec(x_503); -x_504 = l_Lean_Meta_CheckAssignment_findCached(x_502, x_2, x_3); -x_505 = lean_ctor_get(x_504, 0); -lean_inc(x_505); -if (lean_obj_tag(x_505) == 0) -{ -lean_object* x_506; lean_object* x_507; -x_506 = lean_ctor_get(x_504, 1); -lean_inc(x_506); -lean_dec(x_504); -lean_inc(x_2); -lean_inc(x_502); -x_507 = l_Lean_Meta_CheckAssignment_check___main(x_502, x_2, x_506); -if (lean_obj_tag(x_507) == 0) -{ -lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -x_508 = lean_ctor_get(x_507, 0); -lean_inc(x_508); -x_509 = lean_ctor_get(x_507, 1); -lean_inc(x_509); +lean_object* x_508; lean_object* x_509; lean_dec(x_507); -lean_inc(x_508); -x_510 = l_Lean_Meta_CheckAssignment_cache(x_502, x_508, x_2, x_509); +x_508 = l_Lean_Meta_CheckAssignment_findCached(x_506, x_2, x_3); +x_509 = lean_ctor_get(x_508, 0); +lean_inc(x_509); +if (lean_obj_tag(x_509) == 0) +{ +lean_object* x_510; lean_object* x_511; +x_510 = lean_ctor_get(x_508, 1); +lean_inc(x_510); +lean_dec(x_508); +lean_inc(x_2); +lean_inc(x_506); +x_511 = l_Lean_Meta_CheckAssignment_check___main(x_506, x_2, x_510); +if (lean_obj_tag(x_511) == 0) +{ +lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; +x_512 = lean_ctor_get(x_511, 0); +lean_inc(x_512); +x_513 = lean_ctor_get(x_511, 1); +lean_inc(x_513); +lean_dec(x_511); +lean_inc(x_512); +x_514 = l_Lean_Meta_CheckAssignment_cache(x_506, x_512, x_2, x_513); lean_dec(x_2); -x_511 = lean_ctor_get(x_510, 1); -lean_inc(x_511); -lean_dec(x_510); -x_12 = x_508; -x_13 = x_511; +x_515 = lean_ctor_get(x_514, 1); +lean_inc(x_515); +lean_dec(x_514); +x_12 = x_512; +x_13 = x_515; goto block_20; } else { -uint8_t x_512; -lean_dec(x_502); +uint8_t x_516; +lean_dec(x_506); lean_dec(x_2); lean_dec(x_1); -x_512 = !lean_is_exclusive(x_507); -if (x_512 == 0) +x_516 = !lean_is_exclusive(x_511); +if (x_516 == 0) { -return x_507; +return x_511; } else { -lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_513 = lean_ctor_get(x_507, 0); -x_514 = lean_ctor_get(x_507, 1); -lean_inc(x_514); -lean_inc(x_513); -lean_dec(x_507); -x_515 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_515, 0, x_513); -lean_ctor_set(x_515, 1, x_514); -return x_515; -} -} -} -else -{ -lean_object* x_516; lean_object* x_517; -lean_dec(x_502); -lean_dec(x_2); -x_516 = lean_ctor_get(x_504, 1); -lean_inc(x_516); -lean_dec(x_504); -x_517 = lean_ctor_get(x_505, 0); +lean_object* x_517; lean_object* x_518; lean_object* x_519; +x_517 = lean_ctor_get(x_511, 0); +x_518 = lean_ctor_get(x_511, 1); +lean_inc(x_518); lean_inc(x_517); -lean_dec(x_505); -x_12 = x_517; -x_13 = x_516; +lean_dec(x_511); +x_519 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_519, 0, x_517); +lean_ctor_set(x_519, 1, x_518); +return x_519; +} +} +} +else +{ +lean_object* x_520; lean_object* x_521; +lean_dec(x_506); +lean_dec(x_2); +x_520 = lean_ctor_get(x_508, 1); +lean_inc(x_520); +lean_dec(x_508); +x_521 = lean_ctor_get(x_509, 0); +lean_inc(x_521); +lean_dec(x_509); +x_12 = x_521; +x_13 = x_520; goto block_20; } } } case 11: { -lean_object* x_523; lean_object* x_524; uint8_t x_540; -x_523 = lean_ctor_get(x_1, 2); -lean_inc(x_523); -x_540 = lean_expr_has_expr_mvar(x_523); -if (x_540 == 0) +lean_object* x_527; lean_object* x_528; uint8_t x_544; +x_527 = lean_ctor_get(x_1, 2); +lean_inc(x_527); +x_544 = l_Lean_Expr_hasExprMVar(x_527); +if (x_544 == 0) { -uint8_t x_541; -x_541 = lean_expr_has_fvar(x_523); -if (x_541 == 0) +uint8_t x_545; +x_545 = l_Lean_Expr_hasFVar(x_527); +if (x_545 == 0) { lean_dec(x_2); -x_21 = x_523; +x_21 = x_527; x_22 = x_3; goto block_29; } else { -lean_object* x_542; -x_542 = lean_box(0); -x_524 = x_542; -goto block_539; +lean_object* x_546; +x_546 = lean_box(0); +x_528 = x_546; +goto block_543; } } else { -lean_object* x_543; -x_543 = lean_box(0); -x_524 = x_543; -goto block_539; +lean_object* x_547; +x_547 = lean_box(0); +x_528 = x_547; +goto block_543; } -block_539: +block_543: { -lean_object* x_525; lean_object* x_526; -lean_dec(x_524); -x_525 = l_Lean_Meta_CheckAssignment_findCached(x_523, x_2, x_3); -x_526 = lean_ctor_get(x_525, 0); -lean_inc(x_526); -if (lean_obj_tag(x_526) == 0) -{ -lean_object* x_527; lean_object* x_528; -x_527 = lean_ctor_get(x_525, 1); -lean_inc(x_527); -lean_dec(x_525); -lean_inc(x_2); -lean_inc(x_523); -x_528 = l_Lean_Meta_CheckAssignment_check___main(x_523, x_2, x_527); -if (lean_obj_tag(x_528) == 0) -{ -lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; -x_529 = lean_ctor_get(x_528, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_528, 1); -lean_inc(x_530); +lean_object* x_529; lean_object* x_530; lean_dec(x_528); -lean_inc(x_529); -x_531 = l_Lean_Meta_CheckAssignment_cache(x_523, x_529, x_2, x_530); +x_529 = l_Lean_Meta_CheckAssignment_findCached(x_527, x_2, x_3); +x_530 = lean_ctor_get(x_529, 0); +lean_inc(x_530); +if (lean_obj_tag(x_530) == 0) +{ +lean_object* x_531; lean_object* x_532; +x_531 = lean_ctor_get(x_529, 1); +lean_inc(x_531); +lean_dec(x_529); +lean_inc(x_2); +lean_inc(x_527); +x_532 = l_Lean_Meta_CheckAssignment_check___main(x_527, x_2, x_531); +if (lean_obj_tag(x_532) == 0) +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_533 = lean_ctor_get(x_532, 0); +lean_inc(x_533); +x_534 = lean_ctor_get(x_532, 1); +lean_inc(x_534); +lean_dec(x_532); +lean_inc(x_533); +x_535 = l_Lean_Meta_CheckAssignment_cache(x_527, x_533, x_2, x_534); lean_dec(x_2); -x_532 = lean_ctor_get(x_531, 1); -lean_inc(x_532); -lean_dec(x_531); -x_21 = x_529; -x_22 = x_532; +x_536 = lean_ctor_get(x_535, 1); +lean_inc(x_536); +lean_dec(x_535); +x_21 = x_533; +x_22 = x_536; goto block_29; } else { -uint8_t x_533; -lean_dec(x_523); +uint8_t x_537; +lean_dec(x_527); lean_dec(x_2); lean_dec(x_1); -x_533 = !lean_is_exclusive(x_528); -if (x_533 == 0) +x_537 = !lean_is_exclusive(x_532); +if (x_537 == 0) { -return x_528; +return x_532; } else { -lean_object* x_534; lean_object* x_535; lean_object* x_536; -x_534 = lean_ctor_get(x_528, 0); -x_535 = lean_ctor_get(x_528, 1); -lean_inc(x_535); -lean_inc(x_534); -lean_dec(x_528); -x_536 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_536, 0, x_534); -lean_ctor_set(x_536, 1, x_535); -return x_536; -} -} -} -else -{ -lean_object* x_537; lean_object* x_538; -lean_dec(x_523); -lean_dec(x_2); -x_537 = lean_ctor_get(x_525, 1); -lean_inc(x_537); -lean_dec(x_525); -x_538 = lean_ctor_get(x_526, 0); +lean_object* x_538; lean_object* x_539; lean_object* x_540; +x_538 = lean_ctor_get(x_532, 0); +x_539 = lean_ctor_get(x_532, 1); +lean_inc(x_539); lean_inc(x_538); -lean_dec(x_526); -x_21 = x_538; -x_22 = x_537; +lean_dec(x_532); +x_540 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_540, 0, x_538); +lean_ctor_set(x_540, 1, x_539); +return x_540; +} +} +} +else +{ +lean_object* x_541; lean_object* x_542; +lean_dec(x_527); +lean_dec(x_2); +x_541 = lean_ctor_get(x_529, 1); +lean_inc(x_541); +lean_dec(x_529); +x_542 = lean_ctor_get(x_530, 0); +lean_inc(x_542); +lean_dec(x_530); +x_21 = x_542; +x_22 = x_541; goto block_29; } } } +case 12: +{ +lean_object* x_548; lean_object* x_549; lean_object* x_550; +lean_dec(x_1); +x_548 = l_Lean_Meta_CheckAssignment_check___main___closed__1; +x_549 = l_unreachable_x21___rarg(x_548); +x_550 = lean_apply_2(x_549, x_2, x_3); +return x_550; +} default: { -lean_object* x_544; +lean_object* x_551; lean_dec(x_2); -x_544 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_544, 0, x_1); -lean_ctor_set(x_544, 1, x_3); -return x_544; +x_551 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_551, 0, x_1); +lean_ctor_set(x_551, 1, x_3); +return x_551; } } block_11: @@ -7311,7 +7344,7 @@ else lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_12); lean_dec(x_1); -x_16 = l_Lean_Expr_inhabited; +x_16 = l_Lean_Expr_Inhabited; x_17 = l_Lean_Expr_updateMData_x21___closed__2; x_18 = lean_panic_fn(x_17); x_19 = lean_alloc_ctor(0, 2, 0); @@ -7336,7 +7369,7 @@ else lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_dec(x_21); lean_dec(x_1); -x_25 = l_Lean_Expr_inhabited; +x_25 = l_Lean_Expr_Inhabited; x_26 = l_Lean_Expr_updateProj_x21___closed__2; x_27 = lean_panic_fn(x_26); x_28 = lean_alloc_ctor(0, 2, 0); @@ -7626,7 +7659,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean x_21 = lean_ctor_get(x_12, 1); lean_inc(x_21); lean_dec(x_12); -x_22 = lean_expr_mk_mvar(x_1); +x_22 = l_Lean_mkMVar(x_1); x_23 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_23, 0, x_22); x_24 = lean_unsigned_to_nat(0u); @@ -7736,14 +7769,14 @@ return x_46; else { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_47 = lean_expr_mk_fvar(x_42); +x_47 = l_Lean_mkFVar(x_42); x_48 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_48, 0, x_47); x_49 = l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__15; x_50 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); -x_51 = lean_expr_mk_mvar(x_1); +x_51 = l_Lean_mkMVar(x_1); x_52 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_52, 0, x_51); x_53 = lean_alloc_ctor(7, 2, 0); @@ -7844,14 +7877,14 @@ return x_83; else { 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; uint8_t x_101; -x_84 = lean_expr_mk_mvar(x_79); +x_84 = l_Lean_mkMVar(x_79); x_85 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_85, 0, x_84); x_86 = l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__15; x_87 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_87, 0, x_85); lean_ctor_set(x_87, 1, x_86); -x_88 = lean_expr_mk_mvar(x_1); +x_88 = l_Lean_mkMVar(x_1); x_89 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_89, 0, x_88); x_90 = lean_alloc_ctor(7, 2, 0); @@ -7952,14 +7985,14 @@ return x_120; else { lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_121 = lean_expr_mk_mvar(x_116); +x_121 = l_Lean_mkMVar(x_116); x_122 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_122, 0, x_121); x_123 = l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__15; x_124 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_124, 0, x_122); lean_ctor_set(x_124, 1, x_123); -x_125 = lean_expr_mk_mvar(x_1); +x_125 = l_Lean_mkMVar(x_1); x_126 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_126, 0, x_125); x_127 = lean_alloc_ctor(7, 2, 0); @@ -8104,11 +8137,11 @@ lean_object* l_Lean_Meta_checkAssignment(lean_object* x_1, lean_object* x_2, lea _start: { lean_object* x_6; uint8_t x_68; -x_68 = lean_expr_has_expr_mvar(x_3); +x_68 = l_Lean_Expr_hasExprMVar(x_3); if (x_68 == 0) { uint8_t x_69; -x_69 = lean_expr_has_fvar(x_3); +x_69 = l_Lean_Expr_hasFVar(x_3); if (x_69 == 0) { lean_object* x_70; lean_object* x_71; @@ -8386,7 +8419,7 @@ return x_12; else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = l_Lean_Expr_inhabited; +x_13 = l_Lean_Expr_Inhabited; x_14 = lean_array_get(x_13, x_4, x_6); x_15 = lean_array_fget(x_5, x_7); lean_inc(x_1); @@ -8510,14 +8543,14 @@ _start: 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; uint8_t x_14; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_7); -x_9 = l_Lean_Expr_inhabited___closed__1; +x_9 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_8); x_10 = lean_mk_array(x_8, x_9); x_11 = lean_unsigned_to_nat(1u); x_12 = lean_nat_sub(x_8, x_11); lean_dec(x_8); lean_inc(x_4); -x_13 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_4, x_10, x_12); +x_13 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_4, x_10, x_12); x_14 = l_Array_isEmpty___rarg(x_13); if (x_14 == 0) { @@ -8548,7 +8581,7 @@ lean_dec(x_4); x_22 = lean_nat_sub(x_15, x_16); lean_dec(x_16); lean_dec(x_15); -x_23 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_22, x_13, x_7, x_21); +x_23 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_22, x_13, x_7, x_21); x_24 = l___private_Init_Lean_Meta_ExprDefEq_9__isDefEqFOApprox___main(x_1, x_2, x_23, x_3, x_13, x_7, x_22, x_5, x_6); lean_dec(x_13); return x_24; @@ -8560,7 +8593,7 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = lean_nat_sub(x_16, x_15); lean_dec(x_15); lean_dec(x_16); -x_26 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_25, x_3, x_7, x_2); +x_26 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_25, x_3, x_7, x_2); x_27 = l_Lean_Expr_getAppFn___main(x_4); lean_dec(x_4); x_28 = l___private_Init_Lean_Meta_ExprDefEq_9__isDefEqFOApprox___main(x_1, x_26, x_27, x_3, x_13, x_25, x_7, x_5, x_6); @@ -9098,7 +9131,7 @@ _start: { lean_object* x_4; uint8_t x_5; x_4 = l_Lean_Expr_getAppFn___main(x_1); -x_5 = lean_expr_has_expr_mvar(x_4); +x_5 = l_Lean_Expr_hasExprMVar(x_4); lean_dec(x_4); if (x_5 == 0) { @@ -11033,6 +11066,8 @@ l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__3 = _init_l_Lean_Meta_Chec lean_mark_persistent(l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__3); l_Lean_Meta_CheckAssignment_Lean_MonadCache = _init_l_Lean_Meta_CheckAssignment_Lean_MonadCache(); lean_mark_persistent(l_Lean_Meta_CheckAssignment_Lean_MonadCache); +l_Lean_Meta_CheckAssignment_check___main___closed__1 = _init_l_Lean_Meta_CheckAssignment_check___main___closed__1(); +lean_mark_persistent(l_Lean_Meta_CheckAssignment_check___main___closed__1); l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__1(); lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__1); l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_8__checkAssignmentFailure___closed__2(); diff --git a/stage0/library/Init/Lean/Meta/FunInfo.c b/stage0/library/Init/Lean/Meta/FunInfo.c index c7509a68bf..29d0ef0668 100644 --- a/stage0/library/Init/Lean/Meta/FunInfo.c +++ b/stage0/library/Init/Lean/Meta/FunInfo.c @@ -16,7 +16,7 @@ extern "C" { lean_object* l_Lean_Meta_inferTypeAuxAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_fvar(lean_object*); +uint8_t l_Lean_Expr_hasFVar(lean_object*); size_t l_USize_mul(size_t, size_t); extern lean_object* l_Nat_Inhabited; lean_object* l_Lean_Meta_getFunInfoAuxAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -25,7 +25,7 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_collectDepsAux___main___spec__2(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at___private_Init_Lean_Meta_FunInfo_1__checkFunInfoCache___spec__2(lean_object*, size_t, lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Lean_Meta_collectDepsAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__partitionAux___main___at_Lean_Meta_collectDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_FunInfo_2__updateHasFwdDeps___boxed(lean_object*, lean_object*); @@ -51,6 +51,7 @@ lean_object* l_Lean_Meta_collectDeps___boxed(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___closed__1; lean_object* l___private_Init_Lean_Meta_FunInfo_1__checkFunInfoCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Meta_collectDepsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsortAux___main___at_Lean_Meta_collectDeps___spec__1(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -66,7 +67,6 @@ lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_collectDepsAux(lean_object*, lean_object*, lean_object*); extern size_t l_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -extern lean_object* l_Lean_Expr_inhabited; uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_collectDepsAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); size_t l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1(lean_object*); @@ -510,7 +510,7 @@ x_4 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_TransparencyMode_hash(x_4); -x_8 = lean_expr_hash(x_5); +x_8 = l_Lean_Expr_hash(x_5); x_9 = l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1(x_6); x_10 = lean_usize_mix_hash(x_8, x_9); x_11 = lean_usize_mix_hash(x_7, x_10); @@ -750,7 +750,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_9, 1); lean_inc(x_19); x_20 = l_Lean_Meta_TransparencyMode_hash(x_17); -x_21 = lean_expr_hash(x_18); +x_21 = l_Lean_Expr_hash(x_18); lean_dec(x_18); x_22 = l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1(x_19); lean_dec(x_19); @@ -1510,7 +1510,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_2, 1); lean_inc(x_12); x_13 = l_Lean_Meta_TransparencyMode_hash(x_10); -x_14 = lean_expr_hash(x_11); +x_14 = l_Lean_Expr_hash(x_11); lean_dec(x_11); x_15 = l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1(x_12); lean_dec(x_12); @@ -1539,7 +1539,7 @@ lean_inc(x_25); x_26 = lean_ctor_get(x_2, 1); lean_inc(x_26); x_27 = l_Lean_Meta_TransparencyMode_hash(x_24); -x_28 = lean_expr_hash(x_25); +x_28 = l_Lean_Expr_hash(x_25); lean_dec(x_25); x_29 = l_Option_hash___at_Lean_Meta_InfoCacheKey_Hashable___spec__1(x_26); lean_dec(x_26); @@ -1837,7 +1837,7 @@ lean_object* l_Lean_Meta_whenHasVar___rarg(lean_object* x_1, lean_object* x_2, l _start: { uint8_t x_4; -x_4 = lean_expr_has_fvar(x_1); +x_4 = l_Lean_Expr_hasFVar(x_1); if (x_4 == 0) { lean_dec(x_3); @@ -1991,7 +1991,7 @@ case 5: lean_object* x_9; lean_object* x_10; uint8_t x_11; x_9 = lean_ctor_get(x_2, 0); x_10 = lean_ctor_get(x_2, 1); -x_11 = lean_expr_has_fvar(x_2); +x_11 = l_Lean_Expr_hasFVar(x_2); if (x_11 == 0) { return x_3; @@ -2010,7 +2010,7 @@ case 6: lean_object* x_14; lean_object* x_15; uint8_t x_16; x_14 = lean_ctor_get(x_2, 1); x_15 = lean_ctor_get(x_2, 2); -x_16 = lean_expr_has_fvar(x_2); +x_16 = l_Lean_Expr_hasFVar(x_2); if (x_16 == 0) { return x_3; @@ -2029,7 +2029,7 @@ case 7: lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_2, 1); x_20 = lean_ctor_get(x_2, 2); -x_21 = lean_expr_has_fvar(x_2); +x_21 = l_Lean_Expr_hasFVar(x_2); if (x_21 == 0) { return x_3; @@ -2049,7 +2049,7 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_24 = lean_ctor_get(x_2, 1); x_25 = lean_ctor_get(x_2, 2); x_26 = lean_ctor_get(x_2, 3); -x_27 = lean_expr_has_fvar(x_2); +x_27 = l_Lean_Expr_hasFVar(x_2); if (x_27 == 0) { return x_3; @@ -2499,7 +2499,7 @@ lean_object* l_Lean_Meta_getFunInfoAuxAux___lambda__1(lean_object* x_1, lean_obj _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = l_Lean_Expr_inhabited; +x_7 = l_Lean_Expr_Inhabited; x_8 = lean_array_get(x_7, x_1, x_3); x_9 = l_Lean_Expr_fvarId_x21(x_8); lean_dec(x_8); diff --git a/stage0/library/Init/Lean/Meta/InferType.c b/stage0/library/Init/Lean/Meta/InferType.c index 8e5f362f25..35960a5272 100644 --- a/stage0/library/Init/Lean/Meta/InferType.c +++ b/stage0/library/Init/Lean/Meta/InferType.c @@ -20,7 +20,6 @@ lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___at_Le lean_object* l___private_Init_Lean_Meta_InferType_13__isArrowProp___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__29___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_mul(size_t, size_t); -lean_object* lean_expr_mk_sort(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at_Lean_Meta_inferTypeAux___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_5__getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; @@ -32,7 +31,7 @@ lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object* lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_4__inferProjType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__10___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* l_Lean_Level_normalize___main(lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); @@ -70,7 +69,6 @@ lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux__ lean_object* l_Lean_Meta_usingDefault(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_5__getLevel___at_Lean_Meta_inferTypeAux___spec__17(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_6__inferForallType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Nat_foldMAux___main___at_Lean_Meta_inferTypeAux___spec__34___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__4(lean_object*, lean_object*, lean_object*); @@ -84,7 +82,6 @@ lean_object* l_Lean_Meta_lambdaTelescope___rarg(lean_object*, lean_object*, lean lean_object* l___private_Init_Lean_Meta_InferType_14__isPropQuickApp___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferTypeAuxAux___main___at_Lean_Meta_inferTypeAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*); uint8_t l_Bool_toLBool(uint8_t); lean_object* l___private_Init_Lean_Meta_InferType_4__inferProjType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,6 +91,7 @@ lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___lambd extern lean_object* l_Lean_ExprStructEq_HasBeq; lean_object* l_PersistentHashMap_findAtAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_equal(lean_object*, lean_object*); +lean_object* l_Lean_mkSort(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_9__lambdaTelescopeAux___main___at_Lean_Meta_inferTypeAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___closed__1; lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at_Lean_Meta_inferTypeAux___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,6 +105,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_10__inferFVarType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__29___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* l_Lean_mkFVar(lean_object*); lean_object* l_PersistentHashMap_find___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__1___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Meta_inferTypeAux___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -144,6 +143,7 @@ lean_object* lean_level_mk_succ(lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_6__inferForallType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_13__isArrowProp(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -152,6 +152,7 @@ lean_object* l_PersistentHashMap_find___rarg(lean_object*, lean_object*, lean_ob uint8_t lean_is_class(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Meta_inferTypeAux___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_3__inferConstType(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_insertAux___main___rarg___closed__3; lean_object* lean_array_get_size(lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Meta_inferTypeAux___spec__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -165,23 +166,24 @@ lean_object* l___private_Init_Lean_Meta_InferType_7__inferLambdaType(lean_object lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___at_Lean_Meta_inferTypeAux___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Nat_foldMAux___main___at_Lean_Meta_inferTypeAux___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__7(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isPropAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main___at_Lean_Meta_inferTypeAux___spec__21(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_5__getLevel___at_Lean_Meta_inferTypeAux___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); +extern lean_object* l_Lean_Meta_isClassQuick___main___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_13__isArrowProp___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__10(lean_object*, 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_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__26(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l___private_Init_Lean_Meta_Basic_8__forallTelescopeReducingAux___at_Lean_Meta_inferTypeAux___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__28___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__25___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*); @@ -191,6 +193,7 @@ lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAu lean_object* l___private_Init_Lean_Meta_InferType_12__isAlwaysZero___main___boxed(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__10___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_6__inferForallType___at_Lean_Meta_inferTypeAux___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); lean_object* l___private_Init_Lean_Meta_Basic_7__forallTelescopeReducingAuxAux___main___at_Lean_Meta_inferTypeAux___spec__23(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_InferType_1__getForallResultType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: @@ -651,7 +654,7 @@ return x_9; else { lean_object* x_15; lean_object* x_16; -x_15 = lean_expr_mk_proj(x_2, x_5, x_4); +x_15 = l_Lean_mkProj(x_2, x_5, x_4); x_16 = lean_expr_instantiate1(x_13, x_15); lean_dec(x_15); lean_dec(x_13); @@ -683,7 +686,7 @@ return x_20; else { lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_expr_mk_proj(x_2, x_5, x_4); +x_21 = l_Lean_mkProj(x_2, x_5, x_4); x_22 = lean_expr_instantiate1(x_18, x_21); lean_dec(x_21); lean_dec(x_18); @@ -901,13 +904,13 @@ lean_inc(x_32); lean_dec(x_26); x_33 = lean_unsigned_to_nat(0u); x_34 = l_Lean_Expr_getAppNumArgsAux___main(x_14, x_33); -x_35 = l_Lean_Expr_inhabited___closed__1; +x_35 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_34); x_36 = lean_mk_array(x_34, x_35); x_37 = lean_unsigned_to_nat(1u); x_38 = lean_nat_sub(x_34, x_37); lean_dec(x_34); -x_39 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_14, x_36, x_38); +x_39 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_14, x_36, x_38); x_40 = lean_array_get_size(x_39); x_41 = lean_nat_dec_eq(x_31, x_40); lean_dec(x_40); @@ -1366,13 +1369,13 @@ lean_inc(x_125); lean_dec(x_118); x_126 = lean_unsigned_to_nat(0u); x_127 = l_Lean_Expr_getAppNumArgsAux___main(x_105, x_126); -x_128 = l_Lean_Expr_inhabited___closed__1; +x_128 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_127); x_129 = lean_mk_array(x_127, x_128); x_130 = lean_unsigned_to_nat(1u); x_131 = lean_nat_sub(x_127, x_130); lean_dec(x_127); -x_132 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_105, x_129, x_131); +x_132 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_105, x_129, x_131); x_133 = lean_array_get_size(x_132); x_134 = lean_nat_dec_eq(x_124, x_133); lean_dec(x_133); @@ -1831,7 +1834,7 @@ lean_inc(x_19); lean_dec(x_17); x_20 = lean_level_mk_mvar(x_18); lean_inc(x_20); -x_21 = lean_expr_mk_sort(x_20); +x_21 = l_Lean_mkSort(x_20); x_22 = l_Lean_Meta_assignExprMVar(x_12, x_21, x_4, x_19); lean_dec(x_4); if (lean_obj_tag(x_22) == 0) @@ -2234,7 +2237,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l_Lean_Level_normalize___main(x_16); lean_dec(x_16); -x_18 = lean_expr_mk_sort(x_17); +x_18 = l_Lean_mkSort(x_17); lean_ctor_set(x_14, 0, x_18); return x_14; } @@ -2248,7 +2251,7 @@ lean_inc(x_19); lean_dec(x_14); x_21 = l_Lean_Level_normalize___main(x_19); lean_dec(x_19); -x_22 = lean_expr_mk_sort(x_21); +x_22 = l_Lean_mkSort(x_21); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_20); @@ -2581,7 +2584,7 @@ x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); lean_inc(x_9); -x_11 = lean_expr_mk_fvar(x_9); +x_11 = l_Lean_mkFVar(x_9); x_12 = !lean_is_exclusive(x_5); if (x_12 == 0) { @@ -3139,7 +3142,7 @@ _start: { lean_object* x_3; size_t x_4; lean_object* x_5; x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_expr_hash(x_2); +x_4 = l_Lean_Expr_hash(x_2); x_5 = l_PersistentHashMap_findAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__2(x_3, x_4, x_2); return x_5; } @@ -3253,7 +3256,7 @@ else lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_9 = lean_array_fget(x_4, x_5); x_10 = lean_array_fget(x_3, x_5); -x_11 = lean_expr_hash(x_9); +x_11 = l_Lean_Expr_hash(x_9); x_12 = 1; x_13 = x_1 - x_12; x_14 = 5; @@ -3592,7 +3595,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_hash(x_2); +x_7 = l_Lean_Expr_hash(x_2); x_8 = 1; x_9 = l_PersistentHashMap_insertAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__5(x_5, x_7, x_8, x_2, x_3); x_10 = lean_unsigned_to_nat(1u); @@ -3610,7 +3613,7 @@ x_13 = lean_ctor_get(x_1, 1); lean_inc(x_13); lean_inc(x_12); lean_dec(x_1); -x_14 = lean_expr_hash(x_2); +x_14 = l_Lean_Expr_hash(x_2); x_15 = 1; x_16 = l_PersistentHashMap_insertAux___main___at___private_Init_Lean_Meta_InferType_11__checkInferTypeCache___spec__5(x_12, x_14, x_15, x_2, x_3); x_17 = lean_unsigned_to_nat(1u); @@ -3945,7 +3948,7 @@ x_66 = lean_ctor_get(x_2, 0); lean_inc(x_66); lean_dec(x_2); x_67 = lean_level_mk_succ(x_66); -x_68 = lean_expr_mk_sort(x_67); +x_68 = l_Lean_mkSort(x_67); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_4); @@ -3976,14 +3979,14 @@ x_75 = l_Lean_Expr_getAppFn___main(x_73); lean_dec(x_73); x_76 = lean_unsigned_to_nat(0u); x_77 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_76); -x_78 = l_Lean_Expr_inhabited___closed__1; +x_78 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_77); x_79 = lean_mk_array(x_77, x_78); x_80 = lean_unsigned_to_nat(1u); x_81 = lean_nat_sub(x_77, x_80); lean_dec(x_77); lean_inc(x_2); -x_82 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_79, x_81); +x_82 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_79, x_81); x_83 = lean_ctor_get(x_4, 2); lean_inc(x_83); x_84 = lean_ctor_get(x_83, 0); @@ -4671,11 +4674,21 @@ lean_ctor_set(x_245, 1, x_4); return x_245; } } +case 12: +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_2); +lean_dec(x_1); +x_246 = l_Lean_Meta_isClassQuick___main___closed__1; +x_247 = l_unreachable_x21___rarg(x_246); +x_248 = lean_apply_2(x_247, x_3, x_4); +return x_248; +} default: { -lean_object* x_246; -x_246 = lean_box(0); -x_5 = x_246; +lean_object* x_249; +x_249 = lean_box(0); +x_5 = x_249; goto block_58; } } @@ -4983,6 +4996,7 @@ lean_inc(x_23); lean_dec(x_21); x_24 = l_Lean_LocalDecl_type(x_22); lean_dec(x_22); +lean_inc(x_5); lean_inc(x_24); x_25 = l_Lean_Meta_isClassQuick___main(x_24, x_5, x_23); if (lean_obj_tag(x_25) == 0) @@ -5347,6 +5361,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_12); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_12, x_24); if (lean_obj_tag(x_26) == 0) @@ -5674,6 +5689,7 @@ lean_inc(x_23); lean_dec(x_21); x_24 = l_Lean_LocalDecl_type(x_22); lean_dec(x_22); +lean_inc(x_5); lean_inc(x_24); x_25 = l_Lean_Meta_isClassQuick___main(x_24, x_5, x_23); if (lean_obj_tag(x_25) == 0) @@ -5919,90 +5935,91 @@ _start: lean_object* x_10; if (lean_obj_tag(x_7) == 7) { -lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_23 = lean_ctor_get(x_7, 0); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_7, sizeof(void*)*3); -x_25 = lean_ctor_get(x_7, 1); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_7, 2); lean_inc(x_25); -x_26 = lean_ctor_get(x_7, 2); -lean_inc(x_26); +x_26 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); lean_dec(x_7); x_27 = lean_array_get_size(x_5); lean_inc(x_5); -x_28 = lean_expr_instantiate_rev_range(x_25, x_6, x_27, x_5); +x_28 = lean_expr_instantiate_rev_range(x_24, x_6, x_27, x_5); lean_dec(x_27); -lean_dec(x_25); +lean_dec(x_24); x_29 = l_Lean_Meta_mkFreshId___rarg(x_9); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); +x_32 = (uint8_t)((x_26 << 24) >> 61); lean_inc(x_30); -x_32 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_24); -x_33 = lean_expr_mk_fvar(x_30); -x_34 = lean_array_push(x_5, x_33); +x_33 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_32); +x_34 = l_Lean_mkFVar(x_30); +x_35 = lean_array_push(x_5, x_34); if (lean_obj_tag(x_3) == 0) { -x_4 = x_32; -x_5 = x_34; -x_7 = x_26; +x_4 = x_33; +x_5 = x_35; +x_7 = x_25; x_9 = x_31; goto _start; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_3, 0); -lean_inc(x_36); -x_37 = lean_array_get_size(x_34); -x_38 = lean_nat_dec_lt(x_37, x_36); -lean_dec(x_36); -if (x_38 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_array_get_size(x_35); +x_39 = lean_nat_dec_lt(x_38, x_37); +lean_dec(x_37); +if (x_39 == 0) { -lean_object* x_39; uint8_t x_40; +lean_object* x_40; uint8_t x_41; lean_dec(x_3); -lean_inc(x_34); -x_39 = lean_expr_instantiate_rev_range(x_26, x_6, x_37, x_34); -lean_dec(x_37); -lean_dec(x_26); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) +lean_inc(x_35); +x_40 = lean_expr_instantiate_rev_range(x_25, x_6, x_38, x_35); +lean_dec(x_38); +lean_dec(x_25); +x_41 = !lean_is_exclusive(x_8); +if (x_41 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); -lean_dec(x_41); -lean_ctor_set(x_8, 1, x_32); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__11(x_1, x_39, x_34, x_6, x_8, x_31); -lean_dec(x_34); -lean_dec(x_39); -return x_42; +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_8, 1); +lean_dec(x_42); +lean_ctor_set(x_8, 1, x_33); +x_43 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__11(x_1, x_40, x_35, x_6, x_8, x_31); +lean_dec(x_35); +lean_dec(x_40); +return x_43; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_8, 0); -x_44 = lean_ctor_get(x_8, 2); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_8, 0); +x_45 = lean_ctor_get(x_8, 2); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_8); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_32); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__11(x_1, x_39, x_34, x_6, x_45, x_31); -lean_dec(x_34); -lean_dec(x_39); -return x_46; +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_33); +lean_ctor_set(x_46, 2, x_45); +x_47 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__11(x_1, x_40, x_35, x_6, x_46, x_31); +lean_dec(x_35); +lean_dec(x_40); +return x_47; } } else { -lean_dec(x_37); -x_4 = x_32; -x_5 = x_34; -x_7 = x_26; +lean_dec(x_38); +x_4 = x_33; +x_5 = x_35; +x_7 = x_25; x_9 = x_31; goto _start; } @@ -6010,9 +6027,9 @@ goto _start; } else { -lean_object* x_48; -x_48 = lean_box(0); -x_10 = x_48; +lean_object* x_49; +x_49 = lean_box(0); +x_10 = x_49; goto block_22; } block_22: @@ -7006,6 +7023,7 @@ lean_inc(x_22); lean_dec(x_20); x_23 = l_Lean_LocalDecl_type(x_21); lean_dec(x_21); +lean_inc(x_6); lean_inc(x_23); x_24 = l_Lean_Meta_isClassQuick___main(x_23, x_6, x_22); if (lean_obj_tag(x_24) == 0) @@ -7258,77 +7276,78 @@ lean_object* x_8; switch (lean_obj_tag(x_5)) { case 6: { -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; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint64_t 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; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_19 = lean_ctor_get(x_5, 0); lean_inc(x_19); -x_20 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); -x_21 = lean_ctor_get(x_5, 1); +x_20 = lean_ctor_get(x_5, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_5, 2); lean_inc(x_21); -x_22 = lean_ctor_get(x_5, 2); -lean_inc(x_22); +x_22 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); lean_dec(x_5); x_23 = lean_array_get_size(x_3); lean_inc(x_3); -x_24 = lean_expr_instantiate_rev_range(x_21, x_4, x_23, x_3); +x_24 = lean_expr_instantiate_rev_range(x_20, x_4, x_23, x_3); lean_dec(x_23); -lean_dec(x_21); +lean_dec(x_20); x_25 = l_Lean_Meta_mkFreshId___rarg(x_7); x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); +x_28 = (uint8_t)((x_22 << 24) >> 61); lean_inc(x_26); -x_28 = lean_local_ctx_mk_local_decl(x_2, x_26, x_19, x_24, x_20); -x_29 = lean_expr_mk_fvar(x_26); -x_30 = lean_array_push(x_3, x_29); -x_2 = x_28; -x_3 = x_30; -x_5 = x_22; +x_29 = lean_local_ctx_mk_local_decl(x_2, x_26, x_19, x_24, x_28); +x_30 = l_Lean_mkFVar(x_26); +x_31 = lean_array_push(x_3, x_30); +x_2 = x_29; +x_3 = x_31; +x_5 = x_21; x_7 = x_27; goto _start; } case 8: { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_32 = lean_ctor_get(x_5, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_5, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_33 = lean_ctor_get(x_5, 0); lean_inc(x_33); -x_34 = lean_ctor_get(x_5, 2); +x_34 = lean_ctor_get(x_5, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_5, 3); +x_35 = lean_ctor_get(x_5, 2); lean_inc(x_35); +x_36 = lean_ctor_get(x_5, 3); +lean_inc(x_36); lean_dec(x_5); -x_36 = lean_array_get_size(x_3); +x_37 = lean_array_get_size(x_3); lean_inc(x_3); -x_37 = lean_expr_instantiate_rev_range(x_33, x_4, x_36, x_3); -lean_dec(x_33); -lean_inc(x_3); -x_38 = lean_expr_instantiate_rev_range(x_34, x_4, x_36, x_3); -lean_dec(x_36); +x_38 = lean_expr_instantiate_rev_range(x_34, x_4, x_37, x_3); lean_dec(x_34); -x_39 = l_Lean_Meta_mkFreshId___rarg(x_7); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_3); +x_39 = lean_expr_instantiate_rev_range(x_35, x_4, x_37, x_3); +lean_dec(x_37); +lean_dec(x_35); +x_40 = l_Lean_Meta_mkFreshId___rarg(x_7); +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_dec(x_39); -lean_inc(x_40); -x_42 = lean_local_ctx_mk_let_decl(x_2, x_40, x_32, x_37, x_38); -x_43 = lean_expr_mk_fvar(x_40); -x_44 = lean_array_push(x_3, x_43); -x_2 = x_42; -x_3 = x_44; -x_5 = x_35; -x_7 = x_41; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_41); +x_43 = lean_local_ctx_mk_let_decl(x_2, x_41, x_33, x_38, x_39); +x_44 = l_Lean_mkFVar(x_41); +x_45 = lean_array_push(x_3, x_44); +x_2 = x_43; +x_3 = x_45; +x_5 = x_36; +x_7 = x_42; goto _start; } default: { -lean_object* x_46; -x_46 = lean_box(0); -x_8 = x_46; +lean_object* x_47; +x_47 = lean_box(0); +x_8 = x_47; goto block_18; } } @@ -8186,7 +8205,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = lean_level_mk_mvar(x_23); lean_inc(x_25); -x_26 = lean_expr_mk_sort(x_25); +x_26 = l_Lean_mkSort(x_25); x_27 = l_Lean_Meta_assignExprMVar(x_17, x_26, x_3, x_24); lean_dec(x_3); if (lean_obj_tag(x_27) == 0) @@ -8490,7 +8509,7 @@ lean_inc(x_94); lean_dec(x_92); x_95 = lean_level_mk_mvar(x_93); lean_inc(x_95); -x_96 = lean_expr_mk_sort(x_95); +x_96 = l_Lean_mkSort(x_95); x_97 = l_Lean_Meta_assignExprMVar(x_87, x_96, x_3, x_94); lean_dec(x_3); if (lean_obj_tag(x_97) == 0) @@ -8803,7 +8822,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = lean_level_mk_mvar(x_23); lean_inc(x_25); -x_26 = lean_expr_mk_sort(x_25); +x_26 = l_Lean_mkSort(x_25); x_27 = l_Lean_Meta_assignExprMVar(x_17, x_26, x_3, x_24); lean_dec(x_3); if (lean_obj_tag(x_27) == 0) @@ -9107,7 +9126,7 @@ lean_inc(x_94); lean_dec(x_92); x_95 = lean_level_mk_mvar(x_93); lean_inc(x_95); -x_96 = lean_expr_mk_sort(x_95); +x_96 = l_Lean_mkSort(x_95); x_97 = l_Lean_Meta_assignExprMVar(x_87, x_96, x_3, x_94); lean_dec(x_3); if (lean_obj_tag(x_97) == 0) @@ -9528,6 +9547,7 @@ lean_inc(x_23); lean_dec(x_21); x_24 = l_Lean_LocalDecl_type(x_22); lean_dec(x_22); +lean_inc(x_5); lean_inc(x_24); x_25 = l_Lean_Meta_isClassQuick___main(x_24, x_5, x_23); if (lean_obj_tag(x_25) == 0) @@ -9892,6 +9912,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_12); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_12, x_24); if (lean_obj_tag(x_26) == 0) @@ -10219,6 +10240,7 @@ lean_inc(x_23); lean_dec(x_21); x_24 = l_Lean_LocalDecl_type(x_22); lean_dec(x_22); +lean_inc(x_5); lean_inc(x_24); x_25 = l_Lean_Meta_isClassQuick___main(x_24, x_5, x_23); if (lean_obj_tag(x_25) == 0) @@ -10464,90 +10486,91 @@ _start: lean_object* x_10; if (lean_obj_tag(x_7) == 7) { -lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_23 = lean_ctor_get(x_7, 0); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_7, sizeof(void*)*3); -x_25 = lean_ctor_get(x_7, 1); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_7, 2); lean_inc(x_25); -x_26 = lean_ctor_get(x_7, 2); -lean_inc(x_26); +x_26 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); lean_dec(x_7); x_27 = lean_array_get_size(x_5); lean_inc(x_5); -x_28 = lean_expr_instantiate_rev_range(x_25, x_6, x_27, x_5); +x_28 = lean_expr_instantiate_rev_range(x_24, x_6, x_27, x_5); lean_dec(x_27); -lean_dec(x_25); +lean_dec(x_24); x_29 = l_Lean_Meta_mkFreshId___rarg(x_9); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); +x_32 = (uint8_t)((x_26 << 24) >> 61); lean_inc(x_30); -x_32 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_24); -x_33 = lean_expr_mk_fvar(x_30); -x_34 = lean_array_push(x_5, x_33); +x_33 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_32); +x_34 = l_Lean_mkFVar(x_30); +x_35 = lean_array_push(x_5, x_34); if (lean_obj_tag(x_3) == 0) { -x_4 = x_32; -x_5 = x_34; -x_7 = x_26; +x_4 = x_33; +x_5 = x_35; +x_7 = x_25; x_9 = x_31; goto _start; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_3, 0); -lean_inc(x_36); -x_37 = lean_array_get_size(x_34); -x_38 = lean_nat_dec_lt(x_37, x_36); -lean_dec(x_36); -if (x_38 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_array_get_size(x_35); +x_39 = lean_nat_dec_lt(x_38, x_37); +lean_dec(x_37); +if (x_39 == 0) { -lean_object* x_39; uint8_t x_40; +lean_object* x_40; uint8_t x_41; lean_dec(x_3); -lean_inc(x_34); -x_39 = lean_expr_instantiate_rev_range(x_26, x_6, x_37, x_34); -lean_dec(x_37); -lean_dec(x_26); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) +lean_inc(x_35); +x_40 = lean_expr_instantiate_rev_range(x_25, x_6, x_38, x_35); +lean_dec(x_38); +lean_dec(x_25); +x_41 = !lean_is_exclusive(x_8); +if (x_41 == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); -lean_dec(x_41); -lean_ctor_set(x_8, 1, x_32); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__26(x_1, x_39, x_34, x_6, x_8, x_31); -lean_dec(x_34); -lean_dec(x_39); -return x_42; +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_8, 1); +lean_dec(x_42); +lean_ctor_set(x_8, 1, x_33); +x_43 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__26(x_1, x_40, x_35, x_6, x_8, x_31); +lean_dec(x_35); +lean_dec(x_40); +return x_43; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_8, 0); -x_44 = lean_ctor_get(x_8, 2); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_8, 0); +x_45 = lean_ctor_get(x_8, 2); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_8); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_32); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__26(x_1, x_39, x_34, x_6, x_45, x_31); -lean_dec(x_34); -lean_dec(x_39); -return x_46; +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_33); +lean_ctor_set(x_46, 2, x_45); +x_47 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__26(x_1, x_40, x_35, x_6, x_46, x_31); +lean_dec(x_35); +lean_dec(x_40); +return x_47; } } else { -lean_dec(x_37); -x_4 = x_32; -x_5 = x_34; -x_7 = x_26; +lean_dec(x_38); +x_4 = x_33; +x_5 = x_35; +x_7 = x_25; x_9 = x_31; goto _start; } @@ -10555,9 +10578,9 @@ goto _start; } else { -lean_object* x_48; -x_48 = lean_box(0); -x_10 = x_48; +lean_object* x_49; +x_49 = lean_box(0); +x_10 = x_49; goto block_22; } block_22: @@ -11518,7 +11541,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l_Lean_Level_normalize___main(x_16); lean_dec(x_16); -x_18 = lean_expr_mk_sort(x_17); +x_18 = l_Lean_mkSort(x_17); lean_ctor_set(x_14, 0, x_18); return x_14; } @@ -11532,7 +11555,7 @@ lean_inc(x_19); lean_dec(x_14); x_21 = l_Lean_Level_normalize___main(x_19); lean_dec(x_19); -x_22 = lean_expr_mk_sort(x_21); +x_22 = l_Lean_mkSort(x_21); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_20); @@ -11605,6 +11628,7 @@ lean_inc(x_36); lean_dec(x_34); x_37 = l_Lean_LocalDecl_type(x_35); lean_dec(x_35); +lean_inc(x_7); lean_inc(x_37); x_38 = l_Lean_Meta_isClassQuick___main(x_37, x_7, x_36); if (lean_obj_tag(x_38) == 0) @@ -11884,7 +11908,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = lean_ctor_get(x_15, 0); x_18 = l_Lean_Level_normalize___main(x_17); lean_dec(x_17); -x_19 = lean_expr_mk_sort(x_18); +x_19 = l_Lean_mkSort(x_18); lean_ctor_set(x_15, 0, x_19); return x_15; } @@ -11898,7 +11922,7 @@ lean_inc(x_20); lean_dec(x_15); x_22 = l_Lean_Level_normalize___main(x_20); lean_dec(x_20); -x_23 = lean_expr_mk_sort(x_22); +x_23 = l_Lean_mkSort(x_22); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_21); @@ -12023,6 +12047,7 @@ lean_inc(x_24); lean_dec(x_22); x_25 = l_Lean_LocalDecl_type(x_23); lean_dec(x_23); +lean_inc(x_12); lean_inc(x_25); x_26 = l_Lean_Meta_isClassQuick___main(x_25, x_12, x_24); if (lean_obj_tag(x_26) == 0) @@ -12310,7 +12335,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; x_16 = lean_ctor_get(x_14, 0); x_17 = l_Lean_Level_normalize___main(x_16); lean_dec(x_16); -x_18 = lean_expr_mk_sort(x_17); +x_18 = l_Lean_mkSort(x_17); lean_ctor_set(x_14, 0, x_18); return x_14; } @@ -12324,7 +12349,7 @@ lean_inc(x_19); lean_dec(x_14); x_21 = l_Lean_Level_normalize___main(x_19); lean_dec(x_19); -x_22 = lean_expr_mk_sort(x_21); +x_22 = l_Lean_mkSort(x_21); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_20); @@ -12397,6 +12422,7 @@ lean_inc(x_36); lean_dec(x_34); x_37 = l_Lean_LocalDecl_type(x_35); lean_dec(x_35); +lean_inc(x_7); lean_inc(x_37); x_38 = l_Lean_Meta_isClassQuick___main(x_37, x_7, x_36); if (lean_obj_tag(x_38) == 0) @@ -12648,87 +12674,88 @@ _start: lean_object* x_10; if (lean_obj_tag(x_7) == 7) { -lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint64_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_23 = lean_ctor_get(x_7, 0); lean_inc(x_23); -x_24 = lean_ctor_get_uint8(x_7, sizeof(void*)*3); -x_25 = lean_ctor_get(x_7, 1); +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_7, 2); lean_inc(x_25); -x_26 = lean_ctor_get(x_7, 2); -lean_inc(x_26); +x_26 = lean_ctor_get_uint64(x_7, sizeof(void*)*3); lean_dec(x_7); x_27 = lean_array_get_size(x_5); lean_inc(x_5); -x_28 = lean_expr_instantiate_rev_range(x_25, x_6, x_27, x_5); +x_28 = lean_expr_instantiate_rev_range(x_24, x_6, x_27, x_5); lean_dec(x_27); -lean_dec(x_25); +lean_dec(x_24); x_29 = l_Lean_Meta_mkFreshId___rarg(x_9); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); +x_32 = (uint8_t)((x_26 << 24) >> 61); lean_inc(x_30); -x_32 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_24); -x_33 = lean_expr_mk_fvar(x_30); -x_34 = lean_array_push(x_5, x_33); +x_33 = lean_local_ctx_mk_local_decl(x_4, x_30, x_23, x_28, x_32); +x_34 = l_Lean_mkFVar(x_30); +x_35 = lean_array_push(x_5, x_34); if (lean_obj_tag(x_3) == 0) { -x_4 = x_32; -x_5 = x_34; -x_7 = x_26; +x_4 = x_33; +x_5 = x_35; +x_7 = x_25; x_9 = x_31; goto _start; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_3, 0); -lean_inc(x_36); -x_37 = lean_array_get_size(x_34); -x_38 = lean_nat_dec_lt(x_37, x_36); -lean_dec(x_36); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; -lean_dec(x_3); -lean_inc(x_34); -x_39 = lean_expr_instantiate_rev_range(x_26, x_6, x_37, x_34); -lean_dec(x_26); -x_40 = !lean_is_exclusive(x_8); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_8, 1); -lean_dec(x_41); -lean_ctor_set(x_8, 1, x_32); -x_42 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__30(x_1, x_34, x_37, x_39, x_34, x_6, x_8, x_31); -lean_dec(x_34); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_8, 0); -x_44 = lean_ctor_get(x_8, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_8); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_32); -lean_ctor_set(x_45, 2, x_44); -x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__30(x_1, x_34, x_37, x_39, x_34, x_6, x_45, x_31); -lean_dec(x_34); -return x_46; -} -} -else -{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_array_get_size(x_35); +x_39 = lean_nat_dec_lt(x_38, x_37); lean_dec(x_37); -x_4 = x_32; -x_5 = x_34; -x_7 = x_26; +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +lean_dec(x_3); +lean_inc(x_35); +x_40 = lean_expr_instantiate_rev_range(x_25, x_6, x_38, x_35); +lean_dec(x_25); +x_41 = !lean_is_exclusive(x_8); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_8, 1); +lean_dec(x_42); +lean_ctor_set(x_8, 1, x_33); +x_43 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__30(x_1, x_35, x_38, x_40, x_35, x_6, x_8, x_31); +lean_dec(x_35); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_8, 0); +x_45 = lean_ctor_get(x_8, 2); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_8); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_33); +lean_ctor_set(x_46, 2, x_45); +x_47 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_inferTypeAux___spec__30(x_1, x_35, x_38, x_40, x_35, x_6, x_46, x_31); +lean_dec(x_35); +return x_47; +} +} +else +{ +lean_dec(x_38); +x_4 = x_33; +x_5 = x_35; +x_7 = x_25; x_9 = x_31; goto _start; } @@ -12736,9 +12763,9 @@ goto _start; } else { -lean_object* x_48; -x_48 = lean_box(0); -x_10 = x_48; +lean_object* x_49; +x_49 = lean_box(0); +x_10 = x_49; goto block_22; } block_22: @@ -13567,7 +13594,7 @@ else lean_object* x_28; lean_object* x_29; lean_inc(x_4); lean_inc(x_2); -x_28 = lean_expr_mk_proj(x_2, x_15, x_4); +x_28 = l_Lean_mkProj(x_2, x_15, x_4); x_29 = lean_expr_instantiate1(x_25, x_28); lean_dec(x_28); lean_dec(x_25); @@ -13720,7 +13747,7 @@ else lean_object* x_62; lean_object* x_63; lean_inc(x_4); lean_inc(x_2); -x_62 = lean_expr_mk_proj(x_2, x_15, x_4); +x_62 = l_Lean_mkProj(x_2, x_15, x_4); x_63 = lean_expr_instantiate1(x_59, x_62); lean_dec(x_62); lean_dec(x_59); @@ -13955,13 +13982,13 @@ lean_inc(x_35); lean_dec(x_30); x_36 = lean_unsigned_to_nat(0u); x_37 = l_Lean_Expr_getAppNumArgsAux___main(x_19, x_36); -x_38 = l_Lean_Expr_inhabited___closed__1; +x_38 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_37); x_39 = lean_mk_array(x_37, x_38); x_40 = lean_unsigned_to_nat(1u); x_41 = lean_nat_sub(x_37, x_40); lean_dec(x_37); -x_42 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_19, x_39, x_41); +x_42 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_19, x_39, x_41); x_43 = lean_array_get_size(x_42); x_44 = lean_nat_dec_eq(x_34, x_43); lean_dec(x_43); @@ -14400,13 +14427,13 @@ lean_inc(x_116); lean_dec(x_110); x_117 = lean_unsigned_to_nat(0u); x_118 = l_Lean_Expr_getAppNumArgsAux___main(x_98, x_117); -x_119 = l_Lean_Expr_inhabited___closed__1; +x_119 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_118); x_120 = lean_mk_array(x_118, x_119); x_121 = lean_unsigned_to_nat(1u); x_122 = lean_nat_sub(x_118, x_121); lean_dec(x_118); -x_123 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_98, x_120, x_122); +x_123 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_98, x_120, x_122); x_124 = lean_array_get_size(x_123); x_125 = lean_nat_dec_eq(x_115, x_124); lean_dec(x_124); @@ -14908,13 +14935,13 @@ lean_inc(x_208); lean_dec(x_202); x_209 = lean_unsigned_to_nat(0u); x_210 = l_Lean_Expr_getAppNumArgsAux___main(x_189, x_209); -x_211 = l_Lean_Expr_inhabited___closed__1; +x_211 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_210); x_212 = lean_mk_array(x_210, x_211); x_213 = lean_unsigned_to_nat(1u); x_214 = lean_nat_sub(x_210, x_213); lean_dec(x_210); -x_215 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_189, x_212, x_214); +x_215 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_189, x_212, x_214); x_216 = lean_array_get_size(x_215); x_217 = lean_nat_dec_eq(x_207, x_216); lean_dec(x_216); @@ -15382,7 +15409,7 @@ x_63 = lean_ctor_get(x_2, 0); lean_inc(x_63); lean_dec(x_2); x_64 = lean_level_mk_succ(x_63); -x_65 = lean_expr_mk_sort(x_64); +x_65 = l_Lean_mkSort(x_64); x_66 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_66, 0, x_65); lean_ctor_set(x_66, 1, x_4); @@ -15410,14 +15437,14 @@ x_71 = l_Lean_Expr_getAppFn___main(x_70); lean_dec(x_70); x_72 = lean_unsigned_to_nat(0u); x_73 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_72); -x_74 = l_Lean_Expr_inhabited___closed__1; +x_74 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_73); x_75 = lean_mk_array(x_73, x_74); x_76 = lean_unsigned_to_nat(1u); x_77 = lean_nat_sub(x_73, x_76); lean_dec(x_73); lean_inc(x_2); -x_78 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_75, x_77); +x_78 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_75, x_77); x_79 = lean_ctor_get(x_4, 2); lean_inc(x_79); x_80 = lean_ctor_get(x_79, 0); @@ -16087,11 +16114,21 @@ lean_ctor_set(x_233, 1, x_4); return x_233; } } +case 12: +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_2); +lean_dec(x_1); +x_234 = l_Lean_Meta_isClassQuick___main___closed__1; +x_235 = l_unreachable_x21___rarg(x_234); +x_236 = lean_apply_2(x_235, x_3, x_4); +return x_236; +} default: { -lean_object* x_234; -x_234 = lean_box(0); -x_5 = x_234; +lean_object* x_237; +x_237 = lean_box(0); +x_5 = x_237; goto block_55; } } @@ -17173,17 +17210,26 @@ lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_3); return x_49; } +case 12: +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_1); +x_50 = l_Lean_Meta_isClassQuick___main___closed__1; +x_51 = l_unreachable_x21___rarg(x_50); +x_52 = lean_apply_2(x_51, x_2, x_3); +return x_52; +} default: { -uint8_t x_50; lean_object* x_51; lean_object* x_52; +uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_dec(x_2); lean_dec(x_1); -x_50 = 0; -x_51 = lean_box(x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_3); -return x_52; +x_53 = 0; +x_54 = lean_box(x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_3); +return x_55; } } } diff --git a/stage0/library/Init/Lean/MetavarContext.c b/stage0/library/Init/Lean/MetavarContext.c index 0528084cb4..faaa97bfde 100644 --- a/stage0/library/Init/Lean/MetavarContext.c +++ b/stage0/library/Init/Lean/MetavarContext.c @@ -17,8 +17,10 @@ lean_object* l___private_Init_Lean_MetavarContext_16__getMCtx(lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestIdx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__33___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl___closed__3; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48(lean_object*); uint8_t lean_metavar_ctx_is_level_assigned(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); @@ -27,50 +29,43 @@ lean_object* l_HashMapImp_expand___at___private_Init_Lean_MetavarContext_8__visi lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignLevel___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestIdx___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignDelayed___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_fvar(lean_object*); +uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_hasToString___closed__1; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46(lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__3; -uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65(lean_object*); lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkBinding___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_dec_eq(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getLevelAssignment___spec__2(lean_object*, size_t, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_mul(size_t, size_t); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_17__getInScope(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__21(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__3(uint8_t, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_findDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_AssocList_replace___main___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarDecl_Inhabited___closed__1; -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___lambda__1___closed__1; lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__29___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_findDecl___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_LocalDecl_Inhabited; uint8_t l_PersistentHashMap_contains___at_Lean_MetavarContext_isExprAssigned___spec__1(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__54___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__10(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findLevelDepth(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__4; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64(lean_object*); -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_find___main___at___private_Init_Lean_MetavarContext_2__visit___spec__2(lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__2(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_addLevelMVarDecl___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -81,10 +76,12 @@ lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_addExprMVarDecl extern lean_object* l_Lean_Expr_updateMData_x21___closed__2; extern lean_object* l_List_repr___rarg___closed__3; lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__22___boxed(lean_object*, lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getExprAssignment___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssignable___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_findLevelDepth___spec__1___boxed(lean_object*, lean_object*); @@ -93,35 +90,36 @@ lean_object* l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isD lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignExpr___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssignable___closed__2; lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_addExprMVarDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_hasAssignedLevelMVar(lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__5___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateT_Monad___rarg(lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getDelayedAssignment___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_17__getInScope___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findLevelDepth___boxed(lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__37(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_moveEntries___main___at___private_Init_Lean_MetavarContext_2__visit___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkBinding___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58(lean_object*); lean_object* lean_metavar_ctx_erase_delayed(lean_object*, lean_object*); lean_object* l_HashMapImp_expand___at___private_Init_Lean_MetavarContext_2__visit___spec__5(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_DependsOn_main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_delayed_assignment(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43(lean_object*); size_t l_USize_sub(size_t, size_t); +lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_contains___at_Lean_MetavarContext_isDelayedAssigned___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,7 +129,6 @@ lean_object* l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___b lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_MetavarContext_2__visit___spec__7(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4; lean_object* l_Lean_MetavarContext_instantiateLevelMVars(lean_object*, lean_object*); -lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___boxed(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,19 +139,17 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__2(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssignable___closed__1; -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__4(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedLevelMVar___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); extern lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_13__collectDeps(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_eraseAux___main___at_Lean_MetavarContext_eraseDelayed___spec__2(lean_object*, size_t, lean_object*); uint8_t l_PersistentHashMap_contains___at_Lean_MetavarContext_isLevelAssigned___spec__1(lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_findDecl___spec__1(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_addExprMVarDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__52___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getDelayedAssignment___spec__1(lean_object*, lean_object*); lean_object* l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1___boxed(lean_object*, lean_object*); @@ -166,14 +161,13 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__ lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_20__mkMVarApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__17___boxed(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__56(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppRev(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__4(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_MetavarContext_14__reduceLocalContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61(lean_object*); extern lean_object* l_Id_Monad; lean_object* l_List_toStringAux___main___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__3___boxed(lean_object*, lean_object*); uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__17(lean_object*, lean_object*); @@ -183,12 +177,9 @@ lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_o lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignDelayed___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_14__reduceLocalContext(lean_object*, lean_object*); lean_object* lean_level_update_succ(lean_object*, lean_object*); -lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_14__reduceLocalContext___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl___boxed(lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getLevelAssignment___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -197,10 +188,7 @@ uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__25(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__2; lean_object* l_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_15__visit(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_isWellFormed___main___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__22(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t); @@ -210,25 +198,22 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__ lean_object* l_PersistentHashMap_contains___at_Lean_MetavarContext_isLevelAssigned___spec__1___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getLevelAssignment___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_name_hash_usize(lean_object*); +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_findLevelDepth___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_addExprMVarDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getLevelAssignment___spec__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isLevelAssignable(lean_object*, lean_object*); -lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___boxed(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_3__getMCtx(lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62(lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__1; lean_object* l_Lean_LocalDecl_userName(lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__38(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isExprAssignable(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__38___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar(lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_isWellFormed___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isLet(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -237,9 +222,9 @@ lean_object* l_mkHashMap___at_Lean_MetavarContext_instantiateMVars___spec__1(lea extern lean_object* l_List_reprAux___main___rarg___closed__1; extern lean_object* l_Lean_Level_updateIMax_x21___closed__2; size_t l_USize_add(size_t, size_t); -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_PersistentHashMap_erase___at_Lean_MetavarContext_eraseDelayed___spec__1(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_findDecl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getLevelAssignment___spec__1(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_assignLevel___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -251,6 +236,7 @@ lean_object* l_mkHashSet___at_Lean_MetavarContext_exprDependsOn___spec__1(lean_o uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getExprAssignment___spec__1(lean_object*, lean_object*); lean_object* lean_expr_update_const(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateMVars___closed__1; lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getExprAssignment___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__35(lean_object*, lean_object*); @@ -259,7 +245,6 @@ lean_object* lean_mk_metavar_ctx(lean_object*); uint8_t l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__36___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(lean_object*, lean_object*); extern lean_object* l_Char_HasRepr___closed__1; lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_findLevelDepth___spec__1(lean_object*, lean_object*); @@ -267,8 +252,9 @@ lean_object* l___private_Init_Lean_MetavarContext_17__getInScope___boxed(lean_ob lean_object* l_HashMapImp_moveEntries___main___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignDelayed___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___closed__1; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__35___boxed(lean_object*, lean_object*); @@ -276,40 +262,40 @@ lean_object* lean_nat_add(lean_object*, lean_object*); uint8_t l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_2__visit___spec__4(lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_expr(lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_find___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__31(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_replace___main___at___private_Init_Lean_MetavarContext_2__visit___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__4___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_addLevelMVarDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_Inhabited___closed__2; size_t l_USize_shiftRight(size_t, size_t); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___closed__2; extern lean_object* l_Lean_Expr_updateLet_x21___closed__1; lean_object* l___private_Init_Lean_MetavarContext_4__modifyCtx(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__33(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44(lean_object*); lean_object* l_PersistentHashMap_eraseAux___main___at_Lean_MetavarContext_eraseDelayed___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_getDecl___closed__2; lean_object* l_AssocList_find___main___at___private_Init_Lean_MetavarContext_2__visit___spec__2___boxed(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__55(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_InstantiateExprMVars_main___main(lean_object*, lean_object*); lean_object* l_Lean_MetavarDecl_Inhabited; lean_object* l___private_Init_Lean_MetavarContext_18__withFreshCache___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_11__abstractRange(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getDelayedAssignment___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn___closed__1; -uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__52(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getDelayedAssignment___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__3; lean_object* l___private_Init_Lean_MetavarContext_9__visit(lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); @@ -325,6 +311,7 @@ lean_object* l_Lean_MetavarContext_hasAssignableLevelMVar___main___boxed(lean_ob lean_object* l_Lean_MetavarContext_getDecl___closed__1; lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___closed__3; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentArray_getAux___main___rarg___closed__1; lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getLevelAssignment___spec__1___boxed(lean_object*, lean_object*); @@ -332,14 +319,12 @@ uint8_t l_Lean_MetavarContext_hasAssignableLevelMVar(lean_object*, lean_object*) lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2; lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_assignExpr___spec__1(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited; lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString___closed__2; extern lean_object* l_Lean_Level_Inhabited; lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isDelayedAssigned___spec__2(lean_object*, size_t, lean_object*); lean_object* l_Lean_MetavarContext_InstantiateExprMVars_instantiateLevelMVars(lean_object*, lean_object*); -lean_object* lean_expr_mk_mvar(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isExprAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__15(lean_object*, lean_object*, lean_object*, lean_object*); @@ -359,8 +344,6 @@ uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__ lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignDelayed___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_addExprMVarDecl___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_2__visit___spec__4___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__2(lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; @@ -368,29 +351,28 @@ lean_object* l___private_Init_Lean_MetavarContext_10__dep(lean_object*, lean_obj lean_object* l_panic(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_findLevelDepth___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_MetavarContext_hasAssignedMVar___main(lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_hasAssignedMVar___main(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_20__mkMVarApp(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Exception_toString(lean_object*); lean_object* l_PersistentArray_anyM___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_MetavarContext_Inhabited; lean_object* l_Lean_MetavarContext_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42(lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_EStateM_MonadState___closed__2; -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__50(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_MetavarContext_isWellFormed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_isWellFormed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__11___boxed(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__49(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findDecl___spec__2(lean_object*, size_t, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_HashMap_Inhabited___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__23___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isDelayedAssigned___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); @@ -402,7 +384,6 @@ lean_object* lean_array_get_size(lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx_x27___rarg(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_assignDelayed___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66(lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getExprAssignment___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_isSubPrefixOf(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isExprAssignable___boxed(lean_object*, lean_object*); @@ -411,18 +392,17 @@ extern lean_object* l_EIO_Monad___closed__1; lean_object* l_Lean_MetavarContext_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignLevel___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60(lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__10___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestIdx___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); size_t l_USize_shiftLeft(size_t, size_t); lean_object* l_mkHashMapImp___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_assignExpr___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__36(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignExpr___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); lean_object* l_HashMapImp_contains___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__1___boxed(lean_object*, lean_object*); @@ -431,15 +411,12 @@ lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_assignLevel___s lean_object* lean_local_ctx_erase(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_localDeclDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isExprAssigned___boxed(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_MetavarContext_hasAssignedMVar(lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_hasAssignedMVar(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* lean_metavar_ctx_mk_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__34(lean_object*, lean_object*); lean_object* l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__3(lean_object*, lean_object*, lean_object*); @@ -449,18 +426,16 @@ lean_object* l_Lean_MetavarContext_Inhabited___closed__1; lean_object* lean_metavar_ctx_assign_delayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63(lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); uint8_t l_HashMapImp_contains___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__1(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -lean_object* lean_expr_mk_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_assignDelayed___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); lean_object* l___private_Init_Lean_MetavarContext_18__withFreshCache(lean_object*); lean_object* l_PersistentHashMap_erase___at_Lean_MetavarContext_eraseDelayed___spec__1___boxed(lean_object*, lean_object*); lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__16___boxed(lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_hasAssignedMVar___main___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_contains___at_Lean_MetavarContext_isDelayedAssigned___spec__1___boxed(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); uint8_t l_Lean_MetavarContext_hasAssignableLevelMVar___main(lean_object*, lean_object*); @@ -472,26 +447,25 @@ uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findLevelDepth___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_addLevelMVarDecl(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_6__instantiateDelayed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(lean_object*); extern uint8_t l_Bool_Inhabited; -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__54(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isExprAssigned___spec__2(lean_object*, size_t, lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); +uint8_t l_Lean_Expr_hasExprMVar(lean_object*); extern lean_object* l_Lean_Expr_Hashable; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getExprAssignment___spec__2(lean_object*, size_t, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___lambda__1(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestIdx___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_17__getInScope___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_addExprMVarDecl___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__2(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux(lean_object*, lean_object*, lean_object*); +lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestIdx(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_20__mkMVarApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); @@ -500,46 +474,34 @@ uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__colle lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__23(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__2; -lean_object* l_Lean_MetavarContext_hasAssignedMVar___boxed(lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateForallE_x21___closed__1; lean_object* lean_metavar_ctx_assign_level(lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__28(lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkBinding___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findLevelDepth___spec__2(lean_object*, size_t, lean_object*); lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__34___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_2__visit(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getDelayedAssignment___spec__2(lean_object*, size_t, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_MetavarContext_14__reduceLocalContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__6(lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; -lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53___boxed(lean_object*, lean_object*); -uint8_t l_Lean_MetavarContext_isWellFormed___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__56___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_isWellFormed___main(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_instantiateLevelMVars___main(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_InstantiateExprMVars_main(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkBinding___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_addExprMVarDecl___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_level_mvar(lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); uint8_t l_Lean_Expr_isLambda(lean_object*); extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignLevel___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -558,7 +520,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_1 = lean_box(0); x_2 = l_Lean_LocalContext_Inhabited___closed__3; -x_3 = l_Lean_Expr_inhabited___closed__1; +x_3 = l_Lean_Expr_Inhabited___closed__1; x_4 = lean_unsigned_to_nat(0u); x_5 = 0; x_6 = lean_alloc_ctor(0, 4, 1); @@ -5614,672 +5576,448 @@ return x_8; } } } -uint8_t l_Lean_MetavarContext_hasAssignedMVar___main(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_MetavarContext_hasAssignedMVar___main(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_2)) { case 2: { -lean_object* x_3; uint8_t x_4; +lean_object* x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); x_4 = lean_metavar_ctx_is_expr_assigned(x_1, x_3); -return x_4; +x_5 = lean_box(x_4); +return x_5; } case 3: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); +lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); lean_dec(x_2); -x_6 = l_Lean_MetavarContext_hasAssignedLevelMVar___main(x_1, x_5); -return x_6; +x_7 = l_Lean_MetavarContext_hasAssignedLevelMVar___main(x_1, x_6); +x_8 = lean_box(x_7); +return x_8; } case 4: { -lean_object* x_7; uint8_t x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); +lean_object* x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); lean_dec(x_2); -x_8 = 0; -x_9 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___main___spec__1(x_1, x_8, x_7); -return x_9; +x_10 = 0; +x_11 = l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___main___spec__1(x_1, x_10, x_9); +x_12 = lean_box(x_11); +return x_12; } case 5: { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); lean_dec(x_2); -x_12 = lean_expr_has_expr_mvar(x_10); -if (x_12 == 0) -{ -uint8_t x_13; -x_13 = lean_expr_has_level_mvar(x_10); -if (x_13 == 0) -{ -uint8_t x_14; -lean_dec(x_10); -x_14 = lean_expr_has_expr_mvar(x_11); -if (x_14 == 0) -{ -uint8_t x_15; -x_15 = lean_expr_has_level_mvar(x_11); +x_15 = l_Lean_Expr_hasMVar(x_13); if (x_15 == 0) { uint8_t x_16; -lean_dec(x_11); +lean_dec(x_13); +x_16 = l_Lean_Expr_hasMVar(x_14); +if (x_16 == 0) +{ +uint8_t x_17; lean_object* x_18; +lean_dec(x_14); lean_dec(x_1); -x_16 = 0; -return x_16; +x_17 = 0; +x_18 = lean_box(x_17); +return x_18; } else { -x_2 = x_11; +x_2 = x_14; goto _start; } } else { -x_2 = x_11; -goto _start; -} -} -else -{ -uint8_t x_19; +lean_object* x_20; uint8_t x_21; lean_inc(x_1); -x_19 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_10); -if (x_19 == 0) -{ -uint8_t x_20; -x_20 = lean_expr_has_expr_mvar(x_11); -if (x_20 == 0) -{ -uint8_t x_21; -x_21 = lean_expr_has_level_mvar(x_11); +x_20 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_13); +x_21 = lean_unbox(x_20); +lean_dec(x_20); if (x_21 == 0) { -lean_dec(x_11); +uint8_t x_22; +x_22 = l_Lean_Expr_hasMVar(x_14); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_14); lean_dec(x_1); -return x_19; +x_23 = lean_box(x_21); +return x_23; } else { -x_2 = x_11; +x_2 = x_14; goto _start; } } else { -x_2 = x_11; -goto _start; -} -} -else -{ -uint8_t x_24; -lean_dec(x_11); +uint8_t x_25; lean_object* x_26; +lean_dec(x_14); lean_dec(x_1); -x_24 = 1; -return x_24; -} -} -} -else -{ -uint8_t x_25; -lean_inc(x_1); -x_25 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_10); -if (x_25 == 0) -{ -uint8_t x_26; -x_26 = lean_expr_has_expr_mvar(x_11); -if (x_26 == 0) -{ -uint8_t x_27; -x_27 = lean_expr_has_level_mvar(x_11); -if (x_27 == 0) -{ -lean_dec(x_11); -lean_dec(x_1); -return x_25; -} -else -{ -x_2 = x_11; -goto _start; -} -} -else -{ -x_2 = x_11; -goto _start; -} -} -else -{ -uint8_t x_30; -lean_dec(x_11); -lean_dec(x_1); -x_30 = 1; -return x_30; +x_25 = 1; +x_26 = lean_box(x_25); +return x_26; } } } case 6: { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_2, 1); -lean_inc(x_31); -x_32 = lean_ctor_get(x_2, 2); -lean_inc(x_32); +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_2, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_2, 2); +lean_inc(x_28); lean_dec(x_2); -x_33 = lean_expr_has_expr_mvar(x_31); -if (x_33 == 0) +x_29 = l_Lean_Expr_hasMVar(x_27); +if (x_29 == 0) { -uint8_t x_34; -x_34 = lean_expr_has_level_mvar(x_31); -if (x_34 == 0) +uint8_t x_30; +lean_dec(x_27); +x_30 = l_Lean_Expr_hasMVar(x_28); +if (x_30 == 0) { -uint8_t x_35; -lean_dec(x_31); -x_35 = lean_expr_has_expr_mvar(x_32); +uint8_t x_31; lean_object* x_32; +lean_dec(x_28); +lean_dec(x_1); +x_31 = 0; +x_32 = lean_box(x_31); +return x_32; +} +else +{ +x_2 = x_28; +goto _start; +} +} +else +{ +lean_object* x_34; uint8_t x_35; +lean_inc(x_1); +x_34 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_27); +x_35 = lean_unbox(x_34); +lean_dec(x_34); if (x_35 == 0) { uint8_t x_36; -x_36 = lean_expr_has_level_mvar(x_32); +x_36 = l_Lean_Expr_hasMVar(x_28); if (x_36 == 0) { -uint8_t x_37; -lean_dec(x_32); +lean_object* x_37; +lean_dec(x_28); lean_dec(x_1); -x_37 = 0; +x_37 = lean_box(x_35); return x_37; } else { -x_2 = x_32; +x_2 = x_28; goto _start; } } else { -x_2 = x_32; -goto _start; -} -} -else -{ -uint8_t x_40; -lean_inc(x_1); -x_40 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_31); -if (x_40 == 0) -{ -uint8_t x_41; -x_41 = lean_expr_has_expr_mvar(x_32); -if (x_41 == 0) -{ -uint8_t x_42; -x_42 = lean_expr_has_level_mvar(x_32); -if (x_42 == 0) -{ -lean_dec(x_32); +uint8_t x_39; lean_object* x_40; +lean_dec(x_28); lean_dec(x_1); +x_39 = 1; +x_40 = lean_box(x_39); return x_40; } -else -{ -x_2 = x_32; -goto _start; -} -} -else -{ -x_2 = x_32; -goto _start; -} -} -else -{ -uint8_t x_45; -lean_dec(x_32); -lean_dec(x_1); -x_45 = 1; -return x_45; -} -} -} -else -{ -uint8_t x_46; -lean_inc(x_1); -x_46 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_31); -if (x_46 == 0) -{ -uint8_t x_47; -x_47 = lean_expr_has_expr_mvar(x_32); -if (x_47 == 0) -{ -uint8_t x_48; -x_48 = lean_expr_has_level_mvar(x_32); -if (x_48 == 0) -{ -lean_dec(x_32); -lean_dec(x_1); -return x_46; -} -else -{ -x_2 = x_32; -goto _start; -} -} -else -{ -x_2 = x_32; -goto _start; -} -} -else -{ -uint8_t x_51; -lean_dec(x_32); -lean_dec(x_1); -x_51 = 1; -return x_51; -} } } case 7: { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -x_52 = lean_ctor_get(x_2, 1); -lean_inc(x_52); -x_53 = lean_ctor_get(x_2, 2); -lean_inc(x_53); +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_2, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_2, 2); +lean_inc(x_42); lean_dec(x_2); -x_54 = lean_expr_has_expr_mvar(x_52); -if (x_54 == 0) +x_43 = l_Lean_Expr_hasMVar(x_41); +if (x_43 == 0) { -uint8_t x_55; -x_55 = lean_expr_has_level_mvar(x_52); -if (x_55 == 0) +uint8_t x_44; +lean_dec(x_41); +x_44 = l_Lean_Expr_hasMVar(x_42); +if (x_44 == 0) { -uint8_t x_56; -lean_dec(x_52); -x_56 = lean_expr_has_expr_mvar(x_53); -if (x_56 == 0) -{ -uint8_t x_57; -x_57 = lean_expr_has_level_mvar(x_53); -if (x_57 == 0) -{ -uint8_t x_58; -lean_dec(x_53); +uint8_t x_45; lean_object* x_46; +lean_dec(x_42); lean_dec(x_1); -x_58 = 0; -return x_58; +x_45 = 0; +x_46 = lean_box(x_45); +return x_46; } else { -x_2 = x_53; +x_2 = x_42; goto _start; } } else { -x_2 = x_53; -goto _start; -} -} -else -{ -uint8_t x_61; +lean_object* x_48; uint8_t x_49; lean_inc(x_1); -x_61 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_52); -if (x_61 == 0) +x_48 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_41); +x_49 = lean_unbox(x_48); +lean_dec(x_48); +if (x_49 == 0) { -uint8_t x_62; -x_62 = lean_expr_has_expr_mvar(x_53); -if (x_62 == 0) +uint8_t x_50; +x_50 = l_Lean_Expr_hasMVar(x_42); +if (x_50 == 0) { -uint8_t x_63; -x_63 = lean_expr_has_level_mvar(x_53); -if (x_63 == 0) -{ -lean_dec(x_53); +lean_object* x_51; +lean_dec(x_42); lean_dec(x_1); -return x_61; +x_51 = lean_box(x_49); +return x_51; } else { -x_2 = x_53; +x_2 = x_42; goto _start; } } else { -x_2 = x_53; -goto _start; -} -} -else -{ -uint8_t x_66; -lean_dec(x_53); +uint8_t x_53; lean_object* x_54; +lean_dec(x_42); lean_dec(x_1); -x_66 = 1; -return x_66; -} -} -} -else -{ -uint8_t x_67; -lean_inc(x_1); -x_67 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_52); -if (x_67 == 0) -{ -uint8_t x_68; -x_68 = lean_expr_has_expr_mvar(x_53); -if (x_68 == 0) -{ -uint8_t x_69; -x_69 = lean_expr_has_level_mvar(x_53); -if (x_69 == 0) -{ -lean_dec(x_53); -lean_dec(x_1); -return x_67; -} -else -{ -x_2 = x_53; -goto _start; -} -} -else -{ -x_2 = x_53; -goto _start; -} -} -else -{ -uint8_t x_72; -lean_dec(x_53); -lean_dec(x_1); -x_72 = 1; -return x_72; +x_53 = 1; +x_54 = lean_box(x_53); +return x_54; } } } case 8: { -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_97; -x_73 = lean_ctor_get(x_2, 1); -lean_inc(x_73); -x_74 = lean_ctor_get(x_2, 2); -lean_inc(x_74); -x_75 = lean_ctor_get(x_2, 3); -lean_inc(x_75); +lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_55 = lean_ctor_get(x_2, 1); +lean_inc(x_55); +x_56 = lean_ctor_get(x_2, 2); +lean_inc(x_56); +x_57 = lean_ctor_get(x_2, 3); +lean_inc(x_57); lean_dec(x_2); -x_97 = lean_expr_has_expr_mvar(x_73); -if (x_97 == 0) +x_58 = l_Lean_Expr_hasMVar(x_55); +if (x_58 == 0) { -uint8_t x_98; -x_98 = lean_expr_has_level_mvar(x_73); -if (x_98 == 0) +uint8_t x_59; +lean_dec(x_55); +x_59 = l_Lean_Expr_hasMVar(x_56); +if (x_59 == 0) { -uint8_t x_99; -lean_dec(x_73); -x_99 = 0; -x_76 = x_99; -goto block_96; -} -else +uint8_t x_60; +lean_dec(x_56); +x_60 = l_Lean_Expr_hasMVar(x_57); +if (x_60 == 0) { -uint8_t x_100; -lean_inc(x_1); -x_100 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_73); -if (x_100 == 0) -{ -x_76 = x_100; -goto block_96; -} -else -{ -uint8_t x_101; -lean_dec(x_75); -lean_dec(x_74); +uint8_t x_61; lean_object* x_62; +lean_dec(x_57); lean_dec(x_1); -x_101 = 1; -return x_101; +x_61 = 0; +x_62 = lean_box(x_61); +return x_62; } +else +{ +x_2 = x_57; +goto _start; } } else { -uint8_t x_102; +lean_object* x_64; uint8_t x_65; lean_inc(x_1); -x_102 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_73); -if (x_102 == 0) +x_64 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_56); +x_65 = lean_unbox(x_64); +lean_dec(x_64); +if (x_65 == 0) { -x_76 = x_102; -goto block_96; +uint8_t x_66; +x_66 = l_Lean_Expr_hasMVar(x_57); +if (x_66 == 0) +{ +lean_object* x_67; +lean_dec(x_57); +lean_dec(x_1); +x_67 = lean_box(x_65); +return x_67; } else { -uint8_t x_103; -lean_dec(x_75); -lean_dec(x_74); +x_2 = x_57; +goto _start; +} +} +else +{ +uint8_t x_69; lean_object* x_70; +lean_dec(x_57); lean_dec(x_1); -x_103 = 1; -return x_103; +x_69 = 1; +x_70 = lean_box(x_69); +return x_70; } } -block_96: +} +else { -uint8_t x_77; -x_77 = lean_expr_has_expr_mvar(x_74); -if (x_77 == 0) +lean_object* x_71; uint8_t x_72; +lean_inc(x_1); +x_71 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_55); +x_72 = lean_unbox(x_71); +lean_dec(x_71); +if (x_72 == 0) { -uint8_t x_78; -x_78 = lean_expr_has_level_mvar(x_74); +uint8_t x_73; +x_73 = l_Lean_Expr_hasMVar(x_56); +if (x_73 == 0) +{ +uint8_t x_74; +lean_dec(x_56); +x_74 = l_Lean_Expr_hasMVar(x_57); +if (x_74 == 0) +{ +lean_object* x_75; +lean_dec(x_57); +lean_dec(x_1); +x_75 = lean_box(x_72); +return x_75; +} +else +{ +x_2 = x_57; +goto _start; +} +} +else +{ +lean_object* x_77; uint8_t x_78; +lean_inc(x_1); +x_77 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_56); +x_78 = lean_unbox(x_77); +lean_dec(x_77); if (x_78 == 0) { -lean_dec(x_74); -if (x_76 == 0) -{ uint8_t x_79; -x_79 = lean_expr_has_expr_mvar(x_75); +x_79 = l_Lean_Expr_hasMVar(x_57); if (x_79 == 0) { -uint8_t x_80; -x_80 = lean_expr_has_level_mvar(x_75); -if (x_80 == 0) -{ -lean_dec(x_75); +lean_object* x_80; +lean_dec(x_57); lean_dec(x_1); -return x_76; +x_80 = lean_box(x_78); +return x_80; } else { -x_2 = x_75; +x_2 = x_57; goto _start; } } else { -x_2 = x_75; -goto _start; -} -} -else -{ -uint8_t x_83; -lean_dec(x_75); +uint8_t x_82; lean_object* x_83; +lean_dec(x_57); lean_dec(x_1); -x_83 = 1; +x_82 = 1; +x_83 = lean_box(x_82); return x_83; } } +} else { -uint8_t x_84; -lean_inc(x_1); -x_84 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_74); -if (x_84 == 0) -{ -uint8_t x_85; -x_85 = lean_expr_has_expr_mvar(x_75); -if (x_85 == 0) -{ -uint8_t x_86; -x_86 = lean_expr_has_level_mvar(x_75); -if (x_86 == 0) -{ -lean_dec(x_75); +uint8_t x_84; lean_object* x_85; +lean_dec(x_57); +lean_dec(x_56); lean_dec(x_1); -return x_84; -} -else -{ -x_2 = x_75; -goto _start; -} -} -else -{ -x_2 = x_75; -goto _start; -} -} -else -{ -uint8_t x_89; -lean_dec(x_75); -lean_dec(x_1); -x_89 = 1; -return x_89; -} -} -} -else -{ -uint8_t x_90; -lean_inc(x_1); -x_90 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_74); -if (x_90 == 0) -{ -uint8_t x_91; -x_91 = lean_expr_has_expr_mvar(x_75); -if (x_91 == 0) -{ -uint8_t x_92; -x_92 = lean_expr_has_level_mvar(x_75); -if (x_92 == 0) -{ -lean_dec(x_75); -lean_dec(x_1); -return x_90; -} -else -{ -x_2 = x_75; -goto _start; -} -} -else -{ -x_2 = x_75; -goto _start; -} -} -else -{ -uint8_t x_95; -lean_dec(x_75); -lean_dec(x_1); -x_95 = 1; -return x_95; -} +x_84 = 1; +x_85 = lean_box(x_84); +return x_85; } } } case 10: { -lean_object* x_104; uint8_t x_105; -x_104 = lean_ctor_get(x_2, 1); -lean_inc(x_104); +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_2, 1); +lean_inc(x_86); lean_dec(x_2); -x_105 = lean_expr_has_expr_mvar(x_104); -if (x_105 == 0) +x_87 = l_Lean_Expr_hasMVar(x_86); +if (x_87 == 0) { -uint8_t x_106; -x_106 = lean_expr_has_level_mvar(x_104); -if (x_106 == 0) -{ -uint8_t x_107; -lean_dec(x_104); +uint8_t x_88; lean_object* x_89; +lean_dec(x_86); lean_dec(x_1); -x_107 = 0; -return x_107; +x_88 = 0; +x_89 = lean_box(x_88); +return x_89; } else { -x_2 = x_104; -goto _start; -} -} -else -{ -x_2 = x_104; +x_2 = x_86; goto _start; } } case 11: { -lean_object* x_110; uint8_t x_111; -x_110 = lean_ctor_get(x_2, 2); -lean_inc(x_110); +lean_object* x_91; uint8_t x_92; +x_91 = lean_ctor_get(x_2, 2); +lean_inc(x_91); lean_dec(x_2); -x_111 = lean_expr_has_expr_mvar(x_110); -if (x_111 == 0) +x_92 = l_Lean_Expr_hasMVar(x_91); +if (x_92 == 0) { -uint8_t x_112; -x_112 = lean_expr_has_level_mvar(x_110); -if (x_112 == 0) -{ -uint8_t x_113; -lean_dec(x_110); +uint8_t x_93; lean_object* x_94; +lean_dec(x_91); lean_dec(x_1); -x_113 = 0; -return x_113; +x_93 = 0; +x_94 = lean_box(x_93); +return x_94; } else { -x_2 = x_110; +x_2 = x_91; goto _start; } } -else +case 12: { -x_2 = x_110; -goto _start; -} +uint8_t x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_2); +lean_dec(x_1); +x_96 = l_Bool_Inhabited; +x_97 = lean_box(x_96); +x_98 = l_unreachable_x21___rarg(x_97); +return x_98; } default: { -uint8_t x_116; +uint8_t x_99; lean_object* x_100; lean_dec(x_2); lean_dec(x_1); -x_116 = 0; -return x_116; +x_99 = 0; +x_100 = lean_box(x_99); +return x_100; } } } @@ -6295,32 +6033,14 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l_Lean_MetavarContext_hasAssignedMVar___main___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_MetavarContext_hasAssignedMVar(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_2); -x_4 = lean_box(x_3); -return x_4; -} -} -uint8_t l_Lean_MetavarContext_hasAssignedMVar(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; +lean_object* x_3; x_3 = l_Lean_MetavarContext_hasAssignedMVar___main(x_1, x_2); return x_3; } } -lean_object* l_Lean_MetavarContext_hasAssignedMVar___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_MetavarContext_hasAssignedMVar(x_1, x_2); -x_4 = lean_box(x_3); -return x_4; -} -} uint8_t l_Lean_MetavarContext_hasAssignableLevelMVar___main(lean_object* x_1, lean_object* x_2) { _start: { @@ -6816,7 +6536,7 @@ _start: lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; x_3 = lean_ctor_get(x_1, 1); x_4 = lean_array_get_size(x_3); -x_5 = lean_expr_hash(x_2); +x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); @@ -6871,7 +6591,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; le x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_array_get_size(x_1); -x_7 = lean_expr_hash(x_4); +x_7 = l_Lean_Expr_hash(x_4); x_8 = lean_usize_modn(x_7, x_6); lean_dec(x_6); x_9 = lean_array_uget(x_1, x_8); @@ -6892,7 +6612,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_15 = lean_array_get_size(x_1); -x_16 = lean_expr_hash(x_12); +x_16 = l_Lean_Expr_hash(x_12); x_17 = lean_usize_modn(x_16, x_15); lean_dec(x_15); x_18 = lean_array_uget(x_1, x_17); @@ -7039,7 +6759,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; le x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); x_7 = lean_array_get_size(x_6); -x_8 = lean_expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); x_11 = l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_2__visit___spec__4(x_2, x_10); @@ -7089,7 +6809,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_22 = lean_array_get_size(x_21); -x_23 = lean_expr_hash(x_2); +x_23 = l_Lean_Expr_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); x_26 = l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_2__visit___spec__4(x_2, x_25); @@ -7139,209 +6859,109 @@ lean_object* l___private_Init_Lean_MetavarContext_2__visit(lean_object* x_1, lea _start: { uint8_t x_4; -x_4 = lean_expr_has_expr_mvar(x_2); +x_4 = l_Lean_Expr_hasMVar(x_2); if (x_4 == 0) { -uint8_t x_5; -x_5 = lean_expr_has_level_mvar(x_2); -if (x_5 == 0) -{ -lean_object* x_6; +lean_object* x_5; lean_dec(x_1); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -return x_6; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +return x_5; } else { -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_3, 1); -lean_inc(x_7); -x_8 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_7, x_2); -lean_dec(x_7); -if (lean_obj_tag(x_8) == 0) +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +x_7 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_6, x_2); +lean_dec(x_6); +if (lean_obj_tag(x_7) == 0) { -lean_object* x_9; uint8_t x_10; +lean_object* x_8; uint8_t x_9; lean_inc(x_2); -x_9 = lean_apply_2(x_1, x_2, x_3); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +x_8 = lean_apply_2(x_1, x_2, x_3); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_9, 1); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_8, 1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -x_15 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_14, x_2, x_13); -lean_ctor_set(x_11, 1, x_15); -return x_9; +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +x_14 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_13, x_2, x_12); +lean_ctor_set(x_10, 1, x_14); +return x_8; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); lean_inc(x_17); -lean_dec(x_11); lean_inc(x_16); -x_19 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_18, x_2, x_16); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_17); -lean_ctor_set(x_20, 1, x_19); -lean_ctor_set(x_9, 1, x_20); -return x_9; +lean_dec(x_10); +lean_inc(x_15); +x_18 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_17, x_2, x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_8, 1, x_19); +return x_8; } } 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_28; -x_21 = lean_ctor_get(x_9, 1); -x_22 = lean_ctor_get(x_9, 0); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_20 = lean_ctor_get(x_8, 1); +x_21 = lean_ctor_get(x_8, 0); +lean_inc(x_20); lean_inc(x_21); -lean_inc(x_22); -lean_dec(x_9); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -if (lean_is_exclusive(x_21)) { - lean_ctor_release(x_21, 0); - lean_ctor_release(x_21, 1); - x_25 = x_21; -} else { - lean_dec_ref(x_21); - x_25 = lean_box(0); -} -lean_inc(x_22); -x_26 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_24, x_2, x_22); -if (lean_is_scalar(x_25)) { - x_27 = lean_alloc_ctor(0, 2, 0); -} else { - x_27 = x_25; -} -lean_ctor_set(x_27, 0, x_23); -lean_ctor_set(x_27, 1, x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set(x_28, 1, x_27); -return x_28; -} -} -else -{ -lean_object* x_29; lean_object* x_30; -lean_dec(x_2); -lean_dec(x_1); -x_29 = lean_ctor_get(x_8, 0); -lean_inc(x_29); lean_dec(x_8); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_3); -return x_30; -} -} -} -else -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_3, 1); -lean_inc(x_31); -x_32 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_31, x_2); -lean_dec(x_31); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; uint8_t x_34; -lean_inc(x_2); -x_33 = lean_apply_2(x_1, x_2, x_3); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_33, 1); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -x_39 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_38, x_2, x_37); -lean_ctor_set(x_35, 1, x_39); -return x_33; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_40 = lean_ctor_get(x_33, 0); -x_41 = lean_ctor_get(x_35, 0); -x_42 = lean_ctor_get(x_35, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_35); -lean_inc(x_40); -x_43 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_42, x_2, x_40); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_33, 1, x_44); -return x_33; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_45 = lean_ctor_get(x_33, 1); -x_46 = lean_ctor_get(x_33, 0); -lean_inc(x_45); -lean_inc(x_46); -lean_dec(x_33); -x_47 = lean_ctor_get(x_45, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_45, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); - x_49 = x_45; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_24 = x_20; } else { - lean_dec_ref(x_45); - x_49 = lean_box(0); + lean_dec_ref(x_20); + x_24 = lean_box(0); } -lean_inc(x_46); -x_50 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_48, x_2, x_46); -if (lean_is_scalar(x_49)) { - x_51 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_23, x_2, x_21); +if (lean_is_scalar(x_24)) { + x_26 = lean_alloc_ctor(0, 2, 0); } else { - x_51 = x_49; + x_26 = x_24; } -lean_ctor_set(x_51, 0, x_47); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_46); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_ctor_set(x_26, 0, x_22); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } else { -lean_object* x_53; lean_object* x_54; +lean_object* x_28; lean_object* x_29; lean_dec(x_2); lean_dec(x_1); -x_53 = lean_ctor_get(x_32, 0); -lean_inc(x_53); -lean_dec(x_32); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_3); -return x_54; +x_28 = lean_ctor_get(x_7, 0); +lean_inc(x_28); +lean_dec(x_7); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_3); +return x_29; } } } @@ -7450,7 +7070,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_MetavarContext_getDecl___closed__1; -x_2 = lean_unsigned_to_nat(388u); +x_2 = lean_unsigned_to_nat(389u); x_3 = lean_unsigned_to_nat(12u); x_4 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -7469,7 +7089,7 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_ x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_sub(x_4, x_9); lean_dec(x_4); -x_11 = l_Lean_Expr_inhabited; +x_11 = l_Lean_Expr_Inhabited; x_12 = lean_array_get(x_11, x_3, x_10); lean_inc(x_2); x_13 = l_Lean_LocalContext_findFVar(x_2, x_12); @@ -7495,605 +7115,563 @@ lean_inc(x_18); lean_dec(x_13); if (lean_obj_tag(x_18) == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_34; +lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; x_19 = lean_ctor_get(x_18, 2); lean_inc(x_19); x_20 = lean_ctor_get(x_18, 3); lean_inc(x_20); x_21 = lean_ctor_get_uint8(x_18, sizeof(void*)*4); lean_dec(x_18); -x_34 = lean_expr_has_expr_mvar(x_20); -if (x_34 == 0) +x_22 = l_Lean_Expr_hasMVar(x_20); +if (x_22 == 0) { -uint8_t x_35; -x_35 = lean_expr_has_level_mvar(x_20); -if (x_35 == 0) -{ -x_22 = x_20; -x_23 = x_6; -goto block_33; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_36 = lean_ctor_get(x_6, 1); -lean_inc(x_36); -x_37 = l_Lean_Expr_HasBeq; -x_38 = l_Lean_Expr_Hashable; -lean_inc(x_20); -x_39 = l_HashMapImp_find___rarg(x_37, x_38, x_36, x_20); -lean_dec(x_36); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -lean_inc(x_1); -lean_inc(x_20); -x_40 = lean_apply_2(x_1, x_20, x_6); -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -lean_dec(x_40); -x_43 = !lean_is_exclusive(x_41); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -x_45 = l_HashMapImp_insert___rarg(x_37, x_38, x_44, x_20, x_42); -lean_ctor_set(x_41, 1, x_45); -x_22 = x_42; -x_23 = x_41; -goto block_33; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_46 = lean_ctor_get(x_41, 0); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_41); -lean_inc(x_42); -x_48 = l_HashMapImp_insert___rarg(x_37, x_38, x_47, x_20, x_42); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_48); -x_22 = x_42; -x_23 = x_49; -goto block_33; -} -} -else -{ -lean_object* x_50; +lean_object* x_23; lean_object* x_24; +x_23 = lean_expr_abstract_range(x_20, x_10, x_3); lean_dec(x_20); -x_50 = lean_ctor_get(x_39, 0); -lean_inc(x_50); -lean_dec(x_39); -x_22 = x_50; -x_23 = x_6; -goto block_33; -} -} -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_6, 1); -lean_inc(x_51); -x_52 = l_Lean_Expr_HasBeq; -x_53 = l_Lean_Expr_Hashable; -lean_inc(x_20); -x_54 = l_HashMapImp_find___rarg(x_52, x_53, x_51, x_20); -lean_dec(x_51); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -lean_inc(x_1); -lean_inc(x_20); -x_55 = lean_apply_2(x_1, x_20, x_6); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -lean_dec(x_55); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -x_60 = l_HashMapImp_insert___rarg(x_52, x_53, x_59, x_20, x_57); -lean_ctor_set(x_56, 1, x_60); -x_22 = x_57; -x_23 = x_56; -goto block_33; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_61 = lean_ctor_get(x_56, 0); -x_62 = lean_ctor_get(x_56, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_56); -lean_inc(x_57); -x_63 = l_HashMapImp_insert___rarg(x_52, x_53, x_62, x_20, x_57); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_63); -x_22 = x_57; -x_23 = x_64; -goto block_33; -} -} -else -{ -lean_object* x_65; -lean_dec(x_20); -x_65 = lean_ctor_get(x_54, 0); -lean_inc(x_65); -lean_dec(x_54); -x_22 = x_65; -x_23 = x_6; -goto block_33; -} -} -block_33: -{ -uint8_t x_24; -x_24 = lean_expr_has_expr_mvar(x_22); -if (x_24 == 0) -{ -uint8_t x_25; -x_25 = lean_expr_has_level_mvar(x_22); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_expr_abstract_range(x_22, x_10, x_3); -lean_dec(x_22); -x_27 = lean_expr_mk_lambda(x_19, x_21, x_26, x_5); +x_24 = l_Lean_mkLambda(x_19, x_21, x_23, x_5); x_4 = x_10; -x_5 = x_27; -x_6 = x_23; +x_5 = x_24; goto _start; } else { -lean_object* x_29; lean_object* x_30; -lean_dec(x_22); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_6, 1); +lean_inc(x_26); +x_27 = l_Lean_Expr_HasBeq; +x_28 = l_Lean_Expr_Hashable; +lean_inc(x_20); +x_29 = l_HashMapImp_find___rarg(x_27, x_28, x_26, x_20); +lean_dec(x_26); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; uint8_t x_31; +lean_inc(x_1); +lean_inc(x_20); +x_30 = lean_apply_2(x_1, x_20, x_6); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_30, 1); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_30, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +x_36 = l_HashMapImp_insert___rarg(x_27, x_28, x_35, x_20, x_34); +lean_ctor_set(x_32, 1, x_36); +x_37 = l_Lean_Expr_hasMVar(x_34); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_free_object(x_30); +x_38 = lean_expr_abstract_range(x_34, x_10, x_3); +lean_dec(x_34); +x_39 = l_Lean_mkLambda(x_19, x_21, x_38, x_5); +x_4 = x_10; +x_5 = x_39; +x_6 = x_32; +goto _start; +} +else +{ +lean_object* x_41; +lean_dec(x_34); lean_dec(x_19); lean_dec(x_10); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_23); +x_41 = lean_box(0); +lean_ctor_set(x_30, 0, x_41); return x_30; } } else { -lean_object* x_31; lean_object* x_32; -lean_dec(x_22); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_42 = lean_ctor_get(x_30, 0); +x_43 = lean_ctor_get(x_32, 0); +x_44 = lean_ctor_get(x_32, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_32); +lean_inc(x_42); +x_45 = l_HashMapImp_insert___rarg(x_27, x_28, x_44, x_20, x_42); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Expr_hasMVar(x_42); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_free_object(x_30); +x_48 = lean_expr_abstract_range(x_42, x_10, x_3); +lean_dec(x_42); +x_49 = l_Lean_mkLambda(x_19, x_21, x_48, x_5); +x_4 = x_10; +x_5 = x_49; +x_6 = x_46; +goto _start; +} +else +{ +lean_object* x_51; +lean_dec(x_42); lean_dec(x_19); lean_dec(x_10); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_31 = lean_box(0); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_23); -return x_32; +x_51 = lean_box(0); +lean_ctor_set(x_30, 1, x_46); +lean_ctor_set(x_30, 0, x_51); +return x_30; } } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_123; -x_66 = lean_ctor_get(x_18, 2); -lean_inc(x_66); -x_67 = lean_ctor_get(x_18, 3); -lean_inc(x_67); -x_68 = lean_ctor_get(x_18, 4); -lean_inc(x_68); -lean_dec(x_18); -x_123 = lean_expr_has_expr_mvar(x_67); -if (x_123 == 0) -{ -uint8_t x_124; -x_124 = lean_expr_has_level_mvar(x_67); -if (x_124 == 0) -{ -x_69 = x_67; -x_70 = x_6; -goto block_122; +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; uint8_t x_59; +x_52 = lean_ctor_get(x_30, 1); +x_53 = lean_ctor_get(x_30, 0); +lean_inc(x_52); +lean_inc(x_53); +lean_dec(x_30); +x_54 = lean_ctor_get(x_52, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_56 = x_52; +} else { + lean_dec_ref(x_52); + x_56 = lean_box(0); } -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_125 = lean_ctor_get(x_6, 1); -lean_inc(x_125); -x_126 = l_Lean_Expr_HasBeq; -x_127 = l_Lean_Expr_Hashable; -lean_inc(x_67); -x_128 = l_HashMapImp_find___rarg(x_126, x_127, x_125, x_67); -lean_dec(x_125); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -lean_inc(x_1); -lean_inc(x_67); -x_129 = lean_apply_2(x_1, x_67, x_6); -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 0); -lean_inc(x_131); -lean_dec(x_129); -x_132 = !lean_is_exclusive(x_130); -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -x_134 = l_HashMapImp_insert___rarg(x_126, x_127, x_133, x_67, x_131); -lean_ctor_set(x_130, 1, x_134); -x_69 = x_131; -x_70 = x_130; -goto block_122; +lean_inc(x_53); +x_57 = l_HashMapImp_insert___rarg(x_27, x_28, x_55, x_20, x_53); +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_56; } -else +lean_ctor_set(x_58, 0, x_54); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Expr_hasMVar(x_53); +if (x_59 == 0) { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_135 = lean_ctor_get(x_130, 0); -x_136 = lean_ctor_get(x_130, 1); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_130); -lean_inc(x_131); -x_137 = l_HashMapImp_insert___rarg(x_126, x_127, x_136, x_67, x_131); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_137); -x_69 = x_131; -x_70 = x_138; -goto block_122; -} -} -else -{ -lean_object* x_139; -lean_dec(x_67); -x_139 = lean_ctor_get(x_128, 0); -lean_inc(x_139); -lean_dec(x_128); -x_69 = x_139; -x_70 = x_6; -goto block_122; -} -} -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_140 = lean_ctor_get(x_6, 1); -lean_inc(x_140); -x_141 = l_Lean_Expr_HasBeq; -x_142 = l_Lean_Expr_Hashable; -lean_inc(x_67); -x_143 = l_HashMapImp_find___rarg(x_141, x_142, x_140, x_67); -lean_dec(x_140); -if (lean_obj_tag(x_143) == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; -lean_inc(x_1); -lean_inc(x_67); -x_144 = lean_apply_2(x_1, x_67, x_6); -x_145 = lean_ctor_get(x_144, 1); -lean_inc(x_145); -x_146 = lean_ctor_get(x_144, 0); -lean_inc(x_146); -lean_dec(x_144); -x_147 = !lean_is_exclusive(x_145); -if (x_147 == 0) -{ -lean_object* x_148; lean_object* x_149; -x_148 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -x_149 = l_HashMapImp_insert___rarg(x_141, x_142, x_148, x_67, x_146); -lean_ctor_set(x_145, 1, x_149); -x_69 = x_146; -x_70 = x_145; -goto block_122; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_150 = lean_ctor_get(x_145, 0); -x_151 = lean_ctor_get(x_145, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_145); -lean_inc(x_146); -x_152 = l_HashMapImp_insert___rarg(x_141, x_142, x_151, x_67, x_146); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_152); -x_69 = x_146; -x_70 = x_153; -goto block_122; -} -} -else -{ -lean_object* x_154; -lean_dec(x_67); -x_154 = lean_ctor_get(x_143, 0); -lean_inc(x_154); -lean_dec(x_143); -x_69 = x_154; -x_70 = x_6; -goto block_122; -} -} -block_122: -{ -lean_object* x_71; lean_object* x_72; uint8_t x_84; -x_84 = lean_expr_has_expr_mvar(x_69); -if (x_84 == 0) -{ -uint8_t x_85; -x_85 = lean_expr_has_level_mvar(x_69); -if (x_85 == 0) -{ -uint8_t x_86; -x_86 = lean_expr_has_expr_mvar(x_68); -if (x_86 == 0) -{ -uint8_t x_87; -x_87 = lean_expr_has_level_mvar(x_68); -if (x_87 == 0) -{ -x_71 = x_68; -x_72 = x_70; -goto block_83; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_70, 1); -lean_inc(x_88); -x_89 = l_Lean_Expr_HasBeq; -x_90 = l_Lean_Expr_Hashable; -lean_inc(x_68); -x_91 = l_HashMapImp_find___rarg(x_89, x_90, x_88, x_68); -lean_dec(x_88); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -lean_inc(x_1); -lean_inc(x_68); -x_92 = lean_apply_2(x_1, x_68, x_70); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 0); -lean_inc(x_94); -lean_dec(x_92); -x_95 = !lean_is_exclusive(x_93); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -x_97 = l_HashMapImp_insert___rarg(x_89, x_90, x_96, x_68, x_94); -lean_ctor_set(x_93, 1, x_97); -x_71 = x_94; -x_72 = x_93; -goto block_83; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_98 = lean_ctor_get(x_93, 0); -x_99 = lean_ctor_get(x_93, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_93); -lean_inc(x_94); -x_100 = l_HashMapImp_insert___rarg(x_89, x_90, x_99, x_68, x_94); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_100); -x_71 = x_94; -x_72 = x_101; -goto block_83; -} -} -else -{ -lean_object* x_102; -lean_dec(x_68); -x_102 = lean_ctor_get(x_91, 0); -lean_inc(x_102); -lean_dec(x_91); -x_71 = x_102; -x_72 = x_70; -goto block_83; -} -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_103 = lean_ctor_get(x_70, 1); -lean_inc(x_103); -x_104 = l_Lean_Expr_HasBeq; -x_105 = l_Lean_Expr_Hashable; -lean_inc(x_68); -x_106 = l_HashMapImp_find___rarg(x_104, x_105, x_103, x_68); -lean_dec(x_103); -if (lean_obj_tag(x_106) == 0) -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; -lean_inc(x_1); -lean_inc(x_68); -x_107 = lean_apply_2(x_1, x_68, x_70); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 0); -lean_inc(x_109); -lean_dec(x_107); -x_110 = !lean_is_exclusive(x_108); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; -x_111 = lean_ctor_get(x_108, 1); -lean_inc(x_109); -x_112 = l_HashMapImp_insert___rarg(x_104, x_105, x_111, x_68, x_109); -lean_ctor_set(x_108, 1, x_112); -x_71 = x_109; -x_72 = x_108; -goto block_83; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_108, 0); -x_114 = lean_ctor_get(x_108, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_108); -lean_inc(x_109); -x_115 = l_HashMapImp_insert___rarg(x_104, x_105, x_114, x_68, x_109); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_113); -lean_ctor_set(x_116, 1, x_115); -x_71 = x_109; -x_72 = x_116; -goto block_83; -} -} -else -{ -lean_object* x_117; -lean_dec(x_68); -x_117 = lean_ctor_get(x_106, 0); -lean_inc(x_117); -lean_dec(x_106); -x_71 = x_117; -x_72 = x_70; -goto block_83; -} -} -} -else -{ -lean_object* x_118; lean_object* x_119; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_66); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_118 = lean_box(0); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_70); -return x_119; -} -} -else -{ -lean_object* x_120; lean_object* x_121; -lean_dec(x_69); -lean_dec(x_68); -lean_dec(x_66); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -x_120 = lean_box(0); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_70); -return x_121; -} -block_83: -{ -uint8_t x_73; -x_73 = lean_expr_has_expr_mvar(x_71); -if (x_73 == 0) -{ -uint8_t x_74; -x_74 = lean_expr_has_level_mvar(x_71); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_expr_abstract_range(x_69, x_10, x_3); -lean_dec(x_69); -x_76 = lean_expr_abstract_range(x_71, x_10, x_3); -lean_dec(x_71); -x_77 = lean_expr_mk_let(x_66, x_75, x_76, x_5); +lean_object* x_60; lean_object* x_61; +x_60 = lean_expr_abstract_range(x_53, x_10, x_3); +lean_dec(x_53); +x_61 = l_Lean_mkLambda(x_19, x_21, x_60, x_5); x_4 = x_10; -x_5 = x_77; -x_6 = x_72; +x_5 = x_61; +x_6 = x_58; goto _start; } else { -lean_object* x_79; lean_object* x_80; -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_66); +lean_object* x_63; lean_object* x_64; +lean_dec(x_53); +lean_dec(x_19); lean_dec(x_10); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_79 = lean_box(0); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_72); -return x_80; +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_58); +return x_64; +} } } else { -lean_object* x_81; lean_object* x_82; -lean_dec(x_71); -lean_dec(x_69); -lean_dec(x_66); +lean_object* x_65; uint8_t x_66; +lean_dec(x_20); +x_65 = lean_ctor_get(x_29, 0); +lean_inc(x_65); +lean_dec(x_29); +x_66 = l_Lean_Expr_hasMVar(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_expr_abstract_range(x_65, x_10, x_3); +lean_dec(x_65); +x_68 = l_Lean_mkLambda(x_19, x_21, x_67, x_5); +x_4 = x_10; +x_5 = x_68; +goto _start; +} +else +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_65); +lean_dec(x_19); lean_dec(x_10); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_81 = lean_box(0); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_72); -return x_82; +x_70 = lean_box(0); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_6); +return x_71; } } } } +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_141; +x_72 = lean_ctor_get(x_18, 2); +lean_inc(x_72); +x_73 = lean_ctor_get(x_18, 3); +lean_inc(x_73); +x_74 = lean_ctor_get(x_18, 4); +lean_inc(x_74); +lean_dec(x_18); +x_141 = l_Lean_Expr_hasMVar(x_73); +if (x_141 == 0) +{ +x_75 = x_73; +x_76 = x_6; +goto block_140; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_142 = lean_ctor_get(x_6, 1); +lean_inc(x_142); +x_143 = l_Lean_Expr_HasBeq; +x_144 = l_Lean_Expr_Hashable; +lean_inc(x_73); +x_145 = l_HashMapImp_find___rarg(x_143, x_144, x_142, x_73); +lean_dec(x_142); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; +lean_inc(x_1); +lean_inc(x_73); +x_146 = lean_apply_2(x_1, x_73, x_6); +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 0); +lean_inc(x_148); +lean_dec(x_146); +x_149 = !lean_is_exclusive(x_147); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +x_151 = l_HashMapImp_insert___rarg(x_143, x_144, x_150, x_73, x_148); +lean_ctor_set(x_147, 1, x_151); +x_75 = x_148; +x_76 = x_147; +goto block_140; +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_152 = lean_ctor_get(x_147, 0); +x_153 = lean_ctor_get(x_147, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_147); +lean_inc(x_148); +x_154 = l_HashMapImp_insert___rarg(x_143, x_144, x_153, x_73, x_148); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_154); +x_75 = x_148; +x_76 = x_155; +goto block_140; +} +} +else +{ +lean_object* x_156; +lean_dec(x_73); +x_156 = lean_ctor_get(x_145, 0); +lean_inc(x_156); +lean_dec(x_145); +x_75 = x_156; +x_76 = x_6; +goto block_140; +} +} +block_140: +{ +uint8_t x_77; +x_77 = l_Lean_Expr_hasMVar(x_75); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = l_Lean_Expr_hasMVar(x_74); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; +x_79 = lean_expr_abstract_range(x_75, x_10, x_3); +lean_dec(x_75); +x_80 = lean_expr_abstract_range(x_74, x_10, x_3); +lean_dec(x_74); +x_81 = 0; +x_82 = l_Lean_mkLet(x_72, x_79, x_80, x_5, x_81); +x_4 = x_10; +x_5 = x_82; +x_6 = x_76; +goto _start; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_76, 1); +lean_inc(x_84); +x_85 = l_Lean_Expr_HasBeq; +x_86 = l_Lean_Expr_Hashable; +lean_inc(x_74); +x_87 = l_HashMapImp_find___rarg(x_85, x_86, x_84, x_74); +lean_dec(x_84); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; uint8_t x_89; +lean_inc(x_1); +lean_inc(x_74); +x_88 = lean_apply_2(x_1, x_74, x_76); +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_88, 1); +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_92 = lean_ctor_get(x_88, 0); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_92); +x_94 = l_HashMapImp_insert___rarg(x_85, x_86, x_93, x_74, x_92); +lean_ctor_set(x_90, 1, x_94); +x_95 = l_Lean_Expr_hasMVar(x_92); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; +lean_free_object(x_88); +x_96 = lean_expr_abstract_range(x_75, x_10, x_3); +lean_dec(x_75); +x_97 = lean_expr_abstract_range(x_92, x_10, x_3); +lean_dec(x_92); +x_98 = 0; +x_99 = l_Lean_mkLet(x_72, x_96, x_97, x_5, x_98); +x_4 = x_10; +x_5 = x_99; +x_6 = x_90; +goto _start; +} +else +{ +lean_object* x_101; +lean_dec(x_92); +lean_dec(x_75); +lean_dec(x_72); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_101 = lean_box(0); +lean_ctor_set(x_88, 0, x_101); +return x_88; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; +x_102 = lean_ctor_get(x_88, 0); +x_103 = lean_ctor_get(x_90, 0); +x_104 = lean_ctor_get(x_90, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_90); +lean_inc(x_102); +x_105 = l_HashMapImp_insert___rarg(x_85, x_86, x_104, x_74, x_102); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_105); +x_107 = l_Lean_Expr_hasMVar(x_102); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; +lean_free_object(x_88); +x_108 = lean_expr_abstract_range(x_75, x_10, x_3); +lean_dec(x_75); +x_109 = lean_expr_abstract_range(x_102, x_10, x_3); +lean_dec(x_102); +x_110 = 0; +x_111 = l_Lean_mkLet(x_72, x_108, x_109, x_5, x_110); +x_4 = x_10; +x_5 = x_111; +x_6 = x_106; +goto _start; +} +else +{ +lean_object* x_113; +lean_dec(x_102); +lean_dec(x_75); +lean_dec(x_72); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_113 = lean_box(0); +lean_ctor_set(x_88, 1, x_106); +lean_ctor_set(x_88, 0, x_113); +return x_88; +} +} +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_114 = lean_ctor_get(x_88, 1); +x_115 = lean_ctor_get(x_88, 0); +lean_inc(x_114); +lean_inc(x_115); +lean_dec(x_88); +x_116 = lean_ctor_get(x_114, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_114, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_118 = x_114; +} else { + lean_dec_ref(x_114); + x_118 = lean_box(0); +} +lean_inc(x_115); +x_119 = l_HashMapImp_insert___rarg(x_85, x_86, x_117, x_74, x_115); +if (lean_is_scalar(x_118)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_118; +} +lean_ctor_set(x_120, 0, x_116); +lean_ctor_set(x_120, 1, x_119); +x_121 = l_Lean_Expr_hasMVar(x_115); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; +x_122 = lean_expr_abstract_range(x_75, x_10, x_3); +lean_dec(x_75); +x_123 = lean_expr_abstract_range(x_115, x_10, x_3); +lean_dec(x_115); +x_124 = 0; +x_125 = l_Lean_mkLet(x_72, x_122, x_123, x_5, x_124); +x_4 = x_10; +x_5 = x_125; +x_6 = x_120; +goto _start; +} +else +{ +lean_object* x_127; lean_object* x_128; +lean_dec(x_115); +lean_dec(x_75); +lean_dec(x_72); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_127 = lean_box(0); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_120); +return x_128; +} +} +} +else +{ +lean_object* x_129; uint8_t x_130; +lean_dec(x_74); +x_129 = lean_ctor_get(x_87, 0); +lean_inc(x_129); +lean_dec(x_87); +x_130 = l_Lean_Expr_hasMVar(x_129); +if (x_130 == 0) +{ +lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; +x_131 = lean_expr_abstract_range(x_75, x_10, x_3); +lean_dec(x_75); +x_132 = lean_expr_abstract_range(x_129, x_10, x_3); +lean_dec(x_129); +x_133 = 0; +x_134 = l_Lean_mkLet(x_72, x_131, x_132, x_5, x_133); +x_4 = x_10; +x_5 = x_134; +x_6 = x_76; +goto _start; +} +else +{ +lean_object* x_136; lean_object* x_137; +lean_dec(x_129); +lean_dec(x_75); +lean_dec(x_72); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_136 = lean_box(0); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_76); +return x_137; +} +} +} +} +else +{ +lean_object* x_138; lean_object* x_139; +lean_dec(x_75); +lean_dec(x_74); +lean_dec(x_72); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_138 = lean_box(0); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_76); +return x_139; +} +} +} } } else { -lean_object* x_155; lean_object* x_156; +lean_object* x_157; lean_object* x_158; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_5); -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_6); -return x_156; +x_157 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_157, 0, x_5); +x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_6); +return x_158; } } } @@ -8126,7 +7704,7 @@ return x_7; lean_object* l___private_Init_Lean_MetavarContext_6__instantiateDelayed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_81; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_69; x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); x_6 = lean_ctor_get(x_3, 1); @@ -8134,379 +7712,273 @@ lean_inc(x_6); x_7 = lean_ctor_get(x_3, 2); lean_inc(x_7); lean_dec(x_3); -x_81 = lean_expr_has_expr_mvar(x_7); -if (x_81 == 0) -{ -uint8_t x_82; -x_82 = lean_expr_has_level_mvar(x_7); -if (x_82 == 0) +x_69 = l_Lean_Expr_hasMVar(x_7); +if (x_69 == 0) { x_8 = x_7; x_9 = x_4; -goto block_80; +goto block_68; } else { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_4, 1); -lean_inc(x_83); -x_84 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_83, x_7); -lean_dec(x_83); -if (lean_obj_tag(x_84) == 0) +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_4, 1); +lean_inc(x_70); +x_71 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_70, x_7); +lean_dec(x_70); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_inc(x_1); lean_inc(x_7); -x_85 = lean_apply_2(x_1, x_7, x_4); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 0); -lean_inc(x_87); -lean_dec(x_85); -x_88 = !lean_is_exclusive(x_86); -if (x_88 == 0) +x_72 = lean_apply_2(x_1, x_7, x_4); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 0); +lean_inc(x_74); +lean_dec(x_72); +x_75 = !lean_is_exclusive(x_73); +if (x_75 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -x_90 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_89, x_7, x_87); -lean_ctor_set(x_86, 1, x_90); -x_8 = x_87; -x_9 = x_86; -goto block_80; +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +x_77 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_76, x_7, x_74); +lean_ctor_set(x_73, 1, x_77); +x_8 = x_74; +x_9 = x_73; +goto block_68; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_86, 0); -x_92 = lean_ctor_get(x_86, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_86); -lean_inc(x_87); -x_93 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_92, x_7, x_87); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_93); -x_8 = x_87; -x_9 = x_94; -goto block_80; +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_73, 0); +x_79 = lean_ctor_get(x_73, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_73); +lean_inc(x_74); +x_80 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_79, x_7, x_74); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_80); +x_8 = x_74; +x_9 = x_81; +goto block_68; } } else { -lean_object* x_95; +lean_object* x_82; lean_dec(x_7); -x_95 = lean_ctor_get(x_84, 0); -lean_inc(x_95); -lean_dec(x_84); -x_8 = x_95; +x_82 = lean_ctor_get(x_71, 0); +lean_inc(x_82); +lean_dec(x_71); +x_8 = x_82; x_9 = x_4; -goto block_80; +goto block_68; } } -} -else -{ -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_4, 1); -lean_inc(x_96); -x_97 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_96, x_7); -lean_dec(x_96); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -lean_inc(x_1); -lean_inc(x_7); -x_98 = lean_apply_2(x_1, x_7, x_4); -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 0); -lean_inc(x_100); -lean_dec(x_98); -x_101 = !lean_is_exclusive(x_99); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -x_103 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_102, x_7, x_100); -lean_ctor_set(x_99, 1, x_103); -x_8 = x_100; -x_9 = x_99; -goto block_80; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_99, 0); -x_105 = lean_ctor_get(x_99, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_99); -lean_inc(x_100); -x_106 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_105, x_7, x_100); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_106); -x_8 = x_100; -x_9 = x_107; -goto block_80; -} -} -else -{ -lean_object* x_108; -lean_dec(x_7); -x_108 = lean_ctor_get(x_97, 0); -lean_inc(x_108); -lean_dec(x_97); -x_8 = x_108; -x_9 = x_4; -goto block_80; -} -} -block_80: +block_68: { uint8_t x_10; -x_10 = lean_expr_has_expr_mvar(x_8); +x_10 = l_Lean_Expr_hasMVar(x_8); if (x_10 == 0) { -uint8_t x_11; -x_11 = lean_expr_has_level_mvar(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_array_get_size(x_6); -x_13 = lean_expr_abstract(x_8, x_6); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_array_get_size(x_6); +x_12 = lean_expr_abstract(x_8, x_6); lean_inc(x_5); -x_14 = l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main(x_1, x_5, x_6, x_12, x_13, x_9); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) +x_13 = l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main(x_1, x_5, x_6, x_11, x_12, x_9); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_14, 1); -x_18 = lean_ctor_get(x_14, 0); -lean_dec(x_18); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_17, 0); -x_21 = lean_metavar_ctx_assign_delayed(x_20, x_2, x_5, x_6, x_8); -lean_ctor_set(x_17, 0, x_21); -x_22 = lean_box(0); -lean_ctor_set(x_14, 0, x_22); -return x_14; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_17, 0); -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_13, 0); lean_dec(x_17); -x_25 = lean_metavar_ctx_assign_delayed(x_23, x_2, x_5, x_6, x_8); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = lean_box(0); -lean_ctor_set(x_14, 1, x_26); -lean_ctor_set(x_14, 0, x_27); -return x_14; +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_metavar_ctx_assign_delayed(x_19, x_2, x_5, x_6, x_8); +lean_ctor_set(x_16, 0, x_20); +x_21 = lean_box(0); +lean_ctor_set(x_13, 0, x_21); +return x_13; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_16, 0); +x_23 = lean_ctor_get(x_16, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_16); +x_24 = lean_metavar_ctx_assign_delayed(x_22, x_2, x_5, x_6, x_8); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = lean_box(0); +lean_ctor_set(x_13, 1, x_25); +lean_ctor_set(x_13, 0, x_26); +return x_13; } } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_28 = lean_ctor_get(x_14, 1); +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_27 = lean_ctor_get(x_13, 1); +lean_inc(x_27); +lean_dec(x_13); +x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); -lean_dec(x_14); -x_29 = lean_ctor_get(x_28, 0); +x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_31 = x_28; +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_30 = x_27; } else { - lean_dec_ref(x_28); - x_31 = lean_box(0); + lean_dec_ref(x_27); + x_30 = lean_box(0); } -x_32 = lean_metavar_ctx_assign_delayed(x_29, x_2, x_5, x_6, x_8); -if (lean_is_scalar(x_31)) { - x_33 = lean_alloc_ctor(0, 2, 0); +x_31 = lean_metavar_ctx_assign_delayed(x_28, x_2, x_5, x_6, x_8); +if (lean_is_scalar(x_30)) { + x_32 = lean_alloc_ctor(0, 2, 0); } else { - x_33 = x_31; + x_32 = x_30; } -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_30); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_29); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } else { -uint8_t x_36; +uint8_t x_35; lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); -x_36 = !lean_is_exclusive(x_14); -if (x_36 == 0) +x_35 = !lean_is_exclusive(x_13); +if (x_35 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_37 = lean_ctor_get(x_14, 1); -x_38 = lean_ctor_get(x_14, 0); -lean_dec(x_38); -x_39 = lean_ctor_get(x_15, 0); -lean_inc(x_39); -x_40 = !lean_is_exclusive(x_37); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_37, 0); -lean_inc(x_2); -x_42 = lean_metavar_ctx_erase_delayed(x_41, x_2); -x_43 = lean_metavar_ctx_assign_expr(x_42, x_2, x_39); -lean_ctor_set(x_37, 0, x_43); -return x_14; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_37, 0); -x_45 = lean_ctor_get(x_37, 1); -lean_inc(x_45); -lean_inc(x_44); +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_13, 1); +x_37 = lean_ctor_get(x_13, 0); lean_dec(x_37); +x_38 = lean_ctor_get(x_14, 0); +lean_inc(x_38); +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 0); lean_inc(x_2); -x_46 = lean_metavar_ctx_erase_delayed(x_44, x_2); -x_47 = lean_metavar_ctx_assign_expr(x_46, x_2, x_39); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -lean_ctor_set(x_14, 1, x_48); -return x_14; +x_41 = lean_metavar_ctx_erase_delayed(x_40, x_2); +x_42 = lean_metavar_ctx_assign_expr(x_41, x_2, x_38); +lean_ctor_set(x_36, 0, x_42); +return x_13; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_36, 0); +x_44 = lean_ctor_get(x_36, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_36); +lean_inc(x_2); +x_45 = lean_metavar_ctx_erase_delayed(x_43, x_2); +x_46 = lean_metavar_ctx_assign_expr(x_45, x_2, x_38); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); +lean_ctor_set(x_13, 1, x_47); +return x_13; } } 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_14, 1); +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_13, 1); +lean_inc(x_48); +lean_dec(x_13); +x_49 = lean_ctor_get(x_14, 0); lean_inc(x_49); -lean_dec(x_14); -x_50 = lean_ctor_get(x_15, 0); +x_50 = lean_ctor_get(x_48, 0); lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 0); +x_51 = lean_ctor_get(x_48, 1); lean_inc(x_51); -x_52 = lean_ctor_get(x_49, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_53 = x_49; +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_52 = x_48; } else { - lean_dec_ref(x_49); - x_53 = lean_box(0); + lean_dec_ref(x_48); + x_52 = lean_box(0); } lean_inc(x_2); -x_54 = lean_metavar_ctx_erase_delayed(x_51, x_2); -x_55 = lean_metavar_ctx_assign_expr(x_54, x_2, x_50); -if (lean_is_scalar(x_53)) { - x_56 = lean_alloc_ctor(0, 2, 0); +x_53 = lean_metavar_ctx_erase_delayed(x_50, x_2); +x_54 = lean_metavar_ctx_assign_expr(x_53, x_2, x_49); +if (lean_is_scalar(x_52)) { + x_55 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_53; + x_55 = x_52; } -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_52); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_15); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_51); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_14); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -uint8_t x_58; +uint8_t x_57; lean_dec(x_1); -x_58 = !lean_is_exclusive(x_9); -if (x_58 == 0) +x_57 = !lean_is_exclusive(x_9); +if (x_57 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_9, 0); -x_60 = lean_metavar_ctx_assign_delayed(x_59, x_2, x_5, x_6, x_8); -lean_ctor_set(x_9, 0, x_60); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_9); -return x_62; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_9, 0); +x_59 = lean_metavar_ctx_assign_delayed(x_58, x_2, x_5, x_6, x_8); +lean_ctor_set(x_9, 0, x_59); +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_9); +return x_61; } else { -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_63 = lean_ctor_get(x_9, 0); -x_64 = lean_ctor_get(x_9, 1); -lean_inc(x_64); +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_62 = lean_ctor_get(x_9, 0); +x_63 = lean_ctor_get(x_9, 1); lean_inc(x_63); +lean_inc(x_62); lean_dec(x_9); -x_65 = lean_metavar_ctx_assign_delayed(x_63, x_2, x_5, x_6, x_8); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -x_67 = lean_box(0); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -return x_68; -} -} -} -else -{ -uint8_t x_69; -lean_dec(x_1); -x_69 = !lean_is_exclusive(x_9); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_9, 0); -x_71 = lean_metavar_ctx_assign_delayed(x_70, x_2, x_5, x_6, x_8); -lean_ctor_set(x_9, 0, x_71); -x_72 = lean_box(0); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_9); -return x_73; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_9, 0); -x_75 = lean_ctor_get(x_9, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_9); -x_76 = lean_metavar_ctx_assign_delayed(x_74, x_2, x_5, x_6, x_8); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_77); -return x_79; +x_64 = lean_metavar_ctx_assign_delayed(x_62, x_2, x_5, x_6, x_8); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_box(0); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } } @@ -8524,7 +7996,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_unsigned_to_nat(1u); x_9 = lean_nat_sub(x_3, x_8); lean_dec(x_3); -x_10 = l_Lean_Expr_inhabited; +x_10 = l_Lean_Expr_Inhabited; x_11 = lean_array_get(x_10, x_2, x_9); lean_inc(x_1); x_12 = l_Lean_LocalContext_findFVar(x_1, x_11); @@ -8549,574 +8021,541 @@ lean_inc(x_17); lean_dec(x_12); if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; uint8_t x_33; +lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; x_18 = lean_ctor_get(x_17, 2); lean_inc(x_18); x_19 = lean_ctor_get(x_17, 3); lean_inc(x_19); x_20 = lean_ctor_get_uint8(x_17, sizeof(void*)*4); lean_dec(x_17); -x_33 = lean_expr_has_expr_mvar(x_19); -if (x_33 == 0) +x_21 = l_Lean_Expr_hasMVar(x_19); +if (x_21 == 0) { -uint8_t x_34; -x_34 = lean_expr_has_level_mvar(x_19); -if (x_34 == 0) -{ -x_21 = x_19; -x_22 = x_5; -goto block_32; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_5, 1); -lean_inc(x_35); -x_36 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_19); -lean_dec(x_35); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -lean_inc(x_19); -x_37 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_19, x_5); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -lean_dec(x_37); -x_40 = !lean_is_exclusive(x_38); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -x_42 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_41, x_19, x_39); -lean_ctor_set(x_38, 1, x_42); -x_21 = x_39; -x_22 = x_38; -goto block_32; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_38, 0); -x_44 = lean_ctor_get(x_38, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_38); -lean_inc(x_39); -x_45 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_44, x_19, x_39); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_45); -x_21 = x_39; -x_22 = x_46; -goto block_32; -} -} -else -{ -lean_object* x_47; +lean_object* x_22; lean_object* x_23; +x_22 = lean_expr_abstract_range(x_19, x_9, x_2); lean_dec(x_19); -x_47 = lean_ctor_get(x_36, 0); -lean_inc(x_47); -lean_dec(x_36); -x_21 = x_47; -x_22 = x_5; -goto block_32; -} -} -} -else -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_5, 1); -lean_inc(x_48); -x_49 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_48, x_19); -lean_dec(x_48); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -lean_inc(x_19); -x_50 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_19, x_5); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -lean_dec(x_50); -x_53 = !lean_is_exclusive(x_51); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -x_55 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_54, x_19, x_52); -lean_ctor_set(x_51, 1, x_55); -x_21 = x_52; -x_22 = x_51; -goto block_32; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_51, 0); -x_57 = lean_ctor_get(x_51, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_51); -lean_inc(x_52); -x_58 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_57, x_19, x_52); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_58); -x_21 = x_52; -x_22 = x_59; -goto block_32; -} -} -else -{ -lean_object* x_60; -lean_dec(x_19); -x_60 = lean_ctor_get(x_49, 0); -lean_inc(x_60); -lean_dec(x_49); -x_21 = x_60; -x_22 = x_5; -goto block_32; -} -} -block_32: -{ -uint8_t x_23; -x_23 = lean_expr_has_expr_mvar(x_21); -if (x_23 == 0) -{ -uint8_t x_24; -x_24 = lean_expr_has_level_mvar(x_21); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_expr_abstract_range(x_21, x_9, x_2); -lean_dec(x_21); -x_26 = lean_expr_mk_lambda(x_18, x_20, x_25, x_4); +x_23 = l_Lean_mkLambda(x_18, x_20, x_22, x_4); x_3 = x_9; -x_4 = x_26; -x_5 = x_22; +x_4 = x_23; goto _start; } else { -lean_object* x_28; lean_object* x_29; -lean_dec(x_21); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_5, 1); +lean_inc(x_25); +x_26 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_25, x_19); +lean_dec(x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; uint8_t x_28; +lean_inc(x_19); +x_27 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_19, x_5); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_27, 1); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +x_33 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_32, x_19, x_31); +lean_ctor_set(x_29, 1, x_33); +x_34 = l_Lean_Expr_hasMVar(x_31); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_free_object(x_27); +x_35 = lean_expr_abstract_range(x_31, x_9, x_2); +lean_dec(x_31); +x_36 = l_Lean_mkLambda(x_18, x_20, x_35, x_4); +x_3 = x_9; +x_4 = x_36; +x_5 = x_29; +goto _start; +} +else +{ +lean_object* x_38; +lean_dec(x_31); lean_dec(x_18); lean_dec(x_9); lean_dec(x_4); lean_dec(x_1); -x_28 = lean_box(0); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_22); -return x_29; +x_38 = lean_box(0); +lean_ctor_set(x_27, 0, x_38); +return x_27; } } else { -lean_object* x_30; lean_object* x_31; -lean_dec(x_21); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_29, 0); +x_41 = lean_ctor_get(x_29, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_29); +lean_inc(x_39); +x_42 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_41, x_19, x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_Expr_hasMVar(x_39); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_free_object(x_27); +x_45 = lean_expr_abstract_range(x_39, x_9, x_2); +lean_dec(x_39); +x_46 = l_Lean_mkLambda(x_18, x_20, x_45, x_4); +x_3 = x_9; +x_4 = x_46; +x_5 = x_43; +goto _start; +} +else +{ +lean_object* x_48; +lean_dec(x_39); lean_dec(x_18); lean_dec(x_9); lean_dec(x_4); lean_dec(x_1); -x_30 = lean_box(0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_22); -return x_31; +x_48 = lean_box(0); +lean_ctor_set(x_27, 1, x_43); +lean_ctor_set(x_27, 0, x_48); +return x_27; } } } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_114; -x_61 = lean_ctor_get(x_17, 2); -lean_inc(x_61); -x_62 = lean_ctor_get(x_17, 3); +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; uint8_t x_56; +x_49 = lean_ctor_get(x_27, 1); +x_50 = lean_ctor_get(x_27, 0); +lean_inc(x_49); +lean_inc(x_50); +lean_dec(x_27); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_53 = x_49; +} else { + lean_dec_ref(x_49); + x_53 = lean_box(0); +} +lean_inc(x_50); +x_54 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_52, x_19, x_50); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_53; +} +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_Expr_hasMVar(x_50); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_expr_abstract_range(x_50, x_9, x_2); +lean_dec(x_50); +x_58 = l_Lean_mkLambda(x_18, x_20, x_57, x_4); +x_3 = x_9; +x_4 = x_58; +x_5 = x_55; +goto _start; +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_dec(x_50); +lean_dec(x_18); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_1); +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_55); +return x_61; +} +} +} +else +{ +lean_object* x_62; uint8_t x_63; +lean_dec(x_19); +x_62 = lean_ctor_get(x_26, 0); lean_inc(x_62); -x_63 = lean_ctor_get(x_17, 4); -lean_inc(x_63); +lean_dec(x_26); +x_63 = l_Lean_Expr_hasMVar(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_expr_abstract_range(x_62, x_9, x_2); +lean_dec(x_62); +x_65 = l_Lean_mkLambda(x_18, x_20, x_64, x_4); +x_3 = x_9; +x_4 = x_65; +goto _start; +} +else +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_62); +lean_dec(x_18); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_1); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_5); +return x_68; +} +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_136; +x_69 = lean_ctor_get(x_17, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_17, 3); +lean_inc(x_70); +x_71 = lean_ctor_get(x_17, 4); +lean_inc(x_71); lean_dec(x_17); -x_114 = lean_expr_has_expr_mvar(x_62); -if (x_114 == 0) +x_136 = l_Lean_Expr_hasMVar(x_70); +if (x_136 == 0) { -uint8_t x_115; -x_115 = lean_expr_has_level_mvar(x_62); -if (x_115 == 0) -{ -x_64 = x_62; -x_65 = x_5; -goto block_113; +x_72 = x_70; +x_73 = x_5; +goto block_135; } else { -lean_object* x_116; lean_object* x_117; -x_116 = lean_ctor_get(x_5, 1); -lean_inc(x_116); -x_117 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_116, x_62); -lean_dec(x_116); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; -lean_inc(x_62); -x_118 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_62, x_5); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 0); -lean_inc(x_120); -lean_dec(x_118); -x_121 = !lean_is_exclusive(x_119); -if (x_121 == 0) -{ -lean_object* x_122; lean_object* x_123; -x_122 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -x_123 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_122, x_62, x_120); -lean_ctor_set(x_119, 1, x_123); -x_64 = x_120; -x_65 = x_119; -goto block_113; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_124 = lean_ctor_get(x_119, 0); -x_125 = lean_ctor_get(x_119, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_119); -lean_inc(x_120); -x_126 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_125, x_62, x_120); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_126); -x_64 = x_120; -x_65 = x_127; -goto block_113; -} -} -else -{ -lean_object* x_128; -lean_dec(x_62); -x_128 = lean_ctor_get(x_117, 0); -lean_inc(x_128); -lean_dec(x_117); -x_64 = x_128; -x_65 = x_5; -goto block_113; -} -} -} -else -{ -lean_object* x_129; lean_object* x_130; -x_129 = lean_ctor_get(x_5, 1); -lean_inc(x_129); -x_130 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_129, x_62); -lean_dec(x_129); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; -lean_inc(x_62); -x_131 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_62, x_5); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 0); -lean_inc(x_133); -lean_dec(x_131); -x_134 = !lean_is_exclusive(x_132); -if (x_134 == 0) -{ -lean_object* x_135; lean_object* x_136; -x_135 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -x_136 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_135, x_62, x_133); -lean_ctor_set(x_132, 1, x_136); -x_64 = x_133; -x_65 = x_132; -goto block_113; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_137 = lean_ctor_get(x_132, 0); -x_138 = lean_ctor_get(x_132, 1); -lean_inc(x_138); +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_5, 1); lean_inc(x_137); -lean_dec(x_132); -lean_inc(x_133); -x_139 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_138, x_62, x_133); -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_137); -lean_ctor_set(x_140, 1, x_139); -x_64 = x_133; -x_65 = x_140; -goto block_113; -} -} -else +x_138 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_137, x_70); +lean_dec(x_137); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_141; -lean_dec(x_62); -x_141 = lean_ctor_get(x_130, 0); +lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; +lean_inc(x_70); +x_139 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_70, x_5); +x_140 = lean_ctor_get(x_139, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 0); lean_inc(x_141); -lean_dec(x_130); -x_64 = x_141; -x_65 = x_5; -goto block_113; -} -} -block_113: +lean_dec(x_139); +x_142 = !lean_is_exclusive(x_140); +if (x_142 == 0) { -lean_object* x_66; lean_object* x_67; uint8_t x_79; -x_79 = lean_expr_has_expr_mvar(x_64); -if (x_79 == 0) -{ -uint8_t x_80; -x_80 = lean_expr_has_level_mvar(x_64); -if (x_80 == 0) -{ -uint8_t x_81; -x_81 = lean_expr_has_expr_mvar(x_63); -if (x_81 == 0) -{ -uint8_t x_82; -x_82 = lean_expr_has_level_mvar(x_63); -if (x_82 == 0) -{ -x_66 = x_63; -x_67 = x_65; -goto block_78; +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +x_144 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_143, x_70, x_141); +lean_ctor_set(x_140, 1, x_144); +x_72 = x_141; +x_73 = x_140; +goto block_135; } else { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_65, 1); -lean_inc(x_83); -x_84 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_83, x_63); -lean_dec(x_83); -if (lean_obj_tag(x_84) == 0) +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_145 = lean_ctor_get(x_140, 0); +x_146 = lean_ctor_get(x_140, 1); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_140); +lean_inc(x_141); +x_147 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_146, x_70, x_141); +x_148 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_148, 0, x_145); +lean_ctor_set(x_148, 1, x_147); +x_72 = x_141; +x_73 = x_148; +goto block_135; +} +} +else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_inc(x_63); -x_85 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_63, x_65); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 0); +lean_object* x_149; +lean_dec(x_70); +x_149 = lean_ctor_get(x_138, 0); +lean_inc(x_149); +lean_dec(x_138); +x_72 = x_149; +x_73 = x_5; +goto block_135; +} +} +block_135: +{ +uint8_t x_74; +x_74 = l_Lean_Expr_hasMVar(x_72); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = l_Lean_Expr_hasMVar(x_71); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; +x_76 = lean_expr_abstract_range(x_72, x_9, x_2); +lean_dec(x_72); +x_77 = lean_expr_abstract_range(x_71, x_9, x_2); +lean_dec(x_71); +x_78 = 0; +x_79 = l_Lean_mkLet(x_69, x_76, x_77, x_4, x_78); +x_3 = x_9; +x_4 = x_79; +x_5 = x_73; +goto _start; +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_73, 1); +lean_inc(x_81); +x_82 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_81, x_71); +lean_dec(x_81); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; uint8_t x_84; +lean_inc(x_71); +x_83 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_71, x_73); +x_84 = !lean_is_exclusive(x_83); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = lean_ctor_get(x_83, 1); +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_83, 0); +x_88 = lean_ctor_get(x_85, 1); lean_inc(x_87); -lean_dec(x_85); -x_88 = !lean_is_exclusive(x_86); -if (x_88 == 0) +x_89 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_88, x_71, x_87); +lean_ctor_set(x_85, 1, x_89); +x_90 = l_Lean_Expr_hasMVar(x_87); +if (x_90 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -x_90 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_89, x_63, x_87); -lean_ctor_set(x_86, 1, x_90); -x_66 = x_87; -x_67 = x_86; -goto block_78; +lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; +lean_free_object(x_83); +x_91 = lean_expr_abstract_range(x_72, x_9, x_2); +lean_dec(x_72); +x_92 = lean_expr_abstract_range(x_87, x_9, x_2); +lean_dec(x_87); +x_93 = 0; +x_94 = l_Lean_mkLet(x_69, x_91, x_92, x_4, x_93); +x_3 = x_9; +x_4 = x_94; +x_5 = x_85; +goto _start; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_86, 0); -x_92 = lean_ctor_get(x_86, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_86); -lean_inc(x_87); -x_93 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_92, x_63, x_87); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_93); -x_66 = x_87; -x_67 = x_94; -goto block_78; +lean_object* x_96; +lean_dec(x_87); +lean_dec(x_72); +lean_dec(x_69); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_1); +x_96 = lean_box(0); +lean_ctor_set(x_83, 0, x_96); +return x_83; } } else { -lean_object* x_95; -lean_dec(x_63); -x_95 = lean_ctor_get(x_84, 0); -lean_inc(x_95); -lean_dec(x_84); -x_66 = x_95; -x_67 = x_65; -goto block_78; -} -} -} -else -{ -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_65, 1); -lean_inc(x_96); -x_97 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_96, x_63); -lean_dec(x_96); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; -lean_inc(x_63); -x_98 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_63, x_65); -x_99 = lean_ctor_get(x_98, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_97 = lean_ctor_get(x_83, 0); +x_98 = lean_ctor_get(x_85, 0); +x_99 = lean_ctor_get(x_85, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 0); -lean_inc(x_100); -lean_dec(x_98); -x_101 = !lean_is_exclusive(x_99); -if (x_101 == 0) +lean_inc(x_98); +lean_dec(x_85); +lean_inc(x_97); +x_100 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_99, x_71, x_97); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_Expr_hasMVar(x_97); +if (x_102 == 0) { -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -x_103 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_102, x_63, x_100); -lean_ctor_set(x_99, 1, x_103); -x_66 = x_100; -x_67 = x_99; -goto block_78; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_104 = lean_ctor_get(x_99, 0); -x_105 = lean_ctor_get(x_99, 1); -lean_inc(x_105); -lean_inc(x_104); -lean_dec(x_99); -lean_inc(x_100); -x_106 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_105, x_63, x_100); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_106); -x_66 = x_100; -x_67 = x_107; -goto block_78; -} +lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; +lean_free_object(x_83); +x_103 = lean_expr_abstract_range(x_72, x_9, x_2); +lean_dec(x_72); +x_104 = lean_expr_abstract_range(x_97, x_9, x_2); +lean_dec(x_97); +x_105 = 0; +x_106 = l_Lean_mkLet(x_69, x_103, x_104, x_4, x_105); +x_3 = x_9; +x_4 = x_106; +x_5 = x_101; +goto _start; } else { lean_object* x_108; -lean_dec(x_63); -x_108 = lean_ctor_get(x_97, 0); -lean_inc(x_108); lean_dec(x_97); -x_66 = x_108; -x_67 = x_65; -goto block_78; +lean_dec(x_72); +lean_dec(x_69); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_1); +x_108 = lean_box(0); +lean_ctor_set(x_83, 1, x_101); +lean_ctor_set(x_83, 0, x_108); +return x_83; } } } else { -lean_object* x_109; lean_object* x_110; -lean_dec(x_64); -lean_dec(x_63); -lean_dec(x_61); -lean_dec(x_9); -lean_dec(x_4); -lean_dec(x_1); -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_65); -return x_110; +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_109 = lean_ctor_get(x_83, 1); +x_110 = lean_ctor_get(x_83, 0); +lean_inc(x_109); +lean_inc(x_110); +lean_dec(x_83); +x_111 = lean_ctor_get(x_109, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_113 = x_109; +} else { + lean_dec_ref(x_109); + x_113 = lean_box(0); } +lean_inc(x_110); +x_114 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_112, x_71, x_110); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_113; } -else +lean_ctor_set(x_115, 0, x_111); +lean_ctor_set(x_115, 1, x_114); +x_116 = l_Lean_Expr_hasMVar(x_110); +if (x_116 == 0) { -lean_object* x_111; lean_object* x_112; -lean_dec(x_64); -lean_dec(x_63); -lean_dec(x_61); -lean_dec(x_9); -lean_dec(x_4); -lean_dec(x_1); -x_111 = lean_box(0); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_65); -return x_112; -} -block_78: -{ -uint8_t x_68; -x_68 = lean_expr_has_expr_mvar(x_66); -if (x_68 == 0) -{ -uint8_t x_69; -x_69 = lean_expr_has_level_mvar(x_66); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_expr_abstract_range(x_64, x_9, x_2); -lean_dec(x_64); -x_71 = lean_expr_abstract_range(x_66, x_9, x_2); -lean_dec(x_66); -x_72 = lean_expr_mk_let(x_61, x_70, x_71, x_4); +lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; +x_117 = lean_expr_abstract_range(x_72, x_9, x_2); +lean_dec(x_72); +x_118 = lean_expr_abstract_range(x_110, x_9, x_2); +lean_dec(x_110); +x_119 = 0; +x_120 = l_Lean_mkLet(x_69, x_117, x_118, x_4, x_119); x_3 = x_9; -x_4 = x_72; -x_5 = x_67; +x_4 = x_120; +x_5 = x_115; goto _start; } else { -lean_object* x_74; lean_object* x_75; -lean_dec(x_66); -lean_dec(x_64); -lean_dec(x_61); +lean_object* x_122; lean_object* x_123; +lean_dec(x_110); +lean_dec(x_72); +lean_dec(x_69); lean_dec(x_9); lean_dec(x_4); lean_dec(x_1); -x_74 = lean_box(0); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_67); -return x_75; +x_122 = lean_box(0); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_115); +return x_123; +} } } else { -lean_object* x_76; lean_object* x_77; -lean_dec(x_66); -lean_dec(x_64); -lean_dec(x_61); +lean_object* x_124; uint8_t x_125; +lean_dec(x_71); +x_124 = lean_ctor_get(x_82, 0); +lean_inc(x_124); +lean_dec(x_82); +x_125 = l_Lean_Expr_hasMVar(x_124); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; +x_126 = lean_expr_abstract_range(x_72, x_9, x_2); +lean_dec(x_72); +x_127 = lean_expr_abstract_range(x_124, x_9, x_2); +lean_dec(x_124); +x_128 = 0; +x_129 = l_Lean_mkLet(x_69, x_126, x_127, x_4, x_128); +x_3 = x_9; +x_4 = x_129; +x_5 = x_73; +goto _start; +} +else +{ +lean_object* x_131; lean_object* x_132; +lean_dec(x_124); +lean_dec(x_72); +lean_dec(x_69); lean_dec(x_9); lean_dec(x_4); lean_dec(x_1); -x_76 = lean_box(0); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_67); -return x_77; +x_131 = lean_box(0); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_73); +return x_132; } } } } +else +{ +lean_object* x_133; lean_object* x_134; +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_69); +lean_dec(x_9); +lean_dec(x_4); +lean_dec(x_1); +x_133 = lean_box(0); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_73); +return x_134; +} +} +} } } else { -lean_object* x_142; lean_object* x_143; +lean_object* x_150; lean_object* x_151; lean_dec(x_3); lean_dec(x_1); -x_142 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_142, 0, x_4); -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_5); -return x_143; +x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_4); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_5); +return x_151; } } } @@ -9311,321 +8750,175 @@ x_10 = lean_box(0); lean_inc(x_9); x_11 = x_10; x_12 = lean_array_fset(x_2, x_1, x_11); -x_13 = lean_expr_has_expr_mvar(x_9); +x_13 = l_Lean_Expr_hasMVar(x_9); if (x_13 == 0) { -uint8_t x_14; -x_14 = lean_expr_has_level_mvar(x_9); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_1, x_15); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_1, x_14); lean_inc(x_9); -x_17 = x_9; -x_18 = lean_array_fset(x_12, x_1, x_17); +x_16 = x_9; +x_17 = lean_array_fset(x_12, x_1, x_16); lean_dec(x_1); -x_1 = x_16; -x_2 = x_18; +x_1 = x_15; +x_2 = x_17; goto _start; } else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_3, 1); -lean_inc(x_20); -x_21 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_20, x_9); -lean_dec(x_20); -if (lean_obj_tag(x_21) == 0) +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_3, 1); +lean_inc(x_19); +x_20 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_19, x_9); +lean_dec(x_19); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_inc(x_9); -x_22 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_9, x_3); -x_23 = lean_ctor_get(x_22, 1); +x_21 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_9, x_3); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 0); lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -lean_dec(x_22); -x_25 = !lean_is_exclusive(x_23); -if (x_25 == 0) -{ -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_26 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_inc(x_9); -x_27 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_26, x_9, x_24); -lean_ctor_set(x_23, 1, x_27); -x_28 = lean_unsigned_to_nat(1u); -x_29 = lean_nat_add(x_1, x_28); -x_30 = x_24; -x_31 = lean_array_fset(x_12, x_1, x_30); -lean_dec(x_1); -x_1 = x_29; -x_2 = x_31; -x_3 = x_23; -goto _start; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_33 = lean_ctor_get(x_23, 0); -x_34 = lean_ctor_get(x_23, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_23); -lean_inc(x_24); -lean_inc(x_9); -x_35 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_34, x_9, x_24); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_33); -lean_ctor_set(x_36, 1, x_35); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_1, x_37); -x_39 = x_24; -x_40 = lean_array_fset(x_12, x_1, x_39); -lean_dec(x_1); -x_1 = x_38; -x_2 = x_40; -x_3 = x_36; -goto _start; -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_21, 0); -lean_inc(x_42); lean_dec(x_21); -x_43 = lean_unsigned_to_nat(1u); -x_44 = lean_nat_add(x_1, x_43); -x_45 = x_42; -x_46 = lean_array_fset(x_12, x_1, x_45); -lean_dec(x_1); -x_1 = x_44; -x_2 = x_46; -goto _start; -} -} -} -else +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) { -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_3, 1); -lean_inc(x_48); -x_49 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_48, x_9); -lean_dec(x_48); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_23); lean_inc(x_9); -x_50 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_9, x_3); -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -lean_dec(x_50); -x_53 = !lean_is_exclusive(x_51); -if (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; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_inc(x_9); -x_55 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_54, x_9, x_52); -lean_ctor_set(x_51, 1, x_55); -x_56 = lean_unsigned_to_nat(1u); -x_57 = lean_nat_add(x_1, x_56); -x_58 = x_52; -x_59 = lean_array_fset(x_12, x_1, x_58); +x_26 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_25, x_9, x_23); +lean_ctor_set(x_22, 1, x_26); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_add(x_1, x_27); +x_29 = x_23; +x_30 = lean_array_fset(x_12, x_1, x_29); lean_dec(x_1); -x_1 = x_57; -x_2 = x_59; -x_3 = x_51; +x_1 = x_28; +x_2 = x_30; +x_3 = x_22; goto _start; } 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; lean_object* x_68; -x_61 = lean_ctor_get(x_51, 0); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_51); -lean_inc(x_52); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_32 = lean_ctor_get(x_22, 0); +x_33 = lean_ctor_get(x_22, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_22); +lean_inc(x_23); lean_inc(x_9); -x_63 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_62, x_9, x_52); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_61); -lean_ctor_set(x_64, 1, x_63); -x_65 = lean_unsigned_to_nat(1u); -x_66 = lean_nat_add(x_1, x_65); -x_67 = x_52; -x_68 = lean_array_fset(x_12, x_1, x_67); +x_34 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_33, x_9, x_23); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_1, x_36); +x_38 = x_23; +x_39 = lean_array_fset(x_12, x_1, x_38); lean_dec(x_1); -x_1 = x_66; -x_2 = x_68; -x_3 = x_64; +x_1 = x_37; +x_2 = x_39; +x_3 = x_35; goto _start; } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_70 = lean_ctor_get(x_49, 0); -lean_inc(x_70); -lean_dec(x_49); -x_71 = lean_unsigned_to_nat(1u); -x_72 = lean_nat_add(x_1, x_71); -x_73 = x_70; -x_74 = lean_array_fset(x_12, x_1, x_73); +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_41 = lean_ctor_get(x_20, 0); +lean_inc(x_41); +lean_dec(x_20); +x_42 = lean_unsigned_to_nat(1u); +x_43 = lean_nat_add(x_1, x_42); +x_44 = x_41; +x_45 = lean_array_fset(x_12, x_1, x_44); lean_dec(x_1); -x_1 = x_72; -x_2 = x_74; +x_1 = x_43; +x_2 = x_45; goto _start; } } } } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_1)) { case 0: { -uint8_t x_4; lean_object* x_5; lean_object* x_6; uint8_t x_74; +uint8_t x_4; lean_object* x_5; lean_object* x_6; uint8_t x_49; x_4 = l_Lean_Expr_isMVar(x_1); -x_74 = lean_expr_has_expr_mvar(x_1); -if (x_74 == 0) -{ -uint8_t x_75; -x_75 = lean_expr_has_level_mvar(x_1); -if (x_75 == 0) +x_49 = l_Lean_Expr_hasMVar(x_1); +if (x_49 == 0) { x_5 = x_1; x_6 = x_3; -goto block_73; +goto block_48; } else { -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_3, 1); -lean_inc(x_76); -x_77 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_76, x_1); -lean_dec(x_76); -if (lean_obj_tag(x_77) == 0) +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_3, 1); +lean_inc(x_50); +x_51 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_50, x_1); +lean_dec(x_50); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_inc(x_1); -x_78 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 0); -lean_inc(x_80); -lean_dec(x_78); -x_81 = !lean_is_exclusive(x_79); -if (x_81 == 0) +x_52 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 0); +lean_inc(x_54); +lean_dec(x_52); +x_55 = !lean_is_exclusive(x_53); +if (x_55 == 0) { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -x_83 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_82, x_1, x_80); -lean_ctor_set(x_79, 1, x_83); -x_5 = x_80; -x_6 = x_79; -goto block_73; +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +x_57 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_56, x_1, x_54); +lean_ctor_set(x_53, 1, x_57); +x_5 = x_54; +x_6 = x_53; +goto block_48; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_84 = lean_ctor_get(x_79, 0); -x_85 = lean_ctor_get(x_79, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_79); -lean_inc(x_80); -x_86 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_85, x_1, x_80); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_86); -x_5 = x_80; -x_6 = x_87; -goto block_73; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_53, 0); +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_53); +lean_inc(x_54); +x_60 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_59, x_1, x_54); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_58); +lean_ctor_set(x_61, 1, x_60); +x_5 = x_54; +x_6 = x_61; +goto block_48; } } else { -lean_object* x_88; +lean_object* x_62; lean_dec(x_1); -x_88 = lean_ctor_get(x_77, 0); -lean_inc(x_88); -lean_dec(x_77); -x_5 = x_88; +x_62 = lean_ctor_get(x_51, 0); +lean_inc(x_62); +lean_dec(x_51); +x_5 = x_62; x_6 = x_3; -goto block_73; +goto block_48; } } -} -else -{ -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_3, 1); -lean_inc(x_89); -x_90 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_89, x_1); -lean_dec(x_89); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -lean_inc(x_1); -x_91 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 0); -lean_inc(x_93); -lean_dec(x_91); -x_94 = !lean_is_exclusive(x_92); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -x_96 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_95, x_1, x_93); -lean_ctor_set(x_92, 1, x_96); -x_5 = x_93; -x_6 = x_92; -goto block_73; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_97 = lean_ctor_get(x_92, 0); -x_98 = lean_ctor_get(x_92, 1); -lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_92); -lean_inc(x_93); -x_99 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_98, x_1, x_93); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_97); -lean_ctor_set(x_100, 1, x_99); -x_5 = x_93; -x_6 = x_100; -goto block_73; -} -} -else -{ -lean_object* x_101; -lean_dec(x_1); -x_101 = lean_ctor_get(x_90, 0); -lean_inc(x_101); -lean_dec(x_90); -x_5 = x_101; -x_6 = x_3; -goto block_73; -} -} -block_73: +block_48: { lean_object* x_7; if (x_4 == 0) @@ -9651,206 +8944,107 @@ else lean_object* x_21; uint8_t x_22; x_21 = l_Lean_Expr_betaRev(x_5, x_2); lean_dec(x_5); -x_22 = lean_expr_has_expr_mvar(x_21); +x_22 = l_Lean_Expr_hasMVar(x_21); if (x_22 == 0) { -uint8_t x_23; -x_23 = lean_expr_has_level_mvar(x_21); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_6); -return x_24; +lean_object* x_23; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_6); +return x_23; } else { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_6, 1); -lean_inc(x_25); -x_26 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_25, x_21); -lean_dec(x_25); -if (lean_obj_tag(x_26) == 0) +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_6, 1); +lean_inc(x_24); +x_25 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_24, x_21); +lean_dec(x_24); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; uint8_t x_28; +lean_object* x_26; uint8_t x_27; lean_inc(x_21); -x_27 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_21, x_6); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +x_26 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_21, x_6); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) { -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_27, 1); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_26, 1); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -x_33 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_32, x_21, x_31); -lean_ctor_set(x_29, 1, x_33); -return x_27; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_26, 0); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +x_32 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_31, x_21, x_30); +lean_ctor_set(x_28, 1, x_32); +return x_26; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_29, 0); -x_36 = lean_ctor_get(x_29, 1); -lean_inc(x_36); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_26, 0); +x_34 = lean_ctor_get(x_28, 0); +x_35 = lean_ctor_get(x_28, 1); lean_inc(x_35); -lean_dec(x_29); lean_inc(x_34); -x_37 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_36, x_21, x_34); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_35); -lean_ctor_set(x_38, 1, x_37); -lean_ctor_set(x_27, 1, x_38); -return x_27; +lean_dec(x_28); +lean_inc(x_33); +x_36 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_35, x_21, x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_26, 1, x_37); +return x_26; } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_39 = lean_ctor_get(x_27, 1); -x_40 = lean_ctor_get(x_27, 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; lean_object* x_44; lean_object* x_45; +x_38 = lean_ctor_get(x_26, 1); +x_39 = lean_ctor_get(x_26, 0); +lean_inc(x_38); lean_inc(x_39); -lean_inc(x_40); -lean_dec(x_27); -x_41 = lean_ctor_get(x_39, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_43 = x_39; -} else { - lean_dec_ref(x_39); - x_43 = lean_box(0); -} -lean_inc(x_40); -x_44 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_42, x_21, x_40); -if (lean_is_scalar(x_43)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_43; -} -lean_ctor_set(x_45, 0, x_41); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_40); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -else -{ -lean_object* x_47; lean_object* x_48; -lean_dec(x_21); -x_47 = lean_ctor_get(x_26, 0); -lean_inc(x_47); lean_dec(x_26); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_6); -return x_48; -} -} -} -else -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_6, 1); -lean_inc(x_49); -x_50 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_49, x_21); -lean_dec(x_49); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; uint8_t x_52; -lean_inc(x_21); -x_51 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_21, x_6); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) -{ -lean_object* x_53; uint8_t x_54; -x_53 = lean_ctor_get(x_51, 1); -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_51, 0); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -x_57 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_56, x_21, x_55); -lean_ctor_set(x_53, 1, x_57); -return x_51; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_58 = lean_ctor_get(x_51, 0); -x_59 = lean_ctor_get(x_53, 0); -x_60 = lean_ctor_get(x_53, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_53); -lean_inc(x_58); -x_61 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_60, x_21, x_58); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_51, 1, x_62); -return x_51; -} -} -else -{ -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; -x_63 = lean_ctor_get(x_51, 1); -x_64 = lean_ctor_get(x_51, 0); -lean_inc(x_63); -lean_inc(x_64); -lean_dec(x_51); -x_65 = lean_ctor_get(x_63, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_67 = x_63; +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_42 = x_38; } else { - lean_dec_ref(x_63); - x_67 = lean_box(0); + lean_dec_ref(x_38); + x_42 = lean_box(0); } -lean_inc(x_64); -x_68 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_66, x_21, x_64); -if (lean_is_scalar(x_67)) { - x_69 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_39); +x_43 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_41, x_21, x_39); +if (lean_is_scalar(x_42)) { + x_44 = lean_alloc_ctor(0, 2, 0); } else { - x_69 = x_67; + x_44 = x_42; } -lean_ctor_set(x_69, 0, x_65); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_64); -lean_ctor_set(x_70, 1, x_69); -return x_70; +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_39); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } else { -lean_object* x_71; lean_object* x_72; +lean_object* x_46; lean_object* x_47; lean_dec(x_21); -x_71 = lean_ctor_get(x_50, 0); -lean_inc(x_71); -lean_dec(x_50); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_6); -return x_72; +x_46 = lean_ctor_get(x_25, 0); +lean_inc(x_46); +lean_dec(x_25); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_6); +return x_47; } } } @@ -9891,1478 +9085,1544 @@ return x_16; } case 1: { -uint8_t x_102; lean_object* x_103; lean_object* x_104; uint8_t x_172; -x_102 = l_Lean_Expr_isMVar(x_1); -x_172 = lean_expr_has_expr_mvar(x_1); -if (x_172 == 0) -{ -uint8_t x_173; -x_173 = lean_expr_has_level_mvar(x_1); -if (x_173 == 0) -{ -x_103 = x_1; -x_104 = x_3; -goto block_171; -} -else -{ -lean_object* x_174; lean_object* x_175; -x_174 = lean_ctor_get(x_3, 1); -lean_inc(x_174); -x_175 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_174, x_1); -lean_dec(x_174); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; -lean_inc(x_1); -x_176 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 0); -lean_inc(x_178); -lean_dec(x_176); -x_179 = !lean_is_exclusive(x_177); -if (x_179 == 0) -{ -lean_object* x_180; lean_object* x_181; -x_180 = lean_ctor_get(x_177, 1); -lean_inc(x_178); -x_181 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_180, x_1, x_178); -lean_ctor_set(x_177, 1, x_181); -x_103 = x_178; -x_104 = x_177; -goto block_171; -} -else -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_182 = lean_ctor_get(x_177, 0); -x_183 = lean_ctor_get(x_177, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_177); -lean_inc(x_178); -x_184 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_183, x_1, x_178); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_184); -x_103 = x_178; -x_104 = x_185; -goto block_171; -} -} -else -{ -lean_object* x_186; -lean_dec(x_1); -x_186 = lean_ctor_get(x_175, 0); -lean_inc(x_186); -lean_dec(x_175); -x_103 = x_186; -x_104 = x_3; -goto block_171; -} -} -} -else -{ -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_3, 1); -lean_inc(x_187); -x_188 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_187, x_1); -lean_dec(x_187); -if (lean_obj_tag(x_188) == 0) -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -lean_inc(x_1); -x_189 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 0); -lean_inc(x_191); -lean_dec(x_189); -x_192 = !lean_is_exclusive(x_190); -if (x_192 == 0) -{ -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_190, 1); -lean_inc(x_191); -x_194 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_193, x_1, x_191); -lean_ctor_set(x_190, 1, x_194); -x_103 = x_191; -x_104 = x_190; -goto block_171; -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_195 = lean_ctor_get(x_190, 0); -x_196 = lean_ctor_get(x_190, 1); -lean_inc(x_196); -lean_inc(x_195); -lean_dec(x_190); -lean_inc(x_191); -x_197 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_196, x_1, x_191); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_195); -lean_ctor_set(x_198, 1, x_197); -x_103 = x_191; -x_104 = x_198; -goto block_171; -} -} -else -{ -lean_object* x_199; -lean_dec(x_1); -x_199 = lean_ctor_get(x_188, 0); -lean_inc(x_199); -lean_dec(x_188); -x_103 = x_199; -x_104 = x_3; -goto block_171; -} -} -block_171: -{ -lean_object* x_105; -if (x_102 == 0) -{ -lean_object* x_116; -x_116 = lean_box(0); -x_105 = x_116; -goto block_115; -} -else -{ -uint8_t x_117; -x_117 = l_Lean_Expr_isLambda(x_103); -if (x_117 == 0) -{ -lean_object* x_118; -x_118 = lean_box(0); -x_105 = x_118; -goto block_115; -} -else -{ -lean_object* x_119; uint8_t x_120; -x_119 = l_Lean_Expr_betaRev(x_103, x_2); -lean_dec(x_103); -x_120 = lean_expr_has_expr_mvar(x_119); -if (x_120 == 0) -{ -uint8_t x_121; -x_121 = lean_expr_has_level_mvar(x_119); -if (x_121 == 0) -{ -lean_object* x_122; -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_104); -return x_122; -} -else -{ -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_104, 1); -lean_inc(x_123); -x_124 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_123, x_119); -lean_dec(x_123); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; uint8_t x_126; -lean_inc(x_119); -x_125 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_119, x_104); -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -lean_object* x_127; uint8_t x_128; -x_127 = lean_ctor_get(x_125, 1); -x_128 = !lean_is_exclusive(x_127); -if (x_128 == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_125, 0); -x_130 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -x_131 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_130, x_119, x_129); -lean_ctor_set(x_127, 1, x_131); -return x_125; -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_132 = lean_ctor_get(x_125, 0); -x_133 = lean_ctor_get(x_127, 0); -x_134 = lean_ctor_get(x_127, 1); -lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_127); -lean_inc(x_132); -x_135 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_134, x_119, x_132); -x_136 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_136, 0, x_133); -lean_ctor_set(x_136, 1, x_135); -lean_ctor_set(x_125, 1, x_136); -return x_125; -} -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_137 = lean_ctor_get(x_125, 1); -x_138 = lean_ctor_get(x_125, 0); -lean_inc(x_137); -lean_inc(x_138); -lean_dec(x_125); -x_139 = lean_ctor_get(x_137, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_141 = x_137; -} else { - lean_dec_ref(x_137); - x_141 = lean_box(0); -} -lean_inc(x_138); -x_142 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_140, x_119, x_138); -if (lean_is_scalar(x_141)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_141; -} -lean_ctor_set(x_143, 0, x_139); -lean_ctor_set(x_143, 1, x_142); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_138); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -else -{ -lean_object* x_145; lean_object* x_146; -lean_dec(x_119); -x_145 = lean_ctor_get(x_124, 0); -lean_inc(x_145); -lean_dec(x_124); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_104); -return x_146; -} -} -} -else -{ -lean_object* x_147; lean_object* x_148; -x_147 = lean_ctor_get(x_104, 1); -lean_inc(x_147); -x_148 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_147, x_119); -lean_dec(x_147); -if (lean_obj_tag(x_148) == 0) -{ -lean_object* x_149; uint8_t x_150; -lean_inc(x_119); -x_149 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_119, x_104); -x_150 = !lean_is_exclusive(x_149); -if (x_150 == 0) -{ -lean_object* x_151; uint8_t x_152; -x_151 = lean_ctor_get(x_149, 1); -x_152 = !lean_is_exclusive(x_151); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_149, 0); -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -x_155 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_154, x_119, x_153); -lean_ctor_set(x_151, 1, x_155); -return x_149; -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_156 = lean_ctor_get(x_149, 0); -x_157 = lean_ctor_get(x_151, 0); -x_158 = lean_ctor_get(x_151, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_151); -lean_inc(x_156); -x_159 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_158, x_119, x_156); -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_159); -lean_ctor_set(x_149, 1, x_160); -return x_149; -} -} -else -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_161 = lean_ctor_get(x_149, 1); -x_162 = lean_ctor_get(x_149, 0); -lean_inc(x_161); -lean_inc(x_162); -lean_dec(x_149); -x_163 = lean_ctor_get(x_161, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_161, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_165 = x_161; -} else { - lean_dec_ref(x_161); - x_165 = lean_box(0); -} -lean_inc(x_162); -x_166 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_164, x_119, x_162); -if (lean_is_scalar(x_165)) { - x_167 = lean_alloc_ctor(0, 2, 0); -} else { - x_167 = x_165; -} -lean_ctor_set(x_167, 0, x_163); -lean_ctor_set(x_167, 1, x_166); -x_168 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_168, 0, x_162); -lean_ctor_set(x_168, 1, x_167); -return x_168; -} -} -else -{ -lean_object* x_169; lean_object* x_170; -lean_dec(x_119); -x_169 = lean_ctor_get(x_148, 0); -lean_inc(x_169); -lean_dec(x_148); -x_170 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_104); -return x_170; -} -} -} -} -block_115: -{ -lean_object* x_106; lean_object* x_107; uint8_t x_108; -lean_dec(x_105); -x_106 = lean_unsigned_to_nat(0u); -x_107 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_106, x_2, x_104); -x_108 = !lean_is_exclusive(x_107); +uint8_t x_63; lean_object* x_64; lean_object* x_65; uint8_t x_108; +x_63 = l_Lean_Expr_isMVar(x_1); +x_108 = l_Lean_Expr_hasMVar(x_1); if (x_108 == 0) { -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_107, 0); -x_110 = l_Lean_mkAppRev(x_103, x_109); -lean_dec(x_109); -lean_ctor_set(x_107, 0, x_110); -return x_107; +x_64 = x_1; +x_65 = x_3; +goto block_107; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_111 = lean_ctor_get(x_107, 0); -x_112 = lean_ctor_get(x_107, 1); +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_3, 1); +lean_inc(x_109); +x_110 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_109, x_1); +lean_dec(x_109); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +lean_inc(x_1); +x_111 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_112 = lean_ctor_get(x_111, 1); lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_107); -x_113 = l_Lean_mkAppRev(x_103, x_111); +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); lean_dec(x_111); -x_114 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -return x_114; +x_114 = !lean_is_exclusive(x_112); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +x_116 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_115, x_1, x_113); +lean_ctor_set(x_112, 1, x_116); +x_64 = x_113; +x_65 = x_112; +goto block_107; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_117 = lean_ctor_get(x_112, 0); +x_118 = lean_ctor_get(x_112, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_112); +lean_inc(x_113); +x_119 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_118, x_1, x_113); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_119); +x_64 = x_113; +x_65 = x_120; +goto block_107; +} +} +else +{ +lean_object* x_121; +lean_dec(x_1); +x_121 = lean_ctor_get(x_110, 0); +lean_inc(x_121); +lean_dec(x_110); +x_64 = x_121; +x_65 = x_3; +goto block_107; +} +} +block_107: +{ +lean_object* x_66; +if (x_63 == 0) +{ +lean_object* x_77; +x_77 = lean_box(0); +x_66 = x_77; +goto block_76; +} +else +{ +uint8_t x_78; +x_78 = l_Lean_Expr_isLambda(x_64); +if (x_78 == 0) +{ +lean_object* x_79; +x_79 = lean_box(0); +x_66 = x_79; +goto block_76; +} +else +{ +lean_object* x_80; uint8_t x_81; +x_80 = l_Lean_Expr_betaRev(x_64, x_2); +lean_dec(x_64); +x_81 = l_Lean_Expr_hasMVar(x_80); +if (x_81 == 0) +{ +lean_object* x_82; +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_65); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_65, 1); +lean_inc(x_83); +x_84 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_83, x_80); +lean_dec(x_83); +if (lean_obj_tag(x_84) == 0) +{ +lean_object* x_85; uint8_t x_86; +lean_inc(x_80); +x_85 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_80, x_65); +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) +{ +lean_object* x_87; uint8_t x_88; +x_87 = lean_ctor_get(x_85, 1); +x_88 = !lean_is_exclusive(x_87); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_85, 0); +x_90 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +x_91 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_90, x_80, x_89); +lean_ctor_set(x_87, 1, x_91); +return x_85; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_92 = lean_ctor_get(x_85, 0); +x_93 = lean_ctor_get(x_87, 0); +x_94 = lean_ctor_get(x_87, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_87); +lean_inc(x_92); +x_95 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_94, x_80, x_92); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_95); +lean_ctor_set(x_85, 1, x_96); +return x_85; +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_97 = lean_ctor_get(x_85, 1); +x_98 = lean_ctor_get(x_85, 0); +lean_inc(x_97); +lean_inc(x_98); +lean_dec(x_85); +x_99 = lean_ctor_get(x_97, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_97, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_101 = x_97; +} else { + lean_dec_ref(x_97); + x_101 = lean_box(0); +} +lean_inc(x_98); +x_102 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_100, x_80, x_98); +if (lean_is_scalar(x_101)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_101; +} +lean_ctor_set(x_103, 0, x_99); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_98); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_80); +x_105 = lean_ctor_get(x_84, 0); +lean_inc(x_105); +lean_dec(x_84); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_65); +return x_106; +} +} +} +} +block_76: +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +lean_dec(x_66); +x_67 = lean_unsigned_to_nat(0u); +x_68 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_67, x_2, x_65); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_68, 0); +x_71 = l_Lean_mkAppRev(x_64, x_70); +lean_dec(x_70); +lean_ctor_set(x_68, 0, x_71); +return x_68; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_68, 0); +x_73 = lean_ctor_get(x_68, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_68); +x_74 = l_Lean_mkAppRev(x_64, x_72); +lean_dec(x_72); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } } case 2: { -uint8_t x_200; lean_object* x_201; lean_object* x_202; uint8_t x_270; -x_200 = l_Lean_Expr_isMVar(x_1); -x_270 = lean_expr_has_expr_mvar(x_1); -if (x_270 == 0) +uint8_t x_122; lean_object* x_123; lean_object* x_124; uint8_t x_167; +x_122 = l_Lean_Expr_isMVar(x_1); +x_167 = l_Lean_Expr_hasMVar(x_1); +if (x_167 == 0) { -uint8_t x_271; -x_271 = lean_expr_has_level_mvar(x_1); -if (x_271 == 0) -{ -x_201 = x_1; -x_202 = x_3; -goto block_269; +x_123 = x_1; +x_124 = x_3; +goto block_166; } else { -lean_object* x_272; lean_object* x_273; -x_272 = lean_ctor_get(x_3, 1); -lean_inc(x_272); -x_273 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_272, x_1); -lean_dec(x_272); -if (lean_obj_tag(x_273) == 0) +lean_object* x_168; lean_object* x_169; +x_168 = lean_ctor_get(x_3, 1); +lean_inc(x_168); +x_169 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_168, x_1); +lean_dec(x_168); +if (lean_obj_tag(x_169) == 0) { -lean_object* x_274; lean_object* x_275; lean_object* x_276; uint8_t x_277; +lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; lean_inc(x_1); -x_274 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_275 = lean_ctor_get(x_274, 1); -lean_inc(x_275); -x_276 = lean_ctor_get(x_274, 0); -lean_inc(x_276); -lean_dec(x_274); -x_277 = !lean_is_exclusive(x_275); -if (x_277 == 0) +x_170 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 0); +lean_inc(x_172); +lean_dec(x_170); +x_173 = !lean_is_exclusive(x_171); +if (x_173 == 0) { -lean_object* x_278; lean_object* x_279; -x_278 = lean_ctor_get(x_275, 1); -lean_inc(x_276); -x_279 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_278, x_1, x_276); -lean_ctor_set(x_275, 1, x_279); -x_201 = x_276; -x_202 = x_275; -goto block_269; +lean_object* x_174; lean_object* x_175; +x_174 = lean_ctor_get(x_171, 1); +lean_inc(x_172); +x_175 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_174, x_1, x_172); +lean_ctor_set(x_171, 1, x_175); +x_123 = x_172; +x_124 = x_171; +goto block_166; } else { -lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; -x_280 = lean_ctor_get(x_275, 0); -x_281 = lean_ctor_get(x_275, 1); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_275); -lean_inc(x_276); -x_282 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_281, x_1, x_276); -x_283 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_283, 0, x_280); -lean_ctor_set(x_283, 1, x_282); -x_201 = x_276; -x_202 = x_283; -goto block_269; +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_176 = lean_ctor_get(x_171, 0); +x_177 = lean_ctor_get(x_171, 1); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_171); +lean_inc(x_172); +x_178 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_177, x_1, x_172); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_176); +lean_ctor_set(x_179, 1, x_178); +x_123 = x_172; +x_124 = x_179; +goto block_166; } } else { -lean_object* x_284; +lean_object* x_180; lean_dec(x_1); -x_284 = lean_ctor_get(x_273, 0); -lean_inc(x_284); -lean_dec(x_273); -x_201 = x_284; -x_202 = x_3; -goto block_269; +x_180 = lean_ctor_get(x_169, 0); +lean_inc(x_180); +lean_dec(x_169); +x_123 = x_180; +x_124 = x_3; +goto block_166; } } +block_166: +{ +lean_object* x_125; +if (x_122 == 0) +{ +lean_object* x_136; +x_136 = lean_box(0); +x_125 = x_136; +goto block_135; +} +else +{ +uint8_t x_137; +x_137 = l_Lean_Expr_isLambda(x_123); +if (x_137 == 0) +{ +lean_object* x_138; +x_138 = lean_box(0); +x_125 = x_138; +goto block_135; +} +else +{ +lean_object* x_139; uint8_t x_140; +x_139 = l_Lean_Expr_betaRev(x_123, x_2); +lean_dec(x_123); +x_140 = l_Lean_Expr_hasMVar(x_139); +if (x_140 == 0) +{ +lean_object* x_141; +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_124); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_124, 1); +lean_inc(x_142); +x_143 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_142, x_139); +lean_dec(x_142); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; uint8_t x_145; +lean_inc(x_139); +x_144 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_139, x_124); +x_145 = !lean_is_exclusive(x_144); +if (x_145 == 0) +{ +lean_object* x_146; uint8_t x_147; +x_146 = lean_ctor_get(x_144, 1); +x_147 = !lean_is_exclusive(x_146); +if (x_147 == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_144, 0); +x_149 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +x_150 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_149, x_139, x_148); +lean_ctor_set(x_146, 1, x_150); +return x_144; +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_151 = lean_ctor_get(x_144, 0); +x_152 = lean_ctor_get(x_146, 0); +x_153 = lean_ctor_get(x_146, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_146); +lean_inc(x_151); +x_154 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_153, x_139, x_151); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_154); +lean_ctor_set(x_144, 1, x_155); +return x_144; +} } else { -lean_object* x_285; lean_object* x_286; -x_285 = lean_ctor_get(x_3, 1); -lean_inc(x_285); -x_286 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_285, x_1); -lean_dec(x_285); -if (lean_obj_tag(x_286) == 0) -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; -lean_inc(x_1); -x_287 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_288 = lean_ctor_get(x_287, 1); -lean_inc(x_288); -x_289 = lean_ctor_get(x_287, 0); -lean_inc(x_289); -lean_dec(x_287); -x_290 = !lean_is_exclusive(x_288); -if (x_290 == 0) -{ -lean_object* x_291; lean_object* x_292; -x_291 = lean_ctor_get(x_288, 1); -lean_inc(x_289); -x_292 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_291, x_1, x_289); -lean_ctor_set(x_288, 1, x_292); -x_201 = x_289; -x_202 = x_288; -goto block_269; -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_293 = lean_ctor_get(x_288, 0); -x_294 = lean_ctor_get(x_288, 1); -lean_inc(x_294); -lean_inc(x_293); -lean_dec(x_288); -lean_inc(x_289); -x_295 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_294, x_1, x_289); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_293); -lean_ctor_set(x_296, 1, x_295); -x_201 = x_289; -x_202 = x_296; -goto block_269; -} -} -else -{ -lean_object* x_297; -lean_dec(x_1); -x_297 = lean_ctor_get(x_286, 0); -lean_inc(x_297); -lean_dec(x_286); -x_201 = x_297; -x_202 = x_3; -goto block_269; -} -} -block_269: -{ -lean_object* x_203; -if (x_200 == 0) -{ -lean_object* x_214; -x_214 = lean_box(0); -x_203 = x_214; -goto block_213; -} -else -{ -uint8_t x_215; -x_215 = l_Lean_Expr_isLambda(x_201); -if (x_215 == 0) -{ -lean_object* x_216; -x_216 = lean_box(0); -x_203 = x_216; -goto block_213; -} -else -{ -lean_object* x_217; uint8_t x_218; -x_217 = l_Lean_Expr_betaRev(x_201, x_2); -lean_dec(x_201); -x_218 = lean_expr_has_expr_mvar(x_217); -if (x_218 == 0) -{ -uint8_t x_219; -x_219 = lean_expr_has_level_mvar(x_217); -if (x_219 == 0) -{ -lean_object* x_220; -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_217); -lean_ctor_set(x_220, 1, x_202); -return x_220; -} -else -{ -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_202, 1); -lean_inc(x_221); -x_222 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_221, x_217); -lean_dec(x_221); -if (lean_obj_tag(x_222) == 0) -{ -lean_object* x_223; uint8_t x_224; -lean_inc(x_217); -x_223 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_217, x_202); -x_224 = !lean_is_exclusive(x_223); -if (x_224 == 0) -{ -lean_object* x_225; uint8_t x_226; -x_225 = lean_ctor_get(x_223, 1); -x_226 = !lean_is_exclusive(x_225); -if (x_226 == 0) -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_223, 0); -x_228 = lean_ctor_get(x_225, 1); -lean_inc(x_227); -x_229 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_228, x_217, x_227); -lean_ctor_set(x_225, 1, x_229); -return x_223; -} -else -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_230 = lean_ctor_get(x_223, 0); -x_231 = lean_ctor_get(x_225, 0); -x_232 = lean_ctor_get(x_225, 1); -lean_inc(x_232); -lean_inc(x_231); -lean_dec(x_225); -lean_inc(x_230); -x_233 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_232, x_217, x_230); -x_234 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_234, 0, x_231); -lean_ctor_set(x_234, 1, x_233); -lean_ctor_set(x_223, 1, x_234); -return x_223; -} -} -else -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_235 = lean_ctor_get(x_223, 1); -x_236 = lean_ctor_get(x_223, 0); -lean_inc(x_235); -lean_inc(x_236); -lean_dec(x_223); -x_237 = lean_ctor_get(x_235, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_235, 1); -lean_inc(x_238); -if (lean_is_exclusive(x_235)) { - lean_ctor_release(x_235, 0); - lean_ctor_release(x_235, 1); - x_239 = x_235; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_156 = lean_ctor_get(x_144, 1); +x_157 = lean_ctor_get(x_144, 0); +lean_inc(x_156); +lean_inc(x_157); +lean_dec(x_144); +x_158 = lean_ctor_get(x_156, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_156, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_160 = x_156; } else { - lean_dec_ref(x_235); - x_239 = lean_box(0); + lean_dec_ref(x_156); + x_160 = lean_box(0); } -lean_inc(x_236); -x_240 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_238, x_217, x_236); -if (lean_is_scalar(x_239)) { - x_241 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_157); +x_161 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_159, x_139, x_157); +if (lean_is_scalar(x_160)) { + x_162 = lean_alloc_ctor(0, 2, 0); } else { - x_241 = x_239; + x_162 = x_160; } -lean_ctor_set(x_241, 0, x_237); -lean_ctor_set(x_241, 1, x_240); -x_242 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_242, 0, x_236); -lean_ctor_set(x_242, 1, x_241); -return x_242; +lean_ctor_set(x_162, 0, x_158); +lean_ctor_set(x_162, 1, x_161); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_157); +lean_ctor_set(x_163, 1, x_162); +return x_163; } } else { -lean_object* x_243; lean_object* x_244; -lean_dec(x_217); -x_243 = lean_ctor_get(x_222, 0); -lean_inc(x_243); -lean_dec(x_222); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_202); -return x_244; +lean_object* x_164; lean_object* x_165; +lean_dec(x_139); +x_164 = lean_ctor_get(x_143, 0); +lean_inc(x_164); +lean_dec(x_143); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_124); +return x_165; } } } +} +block_135: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; +lean_dec(x_125); +x_126 = lean_unsigned_to_nat(0u); +x_127 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_126, x_2, x_124); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_ctor_get(x_127, 0); +x_130 = l_Lean_mkAppRev(x_123, x_129); +lean_dec(x_129); +lean_ctor_set(x_127, 0, x_130); +return x_127; +} else { -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_202, 1); -lean_inc(x_245); -x_246 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_245, x_217); -lean_dec(x_245); -if (lean_obj_tag(x_246) == 0) -{ -lean_object* x_247; uint8_t x_248; -lean_inc(x_217); -x_247 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_217, x_202); -x_248 = !lean_is_exclusive(x_247); -if (x_248 == 0) -{ -lean_object* x_249; uint8_t x_250; -x_249 = lean_ctor_get(x_247, 1); -x_250 = !lean_is_exclusive(x_249); -if (x_250 == 0) -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_251 = lean_ctor_get(x_247, 0); -x_252 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -x_253 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_252, x_217, x_251); -lean_ctor_set(x_249, 1, x_253); -return x_247; -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_254 = lean_ctor_get(x_247, 0); -x_255 = lean_ctor_get(x_249, 0); -x_256 = lean_ctor_get(x_249, 1); -lean_inc(x_256); -lean_inc(x_255); -lean_dec(x_249); -lean_inc(x_254); -x_257 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_256, x_217, x_254); -x_258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_258, 0, x_255); -lean_ctor_set(x_258, 1, x_257); -lean_ctor_set(x_247, 1, x_258); -return x_247; -} -} -else -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_259 = lean_ctor_get(x_247, 1); -x_260 = lean_ctor_get(x_247, 0); -lean_inc(x_259); -lean_inc(x_260); -lean_dec(x_247); -x_261 = lean_ctor_get(x_259, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_259, 1); -lean_inc(x_262); -if (lean_is_exclusive(x_259)) { - lean_ctor_release(x_259, 0); - lean_ctor_release(x_259, 1); - x_263 = x_259; -} else { - lean_dec_ref(x_259); - x_263 = lean_box(0); -} -lean_inc(x_260); -x_264 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_262, x_217, x_260); -if (lean_is_scalar(x_263)) { - x_265 = lean_alloc_ctor(0, 2, 0); -} else { - x_265 = x_263; -} -lean_ctor_set(x_265, 0, x_261); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_266, 0, x_260); -lean_ctor_set(x_266, 1, x_265); -return x_266; -} -} -else -{ -lean_object* x_267; lean_object* x_268; -lean_dec(x_217); -x_267 = lean_ctor_get(x_246, 0); -lean_inc(x_267); -lean_dec(x_246); -x_268 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_268, 0, x_267); -lean_ctor_set(x_268, 1, x_202); -return x_268; -} -} -} -} -block_213: -{ -lean_object* x_204; lean_object* x_205; uint8_t x_206; -lean_dec(x_203); -x_204 = lean_unsigned_to_nat(0u); -x_205 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_204, x_2, x_202); -x_206 = !lean_is_exclusive(x_205); -if (x_206 == 0) -{ -lean_object* x_207; lean_object* x_208; -x_207 = lean_ctor_get(x_205, 0); -x_208 = l_Lean_mkAppRev(x_201, x_207); -lean_dec(x_207); -lean_ctor_set(x_205, 0, x_208); -return x_205; -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_209 = lean_ctor_get(x_205, 0); -x_210 = lean_ctor_get(x_205, 1); -lean_inc(x_210); -lean_inc(x_209); -lean_dec(x_205); -x_211 = l_Lean_mkAppRev(x_201, x_209); -lean_dec(x_209); -x_212 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_212, 0, x_211); -lean_ctor_set(x_212, 1, x_210); -return x_212; +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_127, 0); +x_132 = lean_ctor_get(x_127, 1); +lean_inc(x_132); +lean_inc(x_131); +lean_dec(x_127); +x_133 = l_Lean_mkAppRev(x_123, x_131); +lean_dec(x_131); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +return x_134; } } } } case 3: { -uint8_t x_298; lean_object* x_299; lean_object* x_300; uint8_t x_368; -x_298 = l_Lean_Expr_isMVar(x_1); -x_368 = lean_expr_has_expr_mvar(x_1); -if (x_368 == 0) +uint8_t x_181; lean_object* x_182; lean_object* x_183; uint8_t x_226; +x_181 = l_Lean_Expr_isMVar(x_1); +x_226 = l_Lean_Expr_hasMVar(x_1); +if (x_226 == 0) { -uint8_t x_369; -x_369 = lean_expr_has_level_mvar(x_1); -if (x_369 == 0) -{ -x_299 = x_1; -x_300 = x_3; -goto block_367; +x_182 = x_1; +x_183 = x_3; +goto block_225; } else { -lean_object* x_370; lean_object* x_371; -x_370 = lean_ctor_get(x_3, 1); -lean_inc(x_370); -x_371 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_370, x_1); -lean_dec(x_370); -if (lean_obj_tag(x_371) == 0) +lean_object* x_227; lean_object* x_228; +x_227 = lean_ctor_get(x_3, 1); +lean_inc(x_227); +x_228 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_227, x_1); +lean_dec(x_227); +if (lean_obj_tag(x_228) == 0) { -lean_object* x_372; lean_object* x_373; lean_object* x_374; uint8_t x_375; +lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_inc(x_1); -x_372 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_373 = lean_ctor_get(x_372, 1); -lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 0); -lean_inc(x_374); -lean_dec(x_372); -x_375 = !lean_is_exclusive(x_373); -if (x_375 == 0) +x_229 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_230 = lean_ctor_get(x_229, 1); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 0); +lean_inc(x_231); +lean_dec(x_229); +x_232 = !lean_is_exclusive(x_230); +if (x_232 == 0) { -lean_object* x_376; lean_object* x_377; -x_376 = lean_ctor_get(x_373, 1); -lean_inc(x_374); -x_377 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_376, x_1, x_374); -lean_ctor_set(x_373, 1, x_377); -x_299 = x_374; -x_300 = x_373; -goto block_367; +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +x_234 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_233, x_1, x_231); +lean_ctor_set(x_230, 1, x_234); +x_182 = x_231; +x_183 = x_230; +goto block_225; } else { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; -x_378 = lean_ctor_get(x_373, 0); -x_379 = lean_ctor_get(x_373, 1); -lean_inc(x_379); -lean_inc(x_378); -lean_dec(x_373); -lean_inc(x_374); -x_380 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_379, x_1, x_374); -x_381 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_381, 0, x_378); -lean_ctor_set(x_381, 1, x_380); -x_299 = x_374; -x_300 = x_381; -goto block_367; +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_235 = lean_ctor_get(x_230, 0); +x_236 = lean_ctor_get(x_230, 1); +lean_inc(x_236); +lean_inc(x_235); +lean_dec(x_230); +lean_inc(x_231); +x_237 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_236, x_1, x_231); +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_237); +x_182 = x_231; +x_183 = x_238; +goto block_225; } } else { -lean_object* x_382; +lean_object* x_239; lean_dec(x_1); -x_382 = lean_ctor_get(x_371, 0); -lean_inc(x_382); -lean_dec(x_371); -x_299 = x_382; -x_300 = x_3; -goto block_367; +x_239 = lean_ctor_get(x_228, 0); +lean_inc(x_239); +lean_dec(x_228); +x_182 = x_239; +x_183 = x_3; +goto block_225; } } +block_225: +{ +lean_object* x_184; +if (x_181 == 0) +{ +lean_object* x_195; +x_195 = lean_box(0); +x_184 = x_195; +goto block_194; +} +else +{ +uint8_t x_196; +x_196 = l_Lean_Expr_isLambda(x_182); +if (x_196 == 0) +{ +lean_object* x_197; +x_197 = lean_box(0); +x_184 = x_197; +goto block_194; +} +else +{ +lean_object* x_198; uint8_t x_199; +x_198 = l_Lean_Expr_betaRev(x_182, x_2); +lean_dec(x_182); +x_199 = l_Lean_Expr_hasMVar(x_198); +if (x_199 == 0) +{ +lean_object* x_200; +x_200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_200, 0, x_198); +lean_ctor_set(x_200, 1, x_183); +return x_200; +} +else +{ +lean_object* x_201; lean_object* x_202; +x_201 = lean_ctor_get(x_183, 1); +lean_inc(x_201); +x_202 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_201, x_198); +lean_dec(x_201); +if (lean_obj_tag(x_202) == 0) +{ +lean_object* x_203; uint8_t x_204; +lean_inc(x_198); +x_203 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_198, x_183); +x_204 = !lean_is_exclusive(x_203); +if (x_204 == 0) +{ +lean_object* x_205; uint8_t x_206; +x_205 = lean_ctor_get(x_203, 1); +x_206 = !lean_is_exclusive(x_205); +if (x_206 == 0) +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_203, 0); +x_208 = lean_ctor_get(x_205, 1); +lean_inc(x_207); +x_209 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_208, x_198, x_207); +lean_ctor_set(x_205, 1, x_209); +return x_203; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_210 = lean_ctor_get(x_203, 0); +x_211 = lean_ctor_get(x_205, 0); +x_212 = lean_ctor_get(x_205, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_205); +lean_inc(x_210); +x_213 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_212, x_198, x_210); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_213); +lean_ctor_set(x_203, 1, x_214); +return x_203; +} } else { -lean_object* x_383; lean_object* x_384; -x_383 = lean_ctor_get(x_3, 1); -lean_inc(x_383); -x_384 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_383, x_1); -lean_dec(x_383); -if (lean_obj_tag(x_384) == 0) -{ -lean_object* x_385; lean_object* x_386; lean_object* x_387; uint8_t x_388; -lean_inc(x_1); -x_385 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_386 = lean_ctor_get(x_385, 1); -lean_inc(x_386); -x_387 = lean_ctor_get(x_385, 0); -lean_inc(x_387); -lean_dec(x_385); -x_388 = !lean_is_exclusive(x_386); -if (x_388 == 0) -{ -lean_object* x_389; lean_object* x_390; -x_389 = lean_ctor_get(x_386, 1); -lean_inc(x_387); -x_390 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_389, x_1, x_387); -lean_ctor_set(x_386, 1, x_390); -x_299 = x_387; -x_300 = x_386; -goto block_367; -} -else -{ -lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_391 = lean_ctor_get(x_386, 0); -x_392 = lean_ctor_get(x_386, 1); -lean_inc(x_392); -lean_inc(x_391); -lean_dec(x_386); -lean_inc(x_387); -x_393 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_392, x_1, x_387); -x_394 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_394, 0, x_391); -lean_ctor_set(x_394, 1, x_393); -x_299 = x_387; -x_300 = x_394; -goto block_367; -} -} -else -{ -lean_object* x_395; -lean_dec(x_1); -x_395 = lean_ctor_get(x_384, 0); -lean_inc(x_395); -lean_dec(x_384); -x_299 = x_395; -x_300 = x_3; -goto block_367; -} -} -block_367: -{ -lean_object* x_301; -if (x_298 == 0) -{ -lean_object* x_312; -x_312 = lean_box(0); -x_301 = x_312; -goto block_311; -} -else -{ -uint8_t x_313; -x_313 = l_Lean_Expr_isLambda(x_299); -if (x_313 == 0) -{ -lean_object* x_314; -x_314 = lean_box(0); -x_301 = x_314; -goto block_311; -} -else -{ -lean_object* x_315; uint8_t x_316; -x_315 = l_Lean_Expr_betaRev(x_299, x_2); -lean_dec(x_299); -x_316 = lean_expr_has_expr_mvar(x_315); -if (x_316 == 0) -{ -uint8_t x_317; -x_317 = lean_expr_has_level_mvar(x_315); -if (x_317 == 0) -{ -lean_object* x_318; -x_318 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_318, 0, x_315); -lean_ctor_set(x_318, 1, x_300); -return x_318; -} -else -{ -lean_object* x_319; lean_object* x_320; -x_319 = lean_ctor_get(x_300, 1); -lean_inc(x_319); -x_320 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_319, x_315); -lean_dec(x_319); -if (lean_obj_tag(x_320) == 0) -{ -lean_object* x_321; uint8_t x_322; -lean_inc(x_315); -x_321 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_315, x_300); -x_322 = !lean_is_exclusive(x_321); -if (x_322 == 0) -{ -lean_object* x_323; uint8_t x_324; -x_323 = lean_ctor_get(x_321, 1); -x_324 = !lean_is_exclusive(x_323); -if (x_324 == 0) -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_325 = lean_ctor_get(x_321, 0); -x_326 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -x_327 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_326, x_315, x_325); -lean_ctor_set(x_323, 1, x_327); -return x_321; -} -else -{ -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_328 = lean_ctor_get(x_321, 0); -x_329 = lean_ctor_get(x_323, 0); -x_330 = lean_ctor_get(x_323, 1); -lean_inc(x_330); -lean_inc(x_329); -lean_dec(x_323); -lean_inc(x_328); -x_331 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_330, x_315, x_328); -x_332 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_332, 0, x_329); -lean_ctor_set(x_332, 1, x_331); -lean_ctor_set(x_321, 1, x_332); -return x_321; -} -} -else -{ -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_333 = lean_ctor_get(x_321, 1); -x_334 = lean_ctor_get(x_321, 0); -lean_inc(x_333); -lean_inc(x_334); -lean_dec(x_321); -x_335 = lean_ctor_get(x_333, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_333, 1); -lean_inc(x_336); -if (lean_is_exclusive(x_333)) { - lean_ctor_release(x_333, 0); - lean_ctor_release(x_333, 1); - x_337 = x_333; +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_215 = lean_ctor_get(x_203, 1); +x_216 = lean_ctor_get(x_203, 0); +lean_inc(x_215); +lean_inc(x_216); +lean_dec(x_203); +x_217 = lean_ctor_get(x_215, 0); +lean_inc(x_217); +x_218 = lean_ctor_get(x_215, 1); +lean_inc(x_218); +if (lean_is_exclusive(x_215)) { + lean_ctor_release(x_215, 0); + lean_ctor_release(x_215, 1); + x_219 = x_215; } else { - lean_dec_ref(x_333); - x_337 = lean_box(0); + lean_dec_ref(x_215); + x_219 = lean_box(0); } -lean_inc(x_334); -x_338 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_336, x_315, x_334); -if (lean_is_scalar(x_337)) { - x_339 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_216); +x_220 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_218, x_198, x_216); +if (lean_is_scalar(x_219)) { + x_221 = lean_alloc_ctor(0, 2, 0); } else { - x_339 = x_337; + x_221 = x_219; } -lean_ctor_set(x_339, 0, x_335); -lean_ctor_set(x_339, 1, x_338); -x_340 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_340, 0, x_334); -lean_ctor_set(x_340, 1, x_339); -return x_340; +lean_ctor_set(x_221, 0, x_217); +lean_ctor_set(x_221, 1, x_220); +x_222 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_222, 0, x_216); +lean_ctor_set(x_222, 1, x_221); +return x_222; } } else { -lean_object* x_341; lean_object* x_342; -lean_dec(x_315); -x_341 = lean_ctor_get(x_320, 0); -lean_inc(x_341); -lean_dec(x_320); -x_342 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_342, 0, x_341); -lean_ctor_set(x_342, 1, x_300); -return x_342; +lean_object* x_223; lean_object* x_224; +lean_dec(x_198); +x_223 = lean_ctor_get(x_202, 0); +lean_inc(x_223); +lean_dec(x_202); +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_183); +return x_224; } } } +} +block_194: +{ +lean_object* x_185; lean_object* x_186; uint8_t x_187; +lean_dec(x_184); +x_185 = lean_unsigned_to_nat(0u); +x_186 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_185, x_2, x_183); +x_187 = !lean_is_exclusive(x_186); +if (x_187 == 0) +{ +lean_object* x_188; lean_object* x_189; +x_188 = lean_ctor_get(x_186, 0); +x_189 = l_Lean_mkAppRev(x_182, x_188); +lean_dec(x_188); +lean_ctor_set(x_186, 0, x_189); +return x_186; +} else { -lean_object* x_343; lean_object* x_344; -x_343 = lean_ctor_get(x_300, 1); -lean_inc(x_343); -x_344 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_343, x_315); -lean_dec(x_343); -if (lean_obj_tag(x_344) == 0) -{ -lean_object* x_345; uint8_t x_346; -lean_inc(x_315); -x_345 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_315, x_300); -x_346 = !lean_is_exclusive(x_345); -if (x_346 == 0) -{ -lean_object* x_347; uint8_t x_348; -x_347 = lean_ctor_get(x_345, 1); -x_348 = !lean_is_exclusive(x_347); -if (x_348 == 0) -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_349 = lean_ctor_get(x_345, 0); -x_350 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -x_351 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_350, x_315, x_349); -lean_ctor_set(x_347, 1, x_351); -return x_345; -} -else -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_352 = lean_ctor_get(x_345, 0); -x_353 = lean_ctor_get(x_347, 0); -x_354 = lean_ctor_get(x_347, 1); -lean_inc(x_354); -lean_inc(x_353); -lean_dec(x_347); -lean_inc(x_352); -x_355 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_354, x_315, x_352); -x_356 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_356, 0, x_353); -lean_ctor_set(x_356, 1, x_355); -lean_ctor_set(x_345, 1, x_356); -return x_345; -} -} -else -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_357 = lean_ctor_get(x_345, 1); -x_358 = lean_ctor_get(x_345, 0); -lean_inc(x_357); -lean_inc(x_358); -lean_dec(x_345); -x_359 = lean_ctor_get(x_357, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_357, 1); -lean_inc(x_360); -if (lean_is_exclusive(x_357)) { - lean_ctor_release(x_357, 0); - lean_ctor_release(x_357, 1); - x_361 = x_357; -} else { - lean_dec_ref(x_357); - x_361 = lean_box(0); -} -lean_inc(x_358); -x_362 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_360, x_315, x_358); -if (lean_is_scalar(x_361)) { - x_363 = lean_alloc_ctor(0, 2, 0); -} else { - x_363 = x_361; -} -lean_ctor_set(x_363, 0, x_359); -lean_ctor_set(x_363, 1, x_362); -x_364 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_364, 0, x_358); -lean_ctor_set(x_364, 1, x_363); -return x_364; -} -} -else -{ -lean_object* x_365; lean_object* x_366; -lean_dec(x_315); -x_365 = lean_ctor_get(x_344, 0); -lean_inc(x_365); -lean_dec(x_344); -x_366 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_300); -return x_366; -} -} -} -} -block_311: -{ -lean_object* x_302; lean_object* x_303; uint8_t x_304; -lean_dec(x_301); -x_302 = lean_unsigned_to_nat(0u); -x_303 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_302, x_2, x_300); -x_304 = !lean_is_exclusive(x_303); -if (x_304 == 0) -{ -lean_object* x_305; lean_object* x_306; -x_305 = lean_ctor_get(x_303, 0); -x_306 = l_Lean_mkAppRev(x_299, x_305); -lean_dec(x_305); -lean_ctor_set(x_303, 0, x_306); -return x_303; -} -else -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_307 = lean_ctor_get(x_303, 0); -x_308 = lean_ctor_get(x_303, 1); -lean_inc(x_308); -lean_inc(x_307); -lean_dec(x_303); -x_309 = l_Lean_mkAppRev(x_299, x_307); -lean_dec(x_307); -x_310 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_310, 0, x_309); -lean_ctor_set(x_310, 1, x_308); -return x_310; +lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_190 = lean_ctor_get(x_186, 0); +x_191 = lean_ctor_get(x_186, 1); +lean_inc(x_191); +lean_inc(x_190); +lean_dec(x_186); +x_192 = l_Lean_mkAppRev(x_182, x_190); +lean_dec(x_190); +x_193 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_193, 0, x_192); +lean_ctor_set(x_193, 1, x_191); +return x_193; } } } } case 4: { -uint8_t x_396; lean_object* x_397; lean_object* x_398; uint8_t x_466; -x_396 = l_Lean_Expr_isMVar(x_1); -x_466 = lean_expr_has_expr_mvar(x_1); +uint8_t x_240; lean_object* x_241; lean_object* x_242; uint8_t x_285; +x_240 = l_Lean_Expr_isMVar(x_1); +x_285 = l_Lean_Expr_hasMVar(x_1); +if (x_285 == 0) +{ +x_241 = x_1; +x_242 = x_3; +goto block_284; +} +else +{ +lean_object* x_286; lean_object* x_287; +x_286 = lean_ctor_get(x_3, 1); +lean_inc(x_286); +x_287 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_286, x_1); +lean_dec(x_286); +if (lean_obj_tag(x_287) == 0) +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; +lean_inc(x_1); +x_288 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_289 = lean_ctor_get(x_288, 1); +lean_inc(x_289); +x_290 = lean_ctor_get(x_288, 0); +lean_inc(x_290); +lean_dec(x_288); +x_291 = !lean_is_exclusive(x_289); +if (x_291 == 0) +{ +lean_object* x_292; lean_object* x_293; +x_292 = lean_ctor_get(x_289, 1); +lean_inc(x_290); +x_293 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_292, x_1, x_290); +lean_ctor_set(x_289, 1, x_293); +x_241 = x_290; +x_242 = x_289; +goto block_284; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_294 = lean_ctor_get(x_289, 0); +x_295 = lean_ctor_get(x_289, 1); +lean_inc(x_295); +lean_inc(x_294); +lean_dec(x_289); +lean_inc(x_290); +x_296 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_295, x_1, x_290); +x_297 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_297, 0, x_294); +lean_ctor_set(x_297, 1, x_296); +x_241 = x_290; +x_242 = x_297; +goto block_284; +} +} +else +{ +lean_object* x_298; +lean_dec(x_1); +x_298 = lean_ctor_get(x_287, 0); +lean_inc(x_298); +lean_dec(x_287); +x_241 = x_298; +x_242 = x_3; +goto block_284; +} +} +block_284: +{ +lean_object* x_243; +if (x_240 == 0) +{ +lean_object* x_254; +x_254 = lean_box(0); +x_243 = x_254; +goto block_253; +} +else +{ +uint8_t x_255; +x_255 = l_Lean_Expr_isLambda(x_241); +if (x_255 == 0) +{ +lean_object* x_256; +x_256 = lean_box(0); +x_243 = x_256; +goto block_253; +} +else +{ +lean_object* x_257; uint8_t x_258; +x_257 = l_Lean_Expr_betaRev(x_241, x_2); +lean_dec(x_241); +x_258 = l_Lean_Expr_hasMVar(x_257); +if (x_258 == 0) +{ +lean_object* x_259; +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_242); +return x_259; +} +else +{ +lean_object* x_260; lean_object* x_261; +x_260 = lean_ctor_get(x_242, 1); +lean_inc(x_260); +x_261 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_260, x_257); +lean_dec(x_260); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; uint8_t x_263; +lean_inc(x_257); +x_262 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_257, x_242); +x_263 = !lean_is_exclusive(x_262); +if (x_263 == 0) +{ +lean_object* x_264; uint8_t x_265; +x_264 = lean_ctor_get(x_262, 1); +x_265 = !lean_is_exclusive(x_264); +if (x_265 == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_262, 0); +x_267 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +x_268 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_267, x_257, x_266); +lean_ctor_set(x_264, 1, x_268); +return x_262; +} +else +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_269 = lean_ctor_get(x_262, 0); +x_270 = lean_ctor_get(x_264, 0); +x_271 = lean_ctor_get(x_264, 1); +lean_inc(x_271); +lean_inc(x_270); +lean_dec(x_264); +lean_inc(x_269); +x_272 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_271, x_257, x_269); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_270); +lean_ctor_set(x_273, 1, x_272); +lean_ctor_set(x_262, 1, x_273); +return x_262; +} +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_274 = lean_ctor_get(x_262, 1); +x_275 = lean_ctor_get(x_262, 0); +lean_inc(x_274); +lean_inc(x_275); +lean_dec(x_262); +x_276 = lean_ctor_get(x_274, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_274, 1); +lean_inc(x_277); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_278 = x_274; +} else { + lean_dec_ref(x_274); + x_278 = lean_box(0); +} +lean_inc(x_275); +x_279 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_277, x_257, x_275); +if (lean_is_scalar(x_278)) { + x_280 = lean_alloc_ctor(0, 2, 0); +} else { + x_280 = x_278; +} +lean_ctor_set(x_280, 0, x_276); +lean_ctor_set(x_280, 1, x_279); +x_281 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_281, 0, x_275); +lean_ctor_set(x_281, 1, x_280); +return x_281; +} +} +else +{ +lean_object* x_282; lean_object* x_283; +lean_dec(x_257); +x_282 = lean_ctor_get(x_261, 0); +lean_inc(x_282); +lean_dec(x_261); +x_283 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_283, 0, x_282); +lean_ctor_set(x_283, 1, x_242); +return x_283; +} +} +} +} +block_253: +{ +lean_object* x_244; lean_object* x_245; uint8_t x_246; +lean_dec(x_243); +x_244 = lean_unsigned_to_nat(0u); +x_245 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_244, x_2, x_242); +x_246 = !lean_is_exclusive(x_245); +if (x_246 == 0) +{ +lean_object* x_247; lean_object* x_248; +x_247 = lean_ctor_get(x_245, 0); +x_248 = l_Lean_mkAppRev(x_241, x_247); +lean_dec(x_247); +lean_ctor_set(x_245, 0, x_248); +return x_245; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_249 = lean_ctor_get(x_245, 0); +x_250 = lean_ctor_get(x_245, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_245); +x_251 = l_Lean_mkAppRev(x_241, x_249); +lean_dec(x_249); +x_252 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +return x_252; +} +} +} +} +case 5: +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_299 = lean_ctor_get(x_1, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_1, 1); +lean_inc(x_300); +lean_dec(x_1); +x_301 = lean_array_push(x_2, x_300); +x_1 = x_299; +x_2 = x_301; +goto _start; +} +case 6: +{ +uint8_t x_303; lean_object* x_304; lean_object* x_305; uint8_t x_348; +x_303 = l_Lean_Expr_isMVar(x_1); +x_348 = l_Lean_Expr_hasMVar(x_1); +if (x_348 == 0) +{ +x_304 = x_1; +x_305 = x_3; +goto block_347; +} +else +{ +lean_object* x_349; lean_object* x_350; +x_349 = lean_ctor_get(x_3, 1); +lean_inc(x_349); +x_350 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_349, x_1); +lean_dec(x_349); +if (lean_obj_tag(x_350) == 0) +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; +lean_inc(x_1); +x_351 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_352 = lean_ctor_get(x_351, 1); +lean_inc(x_352); +x_353 = lean_ctor_get(x_351, 0); +lean_inc(x_353); +lean_dec(x_351); +x_354 = !lean_is_exclusive(x_352); +if (x_354 == 0) +{ +lean_object* x_355; lean_object* x_356; +x_355 = lean_ctor_get(x_352, 1); +lean_inc(x_353); +x_356 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_355, x_1, x_353); +lean_ctor_set(x_352, 1, x_356); +x_304 = x_353; +x_305 = x_352; +goto block_347; +} +else +{ +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_357 = lean_ctor_get(x_352, 0); +x_358 = lean_ctor_get(x_352, 1); +lean_inc(x_358); +lean_inc(x_357); +lean_dec(x_352); +lean_inc(x_353); +x_359 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_358, x_1, x_353); +x_360 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_360, 0, x_357); +lean_ctor_set(x_360, 1, x_359); +x_304 = x_353; +x_305 = x_360; +goto block_347; +} +} +else +{ +lean_object* x_361; +lean_dec(x_1); +x_361 = lean_ctor_get(x_350, 0); +lean_inc(x_361); +lean_dec(x_350); +x_304 = x_361; +x_305 = x_3; +goto block_347; +} +} +block_347: +{ +lean_object* x_306; +if (x_303 == 0) +{ +lean_object* x_317; +x_317 = lean_box(0); +x_306 = x_317; +goto block_316; +} +else +{ +uint8_t x_318; +x_318 = l_Lean_Expr_isLambda(x_304); +if (x_318 == 0) +{ +lean_object* x_319; +x_319 = lean_box(0); +x_306 = x_319; +goto block_316; +} +else +{ +lean_object* x_320; uint8_t x_321; +x_320 = l_Lean_Expr_betaRev(x_304, x_2); +lean_dec(x_304); +x_321 = l_Lean_Expr_hasMVar(x_320); +if (x_321 == 0) +{ +lean_object* x_322; +x_322 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_305); +return x_322; +} +else +{ +lean_object* x_323; lean_object* x_324; +x_323 = lean_ctor_get(x_305, 1); +lean_inc(x_323); +x_324 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_323, x_320); +lean_dec(x_323); +if (lean_obj_tag(x_324) == 0) +{ +lean_object* x_325; uint8_t x_326; +lean_inc(x_320); +x_325 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_320, x_305); +x_326 = !lean_is_exclusive(x_325); +if (x_326 == 0) +{ +lean_object* x_327; uint8_t x_328; +x_327 = lean_ctor_get(x_325, 1); +x_328 = !lean_is_exclusive(x_327); +if (x_328 == 0) +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_329 = lean_ctor_get(x_325, 0); +x_330 = lean_ctor_get(x_327, 1); +lean_inc(x_329); +x_331 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_330, x_320, x_329); +lean_ctor_set(x_327, 1, x_331); +return x_325; +} +else +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +x_332 = lean_ctor_get(x_325, 0); +x_333 = lean_ctor_get(x_327, 0); +x_334 = lean_ctor_get(x_327, 1); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_327); +lean_inc(x_332); +x_335 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_334, x_320, x_332); +x_336 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_336, 0, x_333); +lean_ctor_set(x_336, 1, x_335); +lean_ctor_set(x_325, 1, x_336); +return x_325; +} +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; +x_337 = lean_ctor_get(x_325, 1); +x_338 = lean_ctor_get(x_325, 0); +lean_inc(x_337); +lean_inc(x_338); +lean_dec(x_325); +x_339 = lean_ctor_get(x_337, 0); +lean_inc(x_339); +x_340 = lean_ctor_get(x_337, 1); +lean_inc(x_340); +if (lean_is_exclusive(x_337)) { + lean_ctor_release(x_337, 0); + lean_ctor_release(x_337, 1); + x_341 = x_337; +} else { + lean_dec_ref(x_337); + x_341 = lean_box(0); +} +lean_inc(x_338); +x_342 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_340, x_320, x_338); +if (lean_is_scalar(x_341)) { + x_343 = lean_alloc_ctor(0, 2, 0); +} else { + x_343 = x_341; +} +lean_ctor_set(x_343, 0, x_339); +lean_ctor_set(x_343, 1, x_342); +x_344 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_344, 0, x_338); +lean_ctor_set(x_344, 1, x_343); +return x_344; +} +} +else +{ +lean_object* x_345; lean_object* x_346; +lean_dec(x_320); +x_345 = lean_ctor_get(x_324, 0); +lean_inc(x_345); +lean_dec(x_324); +x_346 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_305); +return x_346; +} +} +} +} +block_316: +{ +lean_object* x_307; lean_object* x_308; uint8_t x_309; +lean_dec(x_306); +x_307 = lean_unsigned_to_nat(0u); +x_308 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_307, x_2, x_305); +x_309 = !lean_is_exclusive(x_308); +if (x_309 == 0) +{ +lean_object* x_310; lean_object* x_311; +x_310 = lean_ctor_get(x_308, 0); +x_311 = l_Lean_mkAppRev(x_304, x_310); +lean_dec(x_310); +lean_ctor_set(x_308, 0, x_311); +return x_308; +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_312 = lean_ctor_get(x_308, 0); +x_313 = lean_ctor_get(x_308, 1); +lean_inc(x_313); +lean_inc(x_312); +lean_dec(x_308); +x_314 = l_Lean_mkAppRev(x_304, x_312); +lean_dec(x_312); +x_315 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_313); +return x_315; +} +} +} +} +case 7: +{ +uint8_t x_362; lean_object* x_363; lean_object* x_364; uint8_t x_407; +x_362 = l_Lean_Expr_isMVar(x_1); +x_407 = l_Lean_Expr_hasMVar(x_1); +if (x_407 == 0) +{ +x_363 = x_1; +x_364 = x_3; +goto block_406; +} +else +{ +lean_object* x_408; lean_object* x_409; +x_408 = lean_ctor_get(x_3, 1); +lean_inc(x_408); +x_409 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_408, x_1); +lean_dec(x_408); +if (lean_obj_tag(x_409) == 0) +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; uint8_t x_413; +lean_inc(x_1); +x_410 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_411 = lean_ctor_get(x_410, 1); +lean_inc(x_411); +x_412 = lean_ctor_get(x_410, 0); +lean_inc(x_412); +lean_dec(x_410); +x_413 = !lean_is_exclusive(x_411); +if (x_413 == 0) +{ +lean_object* x_414; lean_object* x_415; +x_414 = lean_ctor_get(x_411, 1); +lean_inc(x_412); +x_415 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_414, x_1, x_412); +lean_ctor_set(x_411, 1, x_415); +x_363 = x_412; +x_364 = x_411; +goto block_406; +} +else +{ +lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; +x_416 = lean_ctor_get(x_411, 0); +x_417 = lean_ctor_get(x_411, 1); +lean_inc(x_417); +lean_inc(x_416); +lean_dec(x_411); +lean_inc(x_412); +x_418 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_417, x_1, x_412); +x_419 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_419, 0, x_416); +lean_ctor_set(x_419, 1, x_418); +x_363 = x_412; +x_364 = x_419; +goto block_406; +} +} +else +{ +lean_object* x_420; +lean_dec(x_1); +x_420 = lean_ctor_get(x_409, 0); +lean_inc(x_420); +lean_dec(x_409); +x_363 = x_420; +x_364 = x_3; +goto block_406; +} +} +block_406: +{ +lean_object* x_365; +if (x_362 == 0) +{ +lean_object* x_376; +x_376 = lean_box(0); +x_365 = x_376; +goto block_375; +} +else +{ +uint8_t x_377; +x_377 = l_Lean_Expr_isLambda(x_363); +if (x_377 == 0) +{ +lean_object* x_378; +x_378 = lean_box(0); +x_365 = x_378; +goto block_375; +} +else +{ +lean_object* x_379; uint8_t x_380; +x_379 = l_Lean_Expr_betaRev(x_363, x_2); +lean_dec(x_363); +x_380 = l_Lean_Expr_hasMVar(x_379); +if (x_380 == 0) +{ +lean_object* x_381; +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_379); +lean_ctor_set(x_381, 1, x_364); +return x_381; +} +else +{ +lean_object* x_382; lean_object* x_383; +x_382 = lean_ctor_get(x_364, 1); +lean_inc(x_382); +x_383 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_382, x_379); +lean_dec(x_382); +if (lean_obj_tag(x_383) == 0) +{ +lean_object* x_384; uint8_t x_385; +lean_inc(x_379); +x_384 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_379, x_364); +x_385 = !lean_is_exclusive(x_384); +if (x_385 == 0) +{ +lean_object* x_386; uint8_t x_387; +x_386 = lean_ctor_get(x_384, 1); +x_387 = !lean_is_exclusive(x_386); +if (x_387 == 0) +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; +x_388 = lean_ctor_get(x_384, 0); +x_389 = lean_ctor_get(x_386, 1); +lean_inc(x_388); +x_390 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_389, x_379, x_388); +lean_ctor_set(x_386, 1, x_390); +return x_384; +} +else +{ +lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_391 = lean_ctor_get(x_384, 0); +x_392 = lean_ctor_get(x_386, 0); +x_393 = lean_ctor_get(x_386, 1); +lean_inc(x_393); +lean_inc(x_392); +lean_dec(x_386); +lean_inc(x_391); +x_394 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_393, x_379, x_391); +x_395 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_395, 0, x_392); +lean_ctor_set(x_395, 1, x_394); +lean_ctor_set(x_384, 1, x_395); +return x_384; +} +} +else +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_396 = lean_ctor_get(x_384, 1); +x_397 = lean_ctor_get(x_384, 0); +lean_inc(x_396); +lean_inc(x_397); +lean_dec(x_384); +x_398 = lean_ctor_get(x_396, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_396, 1); +lean_inc(x_399); +if (lean_is_exclusive(x_396)) { + lean_ctor_release(x_396, 0); + lean_ctor_release(x_396, 1); + x_400 = x_396; +} else { + lean_dec_ref(x_396); + x_400 = lean_box(0); +} +lean_inc(x_397); +x_401 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_399, x_379, x_397); +if (lean_is_scalar(x_400)) { + x_402 = lean_alloc_ctor(0, 2, 0); +} else { + x_402 = x_400; +} +lean_ctor_set(x_402, 0, x_398); +lean_ctor_set(x_402, 1, x_401); +x_403 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_403, 0, x_397); +lean_ctor_set(x_403, 1, x_402); +return x_403; +} +} +else +{ +lean_object* x_404; lean_object* x_405; +lean_dec(x_379); +x_404 = lean_ctor_get(x_383, 0); +lean_inc(x_404); +lean_dec(x_383); +x_405 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_405, 0, x_404); +lean_ctor_set(x_405, 1, x_364); +return x_405; +} +} +} +} +block_375: +{ +lean_object* x_366; lean_object* x_367; uint8_t x_368; +lean_dec(x_365); +x_366 = lean_unsigned_to_nat(0u); +x_367 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_366, x_2, x_364); +x_368 = !lean_is_exclusive(x_367); +if (x_368 == 0) +{ +lean_object* x_369; lean_object* x_370; +x_369 = lean_ctor_get(x_367, 0); +x_370 = l_Lean_mkAppRev(x_363, x_369); +lean_dec(x_369); +lean_ctor_set(x_367, 0, x_370); +return x_367; +} +else +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_371 = lean_ctor_get(x_367, 0); +x_372 = lean_ctor_get(x_367, 1); +lean_inc(x_372); +lean_inc(x_371); +lean_dec(x_367); +x_373 = l_Lean_mkAppRev(x_363, x_371); +lean_dec(x_371); +x_374 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_372); +return x_374; +} +} +} +} +case 8: +{ +uint8_t x_421; lean_object* x_422; lean_object* x_423; uint8_t x_466; +x_421 = l_Lean_Expr_isMVar(x_1); +x_466 = l_Lean_Expr_hasMVar(x_1); if (x_466 == 0) { -uint8_t x_467; -x_467 = lean_expr_has_level_mvar(x_1); -if (x_467 == 0) -{ -x_397 = x_1; -x_398 = x_3; +x_422 = x_1; +x_423 = x_3; goto block_465; } else { -lean_object* x_468; lean_object* x_469; -x_468 = lean_ctor_get(x_3, 1); -lean_inc(x_468); -x_469 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_468, x_1); -lean_dec(x_468); -if (lean_obj_tag(x_469) == 0) +lean_object* x_467; lean_object* x_468; +x_467 = lean_ctor_get(x_3, 1); +lean_inc(x_467); +x_468 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_467, x_1); +lean_dec(x_467); +if (lean_obj_tag(x_468) == 0) { -lean_object* x_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; +lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; lean_inc(x_1); -x_470 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_471 = lean_ctor_get(x_470, 1); +x_469 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_470 = lean_ctor_get(x_469, 1); +lean_inc(x_470); +x_471 = lean_ctor_get(x_469, 0); lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 0); -lean_inc(x_472); -lean_dec(x_470); -x_473 = !lean_is_exclusive(x_471); -if (x_473 == 0) -{ -lean_object* x_474; lean_object* x_475; -x_474 = lean_ctor_get(x_471, 1); -lean_inc(x_472); -x_475 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_474, x_1, x_472); -lean_ctor_set(x_471, 1, x_475); -x_397 = x_472; -x_398 = x_471; -goto block_465; -} -else -{ -lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_476 = lean_ctor_get(x_471, 0); -x_477 = lean_ctor_get(x_471, 1); -lean_inc(x_477); -lean_inc(x_476); -lean_dec(x_471); -lean_inc(x_472); -x_478 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_477, x_1, x_472); -x_479 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_479, 0, x_476); -lean_ctor_set(x_479, 1, x_478); -x_397 = x_472; -x_398 = x_479; -goto block_465; -} -} -else -{ -lean_object* x_480; -lean_dec(x_1); -x_480 = lean_ctor_get(x_469, 0); -lean_inc(x_480); lean_dec(x_469); -x_397 = x_480; -x_398 = x_3; -goto block_465; -} -} -} -else +x_472 = !lean_is_exclusive(x_470); +if (x_472 == 0) { -lean_object* x_481; lean_object* x_482; -x_481 = lean_ctor_get(x_3, 1); -lean_inc(x_481); -x_482 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_481, x_1); -lean_dec(x_481); -if (lean_obj_tag(x_482) == 0) -{ -lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; -lean_inc(x_1); -x_483 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_484 = lean_ctor_get(x_483, 1); -lean_inc(x_484); -x_485 = lean_ctor_get(x_483, 0); -lean_inc(x_485); -lean_dec(x_483); -x_486 = !lean_is_exclusive(x_484); -if (x_486 == 0) -{ -lean_object* x_487; lean_object* x_488; -x_487 = lean_ctor_get(x_484, 1); -lean_inc(x_485); -x_488 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_487, x_1, x_485); -lean_ctor_set(x_484, 1, x_488); -x_397 = x_485; -x_398 = x_484; +lean_object* x_473; lean_object* x_474; +x_473 = lean_ctor_get(x_470, 1); +lean_inc(x_471); +x_474 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_473, x_1, x_471); +lean_ctor_set(x_470, 1, x_474); +x_422 = x_471; +x_423 = x_470; goto block_465; } else { -lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_489 = lean_ctor_get(x_484, 0); -x_490 = lean_ctor_get(x_484, 1); -lean_inc(x_490); -lean_inc(x_489); -lean_dec(x_484); -lean_inc(x_485); -x_491 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_490, x_1, x_485); -x_492 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_492, 0, x_489); -lean_ctor_set(x_492, 1, x_491); -x_397 = x_485; -x_398 = x_492; +lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; +x_475 = lean_ctor_get(x_470, 0); +x_476 = lean_ctor_get(x_470, 1); +lean_inc(x_476); +lean_inc(x_475); +lean_dec(x_470); +lean_inc(x_471); +x_477 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_476, x_1, x_471); +x_478 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_478, 0, x_475); +lean_ctor_set(x_478, 1, x_477); +x_422 = x_471; +x_423 = x_478; goto block_465; } } else { -lean_object* x_493; +lean_object* x_479; lean_dec(x_1); -x_493 = lean_ctor_get(x_482, 0); -lean_inc(x_493); -lean_dec(x_482); -x_397 = x_493; -x_398 = x_3; +x_479 = lean_ctor_get(x_468, 0); +lean_inc(x_479); +lean_dec(x_468); +x_422 = x_479; +x_423 = x_3; goto block_465; } } block_465: { -lean_object* x_399; -if (x_396 == 0) +lean_object* x_424; +if (x_421 == 0) { -lean_object* x_410; -x_410 = lean_box(0); -x_399 = x_410; -goto block_409; +lean_object* x_435; +x_435 = lean_box(0); +x_424 = x_435; +goto block_434; } else { -uint8_t x_411; -x_411 = l_Lean_Expr_isLambda(x_397); -if (x_411 == 0) +uint8_t x_436; +x_436 = l_Lean_Expr_isLambda(x_422); +if (x_436 == 0) { -lean_object* x_412; -x_412 = lean_box(0); -x_399 = x_412; -goto block_409; +lean_object* x_437; +x_437 = lean_box(0); +x_424 = x_437; +goto block_434; } else { -lean_object* x_413; uint8_t x_414; -x_413 = l_Lean_Expr_betaRev(x_397, x_2); -lean_dec(x_397); -x_414 = lean_expr_has_expr_mvar(x_413); -if (x_414 == 0) +lean_object* x_438; uint8_t x_439; +x_438 = l_Lean_Expr_betaRev(x_422, x_2); +lean_dec(x_422); +x_439 = l_Lean_Expr_hasMVar(x_438); +if (x_439 == 0) { -uint8_t x_415; -x_415 = lean_expr_has_level_mvar(x_413); -if (x_415 == 0) -{ -lean_object* x_416; -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_413); -lean_ctor_set(x_416, 1, x_398); -return x_416; -} -else -{ -lean_object* x_417; lean_object* x_418; -x_417 = lean_ctor_get(x_398, 1); -lean_inc(x_417); -x_418 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_417, x_413); -lean_dec(x_417); -if (lean_obj_tag(x_418) == 0) -{ -lean_object* x_419; uint8_t x_420; -lean_inc(x_413); -x_419 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_413, x_398); -x_420 = !lean_is_exclusive(x_419); -if (x_420 == 0) -{ -lean_object* x_421; uint8_t x_422; -x_421 = lean_ctor_get(x_419, 1); -x_422 = !lean_is_exclusive(x_421); -if (x_422 == 0) -{ -lean_object* x_423; lean_object* x_424; lean_object* x_425; -x_423 = lean_ctor_get(x_419, 0); -x_424 = lean_ctor_get(x_421, 1); -lean_inc(x_423); -x_425 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_424, x_413, x_423); -lean_ctor_set(x_421, 1, x_425); -return x_419; -} -else -{ -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; -x_426 = lean_ctor_get(x_419, 0); -x_427 = lean_ctor_get(x_421, 0); -x_428 = lean_ctor_get(x_421, 1); -lean_inc(x_428); -lean_inc(x_427); -lean_dec(x_421); -lean_inc(x_426); -x_429 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_428, x_413, x_426); -x_430 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_430, 0, x_427); -lean_ctor_set(x_430, 1, x_429); -lean_ctor_set(x_419, 1, x_430); -return x_419; -} -} -else -{ -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_431 = lean_ctor_get(x_419, 1); -x_432 = lean_ctor_get(x_419, 0); -lean_inc(x_431); -lean_inc(x_432); -lean_dec(x_419); -x_433 = lean_ctor_get(x_431, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_431, 1); -lean_inc(x_434); -if (lean_is_exclusive(x_431)) { - lean_ctor_release(x_431, 0); - lean_ctor_release(x_431, 1); - x_435 = x_431; -} else { - lean_dec_ref(x_431); - x_435 = lean_box(0); -} -lean_inc(x_432); -x_436 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_434, x_413, x_432); -if (lean_is_scalar(x_435)) { - x_437 = lean_alloc_ctor(0, 2, 0); -} else { - x_437 = x_435; -} -lean_ctor_set(x_437, 0, x_433); -lean_ctor_set(x_437, 1, x_436); -x_438 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_438, 0, x_432); -lean_ctor_set(x_438, 1, x_437); -return x_438; -} -} -else -{ -lean_object* x_439; lean_object* x_440; -lean_dec(x_413); -x_439 = lean_ctor_get(x_418, 0); -lean_inc(x_439); -lean_dec(x_418); +lean_object* x_440; x_440 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_440, 0, x_439); -lean_ctor_set(x_440, 1, x_398); +lean_ctor_set(x_440, 0, x_438); +lean_ctor_set(x_440, 1, x_423); return x_440; } -} -} else { lean_object* x_441; lean_object* x_442; -x_441 = lean_ctor_get(x_398, 1); +x_441 = lean_ctor_get(x_423, 1); lean_inc(x_441); -x_442 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_441, x_413); +x_442 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_441, x_438); lean_dec(x_441); if (lean_obj_tag(x_442) == 0) { lean_object* x_443; uint8_t x_444; -lean_inc(x_413); -x_443 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_413, x_398); +lean_inc(x_438); +x_443 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_438, x_423); x_444 = !lean_is_exclusive(x_443); if (x_444 == 0) { @@ -11375,7 +10635,7 @@ lean_object* x_447; lean_object* x_448; lean_object* x_449; x_447 = lean_ctor_get(x_443, 0); x_448 = lean_ctor_get(x_445, 1); lean_inc(x_447); -x_449 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_448, x_413, x_447); +x_449 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_448, x_438, x_447); lean_ctor_set(x_445, 1, x_449); return x_443; } @@ -11389,7 +10649,7 @@ lean_inc(x_452); lean_inc(x_451); lean_dec(x_445); lean_inc(x_450); -x_453 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_452, x_413, x_450); +x_453 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_452, x_438, x_450); x_454 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_454, 0, x_451); lean_ctor_set(x_454, 1, x_453); @@ -11418,7 +10678,7 @@ if (lean_is_exclusive(x_455)) { x_459 = lean_box(0); } lean_inc(x_456); -x_460 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_458, x_413, x_456); +x_460 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_458, x_438, x_456); if (lean_is_scalar(x_459)) { x_461 = lean_alloc_ctor(0, 2, 0); } else { @@ -11435,2449 +10695,988 @@ return x_462; else { lean_object* x_463; lean_object* x_464; -lean_dec(x_413); +lean_dec(x_438); x_463 = lean_ctor_get(x_442, 0); lean_inc(x_463); lean_dec(x_442); x_464 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_464, 0, x_463); -lean_ctor_set(x_464, 1, x_398); +lean_ctor_set(x_464, 1, x_423); return x_464; } } } } -block_409: +block_434: { -lean_object* x_400; lean_object* x_401; uint8_t x_402; -lean_dec(x_399); -x_400 = lean_unsigned_to_nat(0u); -x_401 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_400, x_2, x_398); -x_402 = !lean_is_exclusive(x_401); -if (x_402 == 0) +lean_object* x_425; lean_object* x_426; uint8_t x_427; +lean_dec(x_424); +x_425 = lean_unsigned_to_nat(0u); +x_426 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_425, x_2, x_423); +x_427 = !lean_is_exclusive(x_426); +if (x_427 == 0) { -lean_object* x_403; lean_object* x_404; -x_403 = lean_ctor_get(x_401, 0); -x_404 = l_Lean_mkAppRev(x_397, x_403); -lean_dec(x_403); -lean_ctor_set(x_401, 0, x_404); -return x_401; +lean_object* x_428; lean_object* x_429; +x_428 = lean_ctor_get(x_426, 0); +x_429 = l_Lean_mkAppRev(x_422, x_428); +lean_dec(x_428); +lean_ctor_set(x_426, 0, x_429); +return x_426; } else { -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -x_405 = lean_ctor_get(x_401, 0); -x_406 = lean_ctor_get(x_401, 1); -lean_inc(x_406); -lean_inc(x_405); -lean_dec(x_401); -x_407 = l_Lean_mkAppRev(x_397, x_405); -lean_dec(x_405); -x_408 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_408, 0, x_407); -lean_ctor_set(x_408, 1, x_406); -return x_408; -} -} -} -} -case 5: -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; -x_494 = lean_ctor_get(x_1, 0); -lean_inc(x_494); -x_495 = lean_ctor_get(x_1, 1); -lean_inc(x_495); -lean_dec(x_1); -x_496 = lean_array_push(x_2, x_495); -x_1 = x_494; -x_2 = x_496; -goto _start; -} -case 6: -{ -uint8_t x_498; lean_object* x_499; lean_object* x_500; uint8_t x_568; -x_498 = l_Lean_Expr_isMVar(x_1); -x_568 = lean_expr_has_expr_mvar(x_1); -if (x_568 == 0) -{ -uint8_t x_569; -x_569 = lean_expr_has_level_mvar(x_1); -if (x_569 == 0) -{ -x_499 = x_1; -x_500 = x_3; -goto block_567; -} -else -{ -lean_object* x_570; lean_object* x_571; -x_570 = lean_ctor_get(x_3, 1); -lean_inc(x_570); -x_571 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_570, x_1); -lean_dec(x_570); -if (lean_obj_tag(x_571) == 0) -{ -lean_object* x_572; lean_object* x_573; lean_object* x_574; uint8_t x_575; -lean_inc(x_1); -x_572 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_573 = lean_ctor_get(x_572, 1); -lean_inc(x_573); -x_574 = lean_ctor_get(x_572, 0); -lean_inc(x_574); -lean_dec(x_572); -x_575 = !lean_is_exclusive(x_573); -if (x_575 == 0) -{ -lean_object* x_576; lean_object* x_577; -x_576 = lean_ctor_get(x_573, 1); -lean_inc(x_574); -x_577 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_576, x_1, x_574); -lean_ctor_set(x_573, 1, x_577); -x_499 = x_574; -x_500 = x_573; -goto block_567; -} -else -{ -lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; -x_578 = lean_ctor_get(x_573, 0); -x_579 = lean_ctor_get(x_573, 1); -lean_inc(x_579); -lean_inc(x_578); -lean_dec(x_573); -lean_inc(x_574); -x_580 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_579, x_1, x_574); -x_581 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_581, 0, x_578); -lean_ctor_set(x_581, 1, x_580); -x_499 = x_574; -x_500 = x_581; -goto block_567; -} -} -else -{ -lean_object* x_582; -lean_dec(x_1); -x_582 = lean_ctor_get(x_571, 0); -lean_inc(x_582); -lean_dec(x_571); -x_499 = x_582; -x_500 = x_3; -goto block_567; -} -} -} -else -{ -lean_object* x_583; lean_object* x_584; -x_583 = lean_ctor_get(x_3, 1); -lean_inc(x_583); -x_584 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_583, x_1); -lean_dec(x_583); -if (lean_obj_tag(x_584) == 0) -{ -lean_object* x_585; lean_object* x_586; lean_object* x_587; uint8_t x_588; -lean_inc(x_1); -x_585 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_586 = lean_ctor_get(x_585, 1); -lean_inc(x_586); -x_587 = lean_ctor_get(x_585, 0); -lean_inc(x_587); -lean_dec(x_585); -x_588 = !lean_is_exclusive(x_586); -if (x_588 == 0) -{ -lean_object* x_589; lean_object* x_590; -x_589 = lean_ctor_get(x_586, 1); -lean_inc(x_587); -x_590 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_589, x_1, x_587); -lean_ctor_set(x_586, 1, x_590); -x_499 = x_587; -x_500 = x_586; -goto block_567; -} -else -{ -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; -x_591 = lean_ctor_get(x_586, 0); -x_592 = lean_ctor_get(x_586, 1); -lean_inc(x_592); -lean_inc(x_591); -lean_dec(x_586); -lean_inc(x_587); -x_593 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_592, x_1, x_587); -x_594 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_594, 0, x_591); -lean_ctor_set(x_594, 1, x_593); -x_499 = x_587; -x_500 = x_594; -goto block_567; -} -} -else -{ -lean_object* x_595; -lean_dec(x_1); -x_595 = lean_ctor_get(x_584, 0); -lean_inc(x_595); -lean_dec(x_584); -x_499 = x_595; -x_500 = x_3; -goto block_567; -} -} -block_567: -{ -lean_object* x_501; -if (x_498 == 0) -{ -lean_object* x_512; -x_512 = lean_box(0); -x_501 = x_512; -goto block_511; -} -else -{ -uint8_t x_513; -x_513 = l_Lean_Expr_isLambda(x_499); -if (x_513 == 0) -{ -lean_object* x_514; -x_514 = lean_box(0); -x_501 = x_514; -goto block_511; -} -else -{ -lean_object* x_515; uint8_t x_516; -x_515 = l_Lean_Expr_betaRev(x_499, x_2); -lean_dec(x_499); -x_516 = lean_expr_has_expr_mvar(x_515); -if (x_516 == 0) -{ -uint8_t x_517; -x_517 = lean_expr_has_level_mvar(x_515); -if (x_517 == 0) -{ -lean_object* x_518; -x_518 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_518, 0, x_515); -lean_ctor_set(x_518, 1, x_500); -return x_518; -} -else -{ -lean_object* x_519; lean_object* x_520; -x_519 = lean_ctor_get(x_500, 1); -lean_inc(x_519); -x_520 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_519, x_515); -lean_dec(x_519); -if (lean_obj_tag(x_520) == 0) -{ -lean_object* x_521; uint8_t x_522; -lean_inc(x_515); -x_521 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_515, x_500); -x_522 = !lean_is_exclusive(x_521); -if (x_522 == 0) -{ -lean_object* x_523; uint8_t x_524; -x_523 = lean_ctor_get(x_521, 1); -x_524 = !lean_is_exclusive(x_523); -if (x_524 == 0) -{ -lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_525 = lean_ctor_get(x_521, 0); -x_526 = lean_ctor_get(x_523, 1); -lean_inc(x_525); -x_527 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_526, x_515, x_525); -lean_ctor_set(x_523, 1, x_527); -return x_521; -} -else -{ -lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; -x_528 = lean_ctor_get(x_521, 0); -x_529 = lean_ctor_get(x_523, 0); -x_530 = lean_ctor_get(x_523, 1); -lean_inc(x_530); -lean_inc(x_529); -lean_dec(x_523); -lean_inc(x_528); -x_531 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_530, x_515, x_528); -x_532 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_532, 0, x_529); -lean_ctor_set(x_532, 1, x_531); -lean_ctor_set(x_521, 1, x_532); -return x_521; -} -} -else -{ -lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; -x_533 = lean_ctor_get(x_521, 1); -x_534 = lean_ctor_get(x_521, 0); -lean_inc(x_533); -lean_inc(x_534); -lean_dec(x_521); -x_535 = lean_ctor_get(x_533, 0); -lean_inc(x_535); -x_536 = lean_ctor_get(x_533, 1); -lean_inc(x_536); -if (lean_is_exclusive(x_533)) { - lean_ctor_release(x_533, 0); - lean_ctor_release(x_533, 1); - x_537 = x_533; -} else { - lean_dec_ref(x_533); - x_537 = lean_box(0); -} -lean_inc(x_534); -x_538 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_536, x_515, x_534); -if (lean_is_scalar(x_537)) { - x_539 = lean_alloc_ctor(0, 2, 0); -} else { - x_539 = x_537; -} -lean_ctor_set(x_539, 0, x_535); -lean_ctor_set(x_539, 1, x_538); -x_540 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_540, 0, x_534); -lean_ctor_set(x_540, 1, x_539); -return x_540; -} -} -else -{ -lean_object* x_541; lean_object* x_542; -lean_dec(x_515); -x_541 = lean_ctor_get(x_520, 0); -lean_inc(x_541); -lean_dec(x_520); -x_542 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_542, 0, x_541); -lean_ctor_set(x_542, 1, x_500); -return x_542; -} -} -} -else -{ -lean_object* x_543; lean_object* x_544; -x_543 = lean_ctor_get(x_500, 1); -lean_inc(x_543); -x_544 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_543, x_515); -lean_dec(x_543); -if (lean_obj_tag(x_544) == 0) -{ -lean_object* x_545; uint8_t x_546; -lean_inc(x_515); -x_545 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_515, x_500); -x_546 = !lean_is_exclusive(x_545); -if (x_546 == 0) -{ -lean_object* x_547; uint8_t x_548; -x_547 = lean_ctor_get(x_545, 1); -x_548 = !lean_is_exclusive(x_547); -if (x_548 == 0) -{ -lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_549 = lean_ctor_get(x_545, 0); -x_550 = lean_ctor_get(x_547, 1); -lean_inc(x_549); -x_551 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_550, x_515, x_549); -lean_ctor_set(x_547, 1, x_551); -return x_545; -} -else -{ -lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; -x_552 = lean_ctor_get(x_545, 0); -x_553 = lean_ctor_get(x_547, 0); -x_554 = lean_ctor_get(x_547, 1); -lean_inc(x_554); -lean_inc(x_553); -lean_dec(x_547); -lean_inc(x_552); -x_555 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_554, x_515, x_552); -x_556 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_556, 0, x_553); -lean_ctor_set(x_556, 1, x_555); -lean_ctor_set(x_545, 1, x_556); -return x_545; -} -} -else -{ -lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; -x_557 = lean_ctor_get(x_545, 1); -x_558 = lean_ctor_get(x_545, 0); -lean_inc(x_557); -lean_inc(x_558); -lean_dec(x_545); -x_559 = lean_ctor_get(x_557, 0); -lean_inc(x_559); -x_560 = lean_ctor_get(x_557, 1); -lean_inc(x_560); -if (lean_is_exclusive(x_557)) { - lean_ctor_release(x_557, 0); - lean_ctor_release(x_557, 1); - x_561 = x_557; -} else { - lean_dec_ref(x_557); - x_561 = lean_box(0); -} -lean_inc(x_558); -x_562 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_560, x_515, x_558); -if (lean_is_scalar(x_561)) { - x_563 = lean_alloc_ctor(0, 2, 0); -} else { - x_563 = x_561; -} -lean_ctor_set(x_563, 0, x_559); -lean_ctor_set(x_563, 1, x_562); -x_564 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_564, 0, x_558); -lean_ctor_set(x_564, 1, x_563); -return x_564; -} -} -else -{ -lean_object* x_565; lean_object* x_566; -lean_dec(x_515); -x_565 = lean_ctor_get(x_544, 0); -lean_inc(x_565); -lean_dec(x_544); -x_566 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_566, 0, x_565); -lean_ctor_set(x_566, 1, x_500); -return x_566; -} -} -} -} -block_511: -{ -lean_object* x_502; lean_object* x_503; uint8_t x_504; -lean_dec(x_501); -x_502 = lean_unsigned_to_nat(0u); -x_503 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_502, x_2, x_500); -x_504 = !lean_is_exclusive(x_503); -if (x_504 == 0) -{ -lean_object* x_505; lean_object* x_506; -x_505 = lean_ctor_get(x_503, 0); -x_506 = l_Lean_mkAppRev(x_499, x_505); -lean_dec(x_505); -lean_ctor_set(x_503, 0, x_506); -return x_503; -} -else -{ -lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; -x_507 = lean_ctor_get(x_503, 0); -x_508 = lean_ctor_get(x_503, 1); -lean_inc(x_508); -lean_inc(x_507); -lean_dec(x_503); -x_509 = l_Lean_mkAppRev(x_499, x_507); -lean_dec(x_507); -x_510 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_510, 0, x_509); -lean_ctor_set(x_510, 1, x_508); -return x_510; -} -} -} -} -case 7: -{ -uint8_t x_596; lean_object* x_597; lean_object* x_598; uint8_t x_666; -x_596 = l_Lean_Expr_isMVar(x_1); -x_666 = lean_expr_has_expr_mvar(x_1); -if (x_666 == 0) -{ -uint8_t x_667; -x_667 = lean_expr_has_level_mvar(x_1); -if (x_667 == 0) -{ -x_597 = x_1; -x_598 = x_3; -goto block_665; -} -else -{ -lean_object* x_668; lean_object* x_669; -x_668 = lean_ctor_get(x_3, 1); -lean_inc(x_668); -x_669 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_668, x_1); -lean_dec(x_668); -if (lean_obj_tag(x_669) == 0) -{ -lean_object* x_670; lean_object* x_671; lean_object* x_672; uint8_t x_673; -lean_inc(x_1); -x_670 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_671 = lean_ctor_get(x_670, 1); -lean_inc(x_671); -x_672 = lean_ctor_get(x_670, 0); -lean_inc(x_672); -lean_dec(x_670); -x_673 = !lean_is_exclusive(x_671); -if (x_673 == 0) -{ -lean_object* x_674; lean_object* x_675; -x_674 = lean_ctor_get(x_671, 1); -lean_inc(x_672); -x_675 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_674, x_1, x_672); -lean_ctor_set(x_671, 1, x_675); -x_597 = x_672; -x_598 = x_671; -goto block_665; -} -else -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; -x_676 = lean_ctor_get(x_671, 0); -x_677 = lean_ctor_get(x_671, 1); -lean_inc(x_677); -lean_inc(x_676); -lean_dec(x_671); -lean_inc(x_672); -x_678 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_677, x_1, x_672); -x_679 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_679, 0, x_676); -lean_ctor_set(x_679, 1, x_678); -x_597 = x_672; -x_598 = x_679; -goto block_665; -} -} -else -{ -lean_object* x_680; -lean_dec(x_1); -x_680 = lean_ctor_get(x_669, 0); -lean_inc(x_680); -lean_dec(x_669); -x_597 = x_680; -x_598 = x_3; -goto block_665; -} -} -} -else -{ -lean_object* x_681; lean_object* x_682; -x_681 = lean_ctor_get(x_3, 1); -lean_inc(x_681); -x_682 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_681, x_1); -lean_dec(x_681); -if (lean_obj_tag(x_682) == 0) -{ -lean_object* x_683; lean_object* x_684; lean_object* x_685; uint8_t x_686; -lean_inc(x_1); -x_683 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_684 = lean_ctor_get(x_683, 1); -lean_inc(x_684); -x_685 = lean_ctor_get(x_683, 0); -lean_inc(x_685); -lean_dec(x_683); -x_686 = !lean_is_exclusive(x_684); -if (x_686 == 0) -{ -lean_object* x_687; lean_object* x_688; -x_687 = lean_ctor_get(x_684, 1); -lean_inc(x_685); -x_688 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_687, x_1, x_685); -lean_ctor_set(x_684, 1, x_688); -x_597 = x_685; -x_598 = x_684; -goto block_665; -} -else -{ -lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; -x_689 = lean_ctor_get(x_684, 0); -x_690 = lean_ctor_get(x_684, 1); -lean_inc(x_690); -lean_inc(x_689); -lean_dec(x_684); -lean_inc(x_685); -x_691 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_690, x_1, x_685); -x_692 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_692, 0, x_689); -lean_ctor_set(x_692, 1, x_691); -x_597 = x_685; -x_598 = x_692; -goto block_665; -} -} -else -{ -lean_object* x_693; -lean_dec(x_1); -x_693 = lean_ctor_get(x_682, 0); -lean_inc(x_693); -lean_dec(x_682); -x_597 = x_693; -x_598 = x_3; -goto block_665; -} -} -block_665: -{ -lean_object* x_599; -if (x_596 == 0) -{ -lean_object* x_610; -x_610 = lean_box(0); -x_599 = x_610; -goto block_609; -} -else -{ -uint8_t x_611; -x_611 = l_Lean_Expr_isLambda(x_597); -if (x_611 == 0) -{ -lean_object* x_612; -x_612 = lean_box(0); -x_599 = x_612; -goto block_609; -} -else -{ -lean_object* x_613; uint8_t x_614; -x_613 = l_Lean_Expr_betaRev(x_597, x_2); -lean_dec(x_597); -x_614 = lean_expr_has_expr_mvar(x_613); -if (x_614 == 0) -{ -uint8_t x_615; -x_615 = lean_expr_has_level_mvar(x_613); -if (x_615 == 0) -{ -lean_object* x_616; -x_616 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_616, 0, x_613); -lean_ctor_set(x_616, 1, x_598); -return x_616; -} -else -{ -lean_object* x_617; lean_object* x_618; -x_617 = lean_ctor_get(x_598, 1); -lean_inc(x_617); -x_618 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_617, x_613); -lean_dec(x_617); -if (lean_obj_tag(x_618) == 0) -{ -lean_object* x_619; uint8_t x_620; -lean_inc(x_613); -x_619 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_613, x_598); -x_620 = !lean_is_exclusive(x_619); -if (x_620 == 0) -{ -lean_object* x_621; uint8_t x_622; -x_621 = lean_ctor_get(x_619, 1); -x_622 = !lean_is_exclusive(x_621); -if (x_622 == 0) -{ -lean_object* x_623; lean_object* x_624; lean_object* x_625; -x_623 = lean_ctor_get(x_619, 0); -x_624 = lean_ctor_get(x_621, 1); -lean_inc(x_623); -x_625 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_624, x_613, x_623); -lean_ctor_set(x_621, 1, x_625); -return x_619; -} -else -{ -lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; -x_626 = lean_ctor_get(x_619, 0); -x_627 = lean_ctor_get(x_621, 0); -x_628 = lean_ctor_get(x_621, 1); -lean_inc(x_628); -lean_inc(x_627); -lean_dec(x_621); -lean_inc(x_626); -x_629 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_628, x_613, x_626); -x_630 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_630, 0, x_627); -lean_ctor_set(x_630, 1, x_629); -lean_ctor_set(x_619, 1, x_630); -return x_619; -} -} -else -{ -lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; -x_631 = lean_ctor_get(x_619, 1); -x_632 = lean_ctor_get(x_619, 0); -lean_inc(x_631); -lean_inc(x_632); -lean_dec(x_619); -x_633 = lean_ctor_get(x_631, 0); -lean_inc(x_633); -x_634 = lean_ctor_get(x_631, 1); -lean_inc(x_634); -if (lean_is_exclusive(x_631)) { - lean_ctor_release(x_631, 0); - lean_ctor_release(x_631, 1); - x_635 = x_631; -} else { - lean_dec_ref(x_631); - x_635 = lean_box(0); -} -lean_inc(x_632); -x_636 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_634, x_613, x_632); -if (lean_is_scalar(x_635)) { - x_637 = lean_alloc_ctor(0, 2, 0); -} else { - x_637 = x_635; -} -lean_ctor_set(x_637, 0, x_633); -lean_ctor_set(x_637, 1, x_636); -x_638 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_638, 0, x_632); -lean_ctor_set(x_638, 1, x_637); -return x_638; -} -} -else -{ -lean_object* x_639; lean_object* x_640; -lean_dec(x_613); -x_639 = lean_ctor_get(x_618, 0); -lean_inc(x_639); -lean_dec(x_618); -x_640 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_640, 0, x_639); -lean_ctor_set(x_640, 1, x_598); -return x_640; -} -} -} -else -{ -lean_object* x_641; lean_object* x_642; -x_641 = lean_ctor_get(x_598, 1); -lean_inc(x_641); -x_642 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_641, x_613); -lean_dec(x_641); -if (lean_obj_tag(x_642) == 0) -{ -lean_object* x_643; uint8_t x_644; -lean_inc(x_613); -x_643 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_613, x_598); -x_644 = !lean_is_exclusive(x_643); -if (x_644 == 0) -{ -lean_object* x_645; uint8_t x_646; -x_645 = lean_ctor_get(x_643, 1); -x_646 = !lean_is_exclusive(x_645); -if (x_646 == 0) -{ -lean_object* x_647; lean_object* x_648; lean_object* x_649; -x_647 = lean_ctor_get(x_643, 0); -x_648 = lean_ctor_get(x_645, 1); -lean_inc(x_647); -x_649 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_648, x_613, x_647); -lean_ctor_set(x_645, 1, x_649); -return x_643; -} -else -{ -lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; -x_650 = lean_ctor_get(x_643, 0); -x_651 = lean_ctor_get(x_645, 0); -x_652 = lean_ctor_get(x_645, 1); -lean_inc(x_652); -lean_inc(x_651); -lean_dec(x_645); -lean_inc(x_650); -x_653 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_652, x_613, x_650); -x_654 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_654, 0, x_651); -lean_ctor_set(x_654, 1, x_653); -lean_ctor_set(x_643, 1, x_654); -return x_643; -} -} -else -{ -lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; -x_655 = lean_ctor_get(x_643, 1); -x_656 = lean_ctor_get(x_643, 0); -lean_inc(x_655); -lean_inc(x_656); -lean_dec(x_643); -x_657 = lean_ctor_get(x_655, 0); -lean_inc(x_657); -x_658 = lean_ctor_get(x_655, 1); -lean_inc(x_658); -if (lean_is_exclusive(x_655)) { - lean_ctor_release(x_655, 0); - lean_ctor_release(x_655, 1); - x_659 = x_655; -} else { - lean_dec_ref(x_655); - x_659 = lean_box(0); -} -lean_inc(x_656); -x_660 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_658, x_613, x_656); -if (lean_is_scalar(x_659)) { - x_661 = lean_alloc_ctor(0, 2, 0); -} else { - x_661 = x_659; -} -lean_ctor_set(x_661, 0, x_657); -lean_ctor_set(x_661, 1, x_660); -x_662 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_662, 0, x_656); -lean_ctor_set(x_662, 1, x_661); -return x_662; -} -} -else -{ -lean_object* x_663; lean_object* x_664; -lean_dec(x_613); -x_663 = lean_ctor_get(x_642, 0); -lean_inc(x_663); -lean_dec(x_642); -x_664 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_664, 0, x_663); -lean_ctor_set(x_664, 1, x_598); -return x_664; -} -} -} -} -block_609: -{ -lean_object* x_600; lean_object* x_601; uint8_t x_602; -lean_dec(x_599); -x_600 = lean_unsigned_to_nat(0u); -x_601 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_600, x_2, x_598); -x_602 = !lean_is_exclusive(x_601); -if (x_602 == 0) -{ -lean_object* x_603; lean_object* x_604; -x_603 = lean_ctor_get(x_601, 0); -x_604 = l_Lean_mkAppRev(x_597, x_603); -lean_dec(x_603); -lean_ctor_set(x_601, 0, x_604); -return x_601; -} -else -{ -lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; -x_605 = lean_ctor_get(x_601, 0); -x_606 = lean_ctor_get(x_601, 1); -lean_inc(x_606); -lean_inc(x_605); -lean_dec(x_601); -x_607 = l_Lean_mkAppRev(x_597, x_605); -lean_dec(x_605); -x_608 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_608, 0, x_607); -lean_ctor_set(x_608, 1, x_606); -return x_608; -} -} -} -} -case 8: -{ -uint8_t x_694; lean_object* x_695; lean_object* x_696; uint8_t x_764; -x_694 = l_Lean_Expr_isMVar(x_1); -x_764 = lean_expr_has_expr_mvar(x_1); -if (x_764 == 0) -{ -uint8_t x_765; -x_765 = lean_expr_has_level_mvar(x_1); -if (x_765 == 0) -{ -x_695 = x_1; -x_696 = x_3; -goto block_763; -} -else -{ -lean_object* x_766; lean_object* x_767; -x_766 = lean_ctor_get(x_3, 1); -lean_inc(x_766); -x_767 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_766, x_1); -lean_dec(x_766); -if (lean_obj_tag(x_767) == 0) -{ -lean_object* x_768; lean_object* x_769; lean_object* x_770; uint8_t x_771; -lean_inc(x_1); -x_768 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_769 = lean_ctor_get(x_768, 1); -lean_inc(x_769); -x_770 = lean_ctor_get(x_768, 0); -lean_inc(x_770); -lean_dec(x_768); -x_771 = !lean_is_exclusive(x_769); -if (x_771 == 0) -{ -lean_object* x_772; lean_object* x_773; -x_772 = lean_ctor_get(x_769, 1); -lean_inc(x_770); -x_773 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_772, x_1, x_770); -lean_ctor_set(x_769, 1, x_773); -x_695 = x_770; -x_696 = x_769; -goto block_763; -} -else -{ -lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; -x_774 = lean_ctor_get(x_769, 0); -x_775 = lean_ctor_get(x_769, 1); -lean_inc(x_775); -lean_inc(x_774); -lean_dec(x_769); -lean_inc(x_770); -x_776 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_775, x_1, x_770); -x_777 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_777, 0, x_774); -lean_ctor_set(x_777, 1, x_776); -x_695 = x_770; -x_696 = x_777; -goto block_763; -} -} -else -{ -lean_object* x_778; -lean_dec(x_1); -x_778 = lean_ctor_get(x_767, 0); -lean_inc(x_778); -lean_dec(x_767); -x_695 = x_778; -x_696 = x_3; -goto block_763; -} -} -} -else -{ -lean_object* x_779; lean_object* x_780; -x_779 = lean_ctor_get(x_3, 1); -lean_inc(x_779); -x_780 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_779, x_1); -lean_dec(x_779); -if (lean_obj_tag(x_780) == 0) -{ -lean_object* x_781; lean_object* x_782; lean_object* x_783; uint8_t x_784; -lean_inc(x_1); -x_781 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_782 = lean_ctor_get(x_781, 1); -lean_inc(x_782); -x_783 = lean_ctor_get(x_781, 0); -lean_inc(x_783); -lean_dec(x_781); -x_784 = !lean_is_exclusive(x_782); -if (x_784 == 0) -{ -lean_object* x_785; lean_object* x_786; -x_785 = lean_ctor_get(x_782, 1); -lean_inc(x_783); -x_786 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_785, x_1, x_783); -lean_ctor_set(x_782, 1, x_786); -x_695 = x_783; -x_696 = x_782; -goto block_763; -} -else -{ -lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; -x_787 = lean_ctor_get(x_782, 0); -x_788 = lean_ctor_get(x_782, 1); -lean_inc(x_788); -lean_inc(x_787); -lean_dec(x_782); -lean_inc(x_783); -x_789 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_788, x_1, x_783); -x_790 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_790, 0, x_787); -lean_ctor_set(x_790, 1, x_789); -x_695 = x_783; -x_696 = x_790; -goto block_763; -} -} -else -{ -lean_object* x_791; -lean_dec(x_1); -x_791 = lean_ctor_get(x_780, 0); -lean_inc(x_791); -lean_dec(x_780); -x_695 = x_791; -x_696 = x_3; -goto block_763; -} -} -block_763: -{ -lean_object* x_697; -if (x_694 == 0) -{ -lean_object* x_708; -x_708 = lean_box(0); -x_697 = x_708; -goto block_707; -} -else -{ -uint8_t x_709; -x_709 = l_Lean_Expr_isLambda(x_695); -if (x_709 == 0) -{ -lean_object* x_710; -x_710 = lean_box(0); -x_697 = x_710; -goto block_707; -} -else -{ -lean_object* x_711; uint8_t x_712; -x_711 = l_Lean_Expr_betaRev(x_695, x_2); -lean_dec(x_695); -x_712 = lean_expr_has_expr_mvar(x_711); -if (x_712 == 0) -{ -uint8_t x_713; -x_713 = lean_expr_has_level_mvar(x_711); -if (x_713 == 0) -{ -lean_object* x_714; -x_714 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_714, 0, x_711); -lean_ctor_set(x_714, 1, x_696); -return x_714; -} -else -{ -lean_object* x_715; lean_object* x_716; -x_715 = lean_ctor_get(x_696, 1); -lean_inc(x_715); -x_716 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_715, x_711); -lean_dec(x_715); -if (lean_obj_tag(x_716) == 0) -{ -lean_object* x_717; uint8_t x_718; -lean_inc(x_711); -x_717 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_711, x_696); -x_718 = !lean_is_exclusive(x_717); -if (x_718 == 0) -{ -lean_object* x_719; uint8_t x_720; -x_719 = lean_ctor_get(x_717, 1); -x_720 = !lean_is_exclusive(x_719); -if (x_720 == 0) -{ -lean_object* x_721; lean_object* x_722; lean_object* x_723; -x_721 = lean_ctor_get(x_717, 0); -x_722 = lean_ctor_get(x_719, 1); -lean_inc(x_721); -x_723 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_722, x_711, x_721); -lean_ctor_set(x_719, 1, x_723); -return x_717; -} -else -{ -lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; -x_724 = lean_ctor_get(x_717, 0); -x_725 = lean_ctor_get(x_719, 0); -x_726 = lean_ctor_get(x_719, 1); -lean_inc(x_726); -lean_inc(x_725); -lean_dec(x_719); -lean_inc(x_724); -x_727 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_726, x_711, x_724); -x_728 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_728, 0, x_725); -lean_ctor_set(x_728, 1, x_727); -lean_ctor_set(x_717, 1, x_728); -return x_717; -} -} -else -{ -lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; -x_729 = lean_ctor_get(x_717, 1); -x_730 = lean_ctor_get(x_717, 0); -lean_inc(x_729); -lean_inc(x_730); -lean_dec(x_717); -x_731 = lean_ctor_get(x_729, 0); -lean_inc(x_731); -x_732 = lean_ctor_get(x_729, 1); -lean_inc(x_732); -if (lean_is_exclusive(x_729)) { - lean_ctor_release(x_729, 0); - lean_ctor_release(x_729, 1); - x_733 = x_729; -} else { - lean_dec_ref(x_729); - x_733 = lean_box(0); -} -lean_inc(x_730); -x_734 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_732, x_711, x_730); -if (lean_is_scalar(x_733)) { - x_735 = lean_alloc_ctor(0, 2, 0); -} else { - x_735 = x_733; -} -lean_ctor_set(x_735, 0, x_731); -lean_ctor_set(x_735, 1, x_734); -x_736 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_736, 0, x_730); -lean_ctor_set(x_736, 1, x_735); -return x_736; -} -} -else -{ -lean_object* x_737; lean_object* x_738; -lean_dec(x_711); -x_737 = lean_ctor_get(x_716, 0); -lean_inc(x_737); -lean_dec(x_716); -x_738 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_738, 0, x_737); -lean_ctor_set(x_738, 1, x_696); -return x_738; -} -} -} -else -{ -lean_object* x_739; lean_object* x_740; -x_739 = lean_ctor_get(x_696, 1); -lean_inc(x_739); -x_740 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_739, x_711); -lean_dec(x_739); -if (lean_obj_tag(x_740) == 0) -{ -lean_object* x_741; uint8_t x_742; -lean_inc(x_711); -x_741 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_711, x_696); -x_742 = !lean_is_exclusive(x_741); -if (x_742 == 0) -{ -lean_object* x_743; uint8_t x_744; -x_743 = lean_ctor_get(x_741, 1); -x_744 = !lean_is_exclusive(x_743); -if (x_744 == 0) -{ -lean_object* x_745; lean_object* x_746; lean_object* x_747; -x_745 = lean_ctor_get(x_741, 0); -x_746 = lean_ctor_get(x_743, 1); -lean_inc(x_745); -x_747 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_746, x_711, x_745); -lean_ctor_set(x_743, 1, x_747); -return x_741; -} -else -{ -lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; -x_748 = lean_ctor_get(x_741, 0); -x_749 = lean_ctor_get(x_743, 0); -x_750 = lean_ctor_get(x_743, 1); -lean_inc(x_750); -lean_inc(x_749); -lean_dec(x_743); -lean_inc(x_748); -x_751 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_750, x_711, x_748); -x_752 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_752, 0, x_749); -lean_ctor_set(x_752, 1, x_751); -lean_ctor_set(x_741, 1, x_752); -return x_741; -} -} -else -{ -lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; -x_753 = lean_ctor_get(x_741, 1); -x_754 = lean_ctor_get(x_741, 0); -lean_inc(x_753); -lean_inc(x_754); -lean_dec(x_741); -x_755 = lean_ctor_get(x_753, 0); -lean_inc(x_755); -x_756 = lean_ctor_get(x_753, 1); -lean_inc(x_756); -if (lean_is_exclusive(x_753)) { - lean_ctor_release(x_753, 0); - lean_ctor_release(x_753, 1); - x_757 = x_753; -} else { - lean_dec_ref(x_753); - x_757 = lean_box(0); -} -lean_inc(x_754); -x_758 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_756, x_711, x_754); -if (lean_is_scalar(x_757)) { - x_759 = lean_alloc_ctor(0, 2, 0); -} else { - x_759 = x_757; -} -lean_ctor_set(x_759, 0, x_755); -lean_ctor_set(x_759, 1, x_758); -x_760 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_760, 0, x_754); -lean_ctor_set(x_760, 1, x_759); -return x_760; -} -} -else -{ -lean_object* x_761; lean_object* x_762; -lean_dec(x_711); -x_761 = lean_ctor_get(x_740, 0); -lean_inc(x_761); -lean_dec(x_740); -x_762 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_762, 0, x_761); -lean_ctor_set(x_762, 1, x_696); -return x_762; -} -} -} -} -block_707: -{ -lean_object* x_698; lean_object* x_699; uint8_t x_700; -lean_dec(x_697); -x_698 = lean_unsigned_to_nat(0u); -x_699 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_698, x_2, x_696); -x_700 = !lean_is_exclusive(x_699); -if (x_700 == 0) -{ -lean_object* x_701; lean_object* x_702; -x_701 = lean_ctor_get(x_699, 0); -x_702 = l_Lean_mkAppRev(x_695, x_701); -lean_dec(x_701); -lean_ctor_set(x_699, 0, x_702); -return x_699; -} -else -{ -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; -x_703 = lean_ctor_get(x_699, 0); -x_704 = lean_ctor_get(x_699, 1); -lean_inc(x_704); -lean_inc(x_703); -lean_dec(x_699); -x_705 = l_Lean_mkAppRev(x_695, x_703); -lean_dec(x_703); -x_706 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_706, 0, x_705); -lean_ctor_set(x_706, 1, x_704); -return x_706; +lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; +x_430 = lean_ctor_get(x_426, 0); +x_431 = lean_ctor_get(x_426, 1); +lean_inc(x_431); +lean_inc(x_430); +lean_dec(x_426); +x_432 = l_Lean_mkAppRev(x_422, x_430); +lean_dec(x_430); +x_433 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_433, 0, x_432); +lean_ctor_set(x_433, 1, x_431); +return x_433; } } } } case 9: { -uint8_t x_792; lean_object* x_793; lean_object* x_794; uint8_t x_862; -x_792 = l_Lean_Expr_isMVar(x_1); -x_862 = lean_expr_has_expr_mvar(x_1); -if (x_862 == 0) +uint8_t x_480; lean_object* x_481; lean_object* x_482; uint8_t x_525; +x_480 = l_Lean_Expr_isMVar(x_1); +x_525 = l_Lean_Expr_hasMVar(x_1); +if (x_525 == 0) { -uint8_t x_863; -x_863 = lean_expr_has_level_mvar(x_1); -if (x_863 == 0) -{ -x_793 = x_1; -x_794 = x_3; -goto block_861; +x_481 = x_1; +x_482 = x_3; +goto block_524; } else { -lean_object* x_864; lean_object* x_865; -x_864 = lean_ctor_get(x_3, 1); -lean_inc(x_864); -x_865 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_864, x_1); -lean_dec(x_864); -if (lean_obj_tag(x_865) == 0) +lean_object* x_526; lean_object* x_527; +x_526 = lean_ctor_get(x_3, 1); +lean_inc(x_526); +x_527 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_526, x_1); +lean_dec(x_526); +if (lean_obj_tag(x_527) == 0) { -lean_object* x_866; lean_object* x_867; lean_object* x_868; uint8_t x_869; +lean_object* x_528; lean_object* x_529; lean_object* x_530; uint8_t x_531; lean_inc(x_1); -x_866 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_867 = lean_ctor_get(x_866, 1); -lean_inc(x_867); -x_868 = lean_ctor_get(x_866, 0); -lean_inc(x_868); -lean_dec(x_866); -x_869 = !lean_is_exclusive(x_867); -if (x_869 == 0) +x_528 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_529 = lean_ctor_get(x_528, 1); +lean_inc(x_529); +x_530 = lean_ctor_get(x_528, 0); +lean_inc(x_530); +lean_dec(x_528); +x_531 = !lean_is_exclusive(x_529); +if (x_531 == 0) { -lean_object* x_870; lean_object* x_871; -x_870 = lean_ctor_get(x_867, 1); -lean_inc(x_868); -x_871 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_870, x_1, x_868); -lean_ctor_set(x_867, 1, x_871); -x_793 = x_868; -x_794 = x_867; -goto block_861; +lean_object* x_532; lean_object* x_533; +x_532 = lean_ctor_get(x_529, 1); +lean_inc(x_530); +x_533 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_532, x_1, x_530); +lean_ctor_set(x_529, 1, x_533); +x_481 = x_530; +x_482 = x_529; +goto block_524; } else { -lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; -x_872 = lean_ctor_get(x_867, 0); -x_873 = lean_ctor_get(x_867, 1); -lean_inc(x_873); -lean_inc(x_872); -lean_dec(x_867); -lean_inc(x_868); -x_874 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_873, x_1, x_868); -x_875 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_875, 0, x_872); -lean_ctor_set(x_875, 1, x_874); -x_793 = x_868; -x_794 = x_875; -goto block_861; +lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; +x_534 = lean_ctor_get(x_529, 0); +x_535 = lean_ctor_get(x_529, 1); +lean_inc(x_535); +lean_inc(x_534); +lean_dec(x_529); +lean_inc(x_530); +x_536 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_535, x_1, x_530); +x_537 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_537, 0, x_534); +lean_ctor_set(x_537, 1, x_536); +x_481 = x_530; +x_482 = x_537; +goto block_524; } } else { -lean_object* x_876; +lean_object* x_538; lean_dec(x_1); -x_876 = lean_ctor_get(x_865, 0); -lean_inc(x_876); -lean_dec(x_865); -x_793 = x_876; -x_794 = x_3; -goto block_861; +x_538 = lean_ctor_get(x_527, 0); +lean_inc(x_538); +lean_dec(x_527); +x_481 = x_538; +x_482 = x_3; +goto block_524; } } +block_524: +{ +lean_object* x_483; +if (x_480 == 0) +{ +lean_object* x_494; +x_494 = lean_box(0); +x_483 = x_494; +goto block_493; +} +else +{ +uint8_t x_495; +x_495 = l_Lean_Expr_isLambda(x_481); +if (x_495 == 0) +{ +lean_object* x_496; +x_496 = lean_box(0); +x_483 = x_496; +goto block_493; +} +else +{ +lean_object* x_497; uint8_t x_498; +x_497 = l_Lean_Expr_betaRev(x_481, x_2); +lean_dec(x_481); +x_498 = l_Lean_Expr_hasMVar(x_497); +if (x_498 == 0) +{ +lean_object* x_499; +x_499 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_499, 0, x_497); +lean_ctor_set(x_499, 1, x_482); +return x_499; +} +else +{ +lean_object* x_500; lean_object* x_501; +x_500 = lean_ctor_get(x_482, 1); +lean_inc(x_500); +x_501 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_500, x_497); +lean_dec(x_500); +if (lean_obj_tag(x_501) == 0) +{ +lean_object* x_502; uint8_t x_503; +lean_inc(x_497); +x_502 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_497, x_482); +x_503 = !lean_is_exclusive(x_502); +if (x_503 == 0) +{ +lean_object* x_504; uint8_t x_505; +x_504 = lean_ctor_get(x_502, 1); +x_505 = !lean_is_exclusive(x_504); +if (x_505 == 0) +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; +x_506 = lean_ctor_get(x_502, 0); +x_507 = lean_ctor_get(x_504, 1); +lean_inc(x_506); +x_508 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_507, x_497, x_506); +lean_ctor_set(x_504, 1, x_508); +return x_502; +} +else +{ +lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; +x_509 = lean_ctor_get(x_502, 0); +x_510 = lean_ctor_get(x_504, 0); +x_511 = lean_ctor_get(x_504, 1); +lean_inc(x_511); +lean_inc(x_510); +lean_dec(x_504); +lean_inc(x_509); +x_512 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_511, x_497, x_509); +x_513 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_513, 0, x_510); +lean_ctor_set(x_513, 1, x_512); +lean_ctor_set(x_502, 1, x_513); +return x_502; +} } else { -lean_object* x_877; lean_object* x_878; -x_877 = lean_ctor_get(x_3, 1); -lean_inc(x_877); -x_878 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_877, x_1); -lean_dec(x_877); -if (lean_obj_tag(x_878) == 0) -{ -lean_object* x_879; lean_object* x_880; lean_object* x_881; uint8_t x_882; -lean_inc(x_1); -x_879 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_880 = lean_ctor_get(x_879, 1); -lean_inc(x_880); -x_881 = lean_ctor_get(x_879, 0); -lean_inc(x_881); -lean_dec(x_879); -x_882 = !lean_is_exclusive(x_880); -if (x_882 == 0) -{ -lean_object* x_883; lean_object* x_884; -x_883 = lean_ctor_get(x_880, 1); -lean_inc(x_881); -x_884 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_883, x_1, x_881); -lean_ctor_set(x_880, 1, x_884); -x_793 = x_881; -x_794 = x_880; -goto block_861; -} -else -{ -lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; -x_885 = lean_ctor_get(x_880, 0); -x_886 = lean_ctor_get(x_880, 1); -lean_inc(x_886); -lean_inc(x_885); -lean_dec(x_880); -lean_inc(x_881); -x_887 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_886, x_1, x_881); -x_888 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_888, 0, x_885); -lean_ctor_set(x_888, 1, x_887); -x_793 = x_881; -x_794 = x_888; -goto block_861; -} -} -else -{ -lean_object* x_889; -lean_dec(x_1); -x_889 = lean_ctor_get(x_878, 0); -lean_inc(x_889); -lean_dec(x_878); -x_793 = x_889; -x_794 = x_3; -goto block_861; -} -} -block_861: -{ -lean_object* x_795; -if (x_792 == 0) -{ -lean_object* x_806; -x_806 = lean_box(0); -x_795 = x_806; -goto block_805; -} -else -{ -uint8_t x_807; -x_807 = l_Lean_Expr_isLambda(x_793); -if (x_807 == 0) -{ -lean_object* x_808; -x_808 = lean_box(0); -x_795 = x_808; -goto block_805; -} -else -{ -lean_object* x_809; uint8_t x_810; -x_809 = l_Lean_Expr_betaRev(x_793, x_2); -lean_dec(x_793); -x_810 = lean_expr_has_expr_mvar(x_809); -if (x_810 == 0) -{ -uint8_t x_811; -x_811 = lean_expr_has_level_mvar(x_809); -if (x_811 == 0) -{ -lean_object* x_812; -x_812 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_812, 0, x_809); -lean_ctor_set(x_812, 1, x_794); -return x_812; -} -else -{ -lean_object* x_813; lean_object* x_814; -x_813 = lean_ctor_get(x_794, 1); -lean_inc(x_813); -x_814 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_813, x_809); -lean_dec(x_813); -if (lean_obj_tag(x_814) == 0) -{ -lean_object* x_815; uint8_t x_816; -lean_inc(x_809); -x_815 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_809, x_794); -x_816 = !lean_is_exclusive(x_815); -if (x_816 == 0) -{ -lean_object* x_817; uint8_t x_818; -x_817 = lean_ctor_get(x_815, 1); -x_818 = !lean_is_exclusive(x_817); -if (x_818 == 0) -{ -lean_object* x_819; lean_object* x_820; lean_object* x_821; -x_819 = lean_ctor_get(x_815, 0); -x_820 = lean_ctor_get(x_817, 1); -lean_inc(x_819); -x_821 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_820, x_809, x_819); -lean_ctor_set(x_817, 1, x_821); -return x_815; -} -else -{ -lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; -x_822 = lean_ctor_get(x_815, 0); -x_823 = lean_ctor_get(x_817, 0); -x_824 = lean_ctor_get(x_817, 1); -lean_inc(x_824); -lean_inc(x_823); -lean_dec(x_817); -lean_inc(x_822); -x_825 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_824, x_809, x_822); -x_826 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_826, 0, x_823); -lean_ctor_set(x_826, 1, x_825); -lean_ctor_set(x_815, 1, x_826); -return x_815; -} -} -else -{ -lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; -x_827 = lean_ctor_get(x_815, 1); -x_828 = lean_ctor_get(x_815, 0); -lean_inc(x_827); -lean_inc(x_828); -lean_dec(x_815); -x_829 = lean_ctor_get(x_827, 0); -lean_inc(x_829); -x_830 = lean_ctor_get(x_827, 1); -lean_inc(x_830); -if (lean_is_exclusive(x_827)) { - lean_ctor_release(x_827, 0); - lean_ctor_release(x_827, 1); - x_831 = x_827; +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; +x_514 = lean_ctor_get(x_502, 1); +x_515 = lean_ctor_get(x_502, 0); +lean_inc(x_514); +lean_inc(x_515); +lean_dec(x_502); +x_516 = lean_ctor_get(x_514, 0); +lean_inc(x_516); +x_517 = lean_ctor_get(x_514, 1); +lean_inc(x_517); +if (lean_is_exclusive(x_514)) { + lean_ctor_release(x_514, 0); + lean_ctor_release(x_514, 1); + x_518 = x_514; } else { - lean_dec_ref(x_827); - x_831 = lean_box(0); + lean_dec_ref(x_514); + x_518 = lean_box(0); } -lean_inc(x_828); -x_832 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_830, x_809, x_828); -if (lean_is_scalar(x_831)) { - x_833 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_515); +x_519 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_517, x_497, x_515); +if (lean_is_scalar(x_518)) { + x_520 = lean_alloc_ctor(0, 2, 0); } else { - x_833 = x_831; + x_520 = x_518; } -lean_ctor_set(x_833, 0, x_829); -lean_ctor_set(x_833, 1, x_832); -x_834 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_834, 0, x_828); -lean_ctor_set(x_834, 1, x_833); -return x_834; +lean_ctor_set(x_520, 0, x_516); +lean_ctor_set(x_520, 1, x_519); +x_521 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_521, 0, x_515); +lean_ctor_set(x_521, 1, x_520); +return x_521; } } else { -lean_object* x_835; lean_object* x_836; -lean_dec(x_809); -x_835 = lean_ctor_get(x_814, 0); -lean_inc(x_835); -lean_dec(x_814); -x_836 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_836, 0, x_835); -lean_ctor_set(x_836, 1, x_794); -return x_836; +lean_object* x_522; lean_object* x_523; +lean_dec(x_497); +x_522 = lean_ctor_get(x_501, 0); +lean_inc(x_522); +lean_dec(x_501); +x_523 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_523, 0, x_522); +lean_ctor_set(x_523, 1, x_482); +return x_523; } } } +} +block_493: +{ +lean_object* x_484; lean_object* x_485; uint8_t x_486; +lean_dec(x_483); +x_484 = lean_unsigned_to_nat(0u); +x_485 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_484, x_2, x_482); +x_486 = !lean_is_exclusive(x_485); +if (x_486 == 0) +{ +lean_object* x_487; lean_object* x_488; +x_487 = lean_ctor_get(x_485, 0); +x_488 = l_Lean_mkAppRev(x_481, x_487); +lean_dec(x_487); +lean_ctor_set(x_485, 0, x_488); +return x_485; +} else { -lean_object* x_837; lean_object* x_838; -x_837 = lean_ctor_get(x_794, 1); -lean_inc(x_837); -x_838 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_837, x_809); -lean_dec(x_837); -if (lean_obj_tag(x_838) == 0) -{ -lean_object* x_839; uint8_t x_840; -lean_inc(x_809); -x_839 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_809, x_794); -x_840 = !lean_is_exclusive(x_839); -if (x_840 == 0) -{ -lean_object* x_841; uint8_t x_842; -x_841 = lean_ctor_get(x_839, 1); -x_842 = !lean_is_exclusive(x_841); -if (x_842 == 0) -{ -lean_object* x_843; lean_object* x_844; lean_object* x_845; -x_843 = lean_ctor_get(x_839, 0); -x_844 = lean_ctor_get(x_841, 1); -lean_inc(x_843); -x_845 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_844, x_809, x_843); -lean_ctor_set(x_841, 1, x_845); -return x_839; -} -else -{ -lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; -x_846 = lean_ctor_get(x_839, 0); -x_847 = lean_ctor_get(x_841, 0); -x_848 = lean_ctor_get(x_841, 1); -lean_inc(x_848); -lean_inc(x_847); -lean_dec(x_841); -lean_inc(x_846); -x_849 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_848, x_809, x_846); -x_850 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_850, 0, x_847); -lean_ctor_set(x_850, 1, x_849); -lean_ctor_set(x_839, 1, x_850); -return x_839; -} -} -else -{ -lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; -x_851 = lean_ctor_get(x_839, 1); -x_852 = lean_ctor_get(x_839, 0); -lean_inc(x_851); -lean_inc(x_852); -lean_dec(x_839); -x_853 = lean_ctor_get(x_851, 0); -lean_inc(x_853); -x_854 = lean_ctor_get(x_851, 1); -lean_inc(x_854); -if (lean_is_exclusive(x_851)) { - lean_ctor_release(x_851, 0); - lean_ctor_release(x_851, 1); - x_855 = x_851; -} else { - lean_dec_ref(x_851); - x_855 = lean_box(0); -} -lean_inc(x_852); -x_856 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_854, x_809, x_852); -if (lean_is_scalar(x_855)) { - x_857 = lean_alloc_ctor(0, 2, 0); -} else { - x_857 = x_855; -} -lean_ctor_set(x_857, 0, x_853); -lean_ctor_set(x_857, 1, x_856); -x_858 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_858, 0, x_852); -lean_ctor_set(x_858, 1, x_857); -return x_858; -} -} -else -{ -lean_object* x_859; lean_object* x_860; -lean_dec(x_809); -x_859 = lean_ctor_get(x_838, 0); -lean_inc(x_859); -lean_dec(x_838); -x_860 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_860, 0, x_859); -lean_ctor_set(x_860, 1, x_794); -return x_860; -} -} -} -} -block_805: -{ -lean_object* x_796; lean_object* x_797; uint8_t x_798; -lean_dec(x_795); -x_796 = lean_unsigned_to_nat(0u); -x_797 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_796, x_2, x_794); -x_798 = !lean_is_exclusive(x_797); -if (x_798 == 0) -{ -lean_object* x_799; lean_object* x_800; -x_799 = lean_ctor_get(x_797, 0); -x_800 = l_Lean_mkAppRev(x_793, x_799); -lean_dec(x_799); -lean_ctor_set(x_797, 0, x_800); -return x_797; -} -else -{ -lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; -x_801 = lean_ctor_get(x_797, 0); -x_802 = lean_ctor_get(x_797, 1); -lean_inc(x_802); -lean_inc(x_801); -lean_dec(x_797); -x_803 = l_Lean_mkAppRev(x_793, x_801); -lean_dec(x_801); -x_804 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_804, 0, x_803); -lean_ctor_set(x_804, 1, x_802); -return x_804; +lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_489 = lean_ctor_get(x_485, 0); +x_490 = lean_ctor_get(x_485, 1); +lean_inc(x_490); +lean_inc(x_489); +lean_dec(x_485); +x_491 = l_Lean_mkAppRev(x_481, x_489); +lean_dec(x_489); +x_492 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_492, 0, x_491); +lean_ctor_set(x_492, 1, x_490); +return x_492; } } } } case 10: { -uint8_t x_890; lean_object* x_891; lean_object* x_892; uint8_t x_960; -x_890 = l_Lean_Expr_isMVar(x_1); -x_960 = lean_expr_has_expr_mvar(x_1); -if (x_960 == 0) +uint8_t x_539; lean_object* x_540; lean_object* x_541; uint8_t x_584; +x_539 = l_Lean_Expr_isMVar(x_1); +x_584 = l_Lean_Expr_hasMVar(x_1); +if (x_584 == 0) { -uint8_t x_961; -x_961 = lean_expr_has_level_mvar(x_1); -if (x_961 == 0) -{ -x_891 = x_1; -x_892 = x_3; -goto block_959; +x_540 = x_1; +x_541 = x_3; +goto block_583; } else { -lean_object* x_962; lean_object* x_963; -x_962 = lean_ctor_get(x_3, 1); -lean_inc(x_962); -x_963 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_962, x_1); -lean_dec(x_962); -if (lean_obj_tag(x_963) == 0) +lean_object* x_585; lean_object* x_586; +x_585 = lean_ctor_get(x_3, 1); +lean_inc(x_585); +x_586 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_585, x_1); +lean_dec(x_585); +if (lean_obj_tag(x_586) == 0) { -lean_object* x_964; lean_object* x_965; lean_object* x_966; uint8_t x_967; +lean_object* x_587; lean_object* x_588; lean_object* x_589; uint8_t x_590; lean_inc(x_1); -x_964 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_965 = lean_ctor_get(x_964, 1); -lean_inc(x_965); -x_966 = lean_ctor_get(x_964, 0); -lean_inc(x_966); -lean_dec(x_964); -x_967 = !lean_is_exclusive(x_965); -if (x_967 == 0) +x_587 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_588 = lean_ctor_get(x_587, 1); +lean_inc(x_588); +x_589 = lean_ctor_get(x_587, 0); +lean_inc(x_589); +lean_dec(x_587); +x_590 = !lean_is_exclusive(x_588); +if (x_590 == 0) { -lean_object* x_968; lean_object* x_969; -x_968 = lean_ctor_get(x_965, 1); -lean_inc(x_966); -x_969 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_968, x_1, x_966); -lean_ctor_set(x_965, 1, x_969); -x_891 = x_966; -x_892 = x_965; -goto block_959; +lean_object* x_591; lean_object* x_592; +x_591 = lean_ctor_get(x_588, 1); +lean_inc(x_589); +x_592 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_591, x_1, x_589); +lean_ctor_set(x_588, 1, x_592); +x_540 = x_589; +x_541 = x_588; +goto block_583; } else { -lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; -x_970 = lean_ctor_get(x_965, 0); -x_971 = lean_ctor_get(x_965, 1); -lean_inc(x_971); -lean_inc(x_970); -lean_dec(x_965); -lean_inc(x_966); -x_972 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_971, x_1, x_966); -x_973 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_973, 0, x_970); -lean_ctor_set(x_973, 1, x_972); -x_891 = x_966; -x_892 = x_973; -goto block_959; +lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; +x_593 = lean_ctor_get(x_588, 0); +x_594 = lean_ctor_get(x_588, 1); +lean_inc(x_594); +lean_inc(x_593); +lean_dec(x_588); +lean_inc(x_589); +x_595 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_594, x_1, x_589); +x_596 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_596, 0, x_593); +lean_ctor_set(x_596, 1, x_595); +x_540 = x_589; +x_541 = x_596; +goto block_583; } } else { -lean_object* x_974; +lean_object* x_597; lean_dec(x_1); -x_974 = lean_ctor_get(x_963, 0); -lean_inc(x_974); -lean_dec(x_963); -x_891 = x_974; -x_892 = x_3; -goto block_959; +x_597 = lean_ctor_get(x_586, 0); +lean_inc(x_597); +lean_dec(x_586); +x_540 = x_597; +x_541 = x_3; +goto block_583; } } +block_583: +{ +lean_object* x_542; +if (x_539 == 0) +{ +lean_object* x_553; +x_553 = lean_box(0); +x_542 = x_553; +goto block_552; +} +else +{ +uint8_t x_554; +x_554 = l_Lean_Expr_isLambda(x_540); +if (x_554 == 0) +{ +lean_object* x_555; +x_555 = lean_box(0); +x_542 = x_555; +goto block_552; +} +else +{ +lean_object* x_556; uint8_t x_557; +x_556 = l_Lean_Expr_betaRev(x_540, x_2); +lean_dec(x_540); +x_557 = l_Lean_Expr_hasMVar(x_556); +if (x_557 == 0) +{ +lean_object* x_558; +x_558 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_558, 0, x_556); +lean_ctor_set(x_558, 1, x_541); +return x_558; +} +else +{ +lean_object* x_559; lean_object* x_560; +x_559 = lean_ctor_get(x_541, 1); +lean_inc(x_559); +x_560 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_559, x_556); +lean_dec(x_559); +if (lean_obj_tag(x_560) == 0) +{ +lean_object* x_561; uint8_t x_562; +lean_inc(x_556); +x_561 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_556, x_541); +x_562 = !lean_is_exclusive(x_561); +if (x_562 == 0) +{ +lean_object* x_563; uint8_t x_564; +x_563 = lean_ctor_get(x_561, 1); +x_564 = !lean_is_exclusive(x_563); +if (x_564 == 0) +{ +lean_object* x_565; lean_object* x_566; lean_object* x_567; +x_565 = lean_ctor_get(x_561, 0); +x_566 = lean_ctor_get(x_563, 1); +lean_inc(x_565); +x_567 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_566, x_556, x_565); +lean_ctor_set(x_563, 1, x_567); +return x_561; +} +else +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; +x_568 = lean_ctor_get(x_561, 0); +x_569 = lean_ctor_get(x_563, 0); +x_570 = lean_ctor_get(x_563, 1); +lean_inc(x_570); +lean_inc(x_569); +lean_dec(x_563); +lean_inc(x_568); +x_571 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_570, x_556, x_568); +x_572 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_572, 0, x_569); +lean_ctor_set(x_572, 1, x_571); +lean_ctor_set(x_561, 1, x_572); +return x_561; +} } else { -lean_object* x_975; lean_object* x_976; -x_975 = lean_ctor_get(x_3, 1); -lean_inc(x_975); -x_976 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_975, x_1); -lean_dec(x_975); -if (lean_obj_tag(x_976) == 0) +lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +x_573 = lean_ctor_get(x_561, 1); +x_574 = lean_ctor_get(x_561, 0); +lean_inc(x_573); +lean_inc(x_574); +lean_dec(x_561); +x_575 = lean_ctor_get(x_573, 0); +lean_inc(x_575); +x_576 = lean_ctor_get(x_573, 1); +lean_inc(x_576); +if (lean_is_exclusive(x_573)) { + lean_ctor_release(x_573, 0); + lean_ctor_release(x_573, 1); + x_577 = x_573; +} else { + lean_dec_ref(x_573); + x_577 = lean_box(0); +} +lean_inc(x_574); +x_578 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_576, x_556, x_574); +if (lean_is_scalar(x_577)) { + x_579 = lean_alloc_ctor(0, 2, 0); +} else { + x_579 = x_577; +} +lean_ctor_set(x_579, 0, x_575); +lean_ctor_set(x_579, 1, x_578); +x_580 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_580, 0, x_574); +lean_ctor_set(x_580, 1, x_579); +return x_580; +} +} +else { -lean_object* x_977; lean_object* x_978; lean_object* x_979; uint8_t x_980; +lean_object* x_581; lean_object* x_582; +lean_dec(x_556); +x_581 = lean_ctor_get(x_560, 0); +lean_inc(x_581); +lean_dec(x_560); +x_582 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_582, 0, x_581); +lean_ctor_set(x_582, 1, x_541); +return x_582; +} +} +} +} +block_552: +{ +lean_object* x_543; lean_object* x_544; uint8_t x_545; +lean_dec(x_542); +x_543 = lean_unsigned_to_nat(0u); +x_544 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_543, x_2, x_541); +x_545 = !lean_is_exclusive(x_544); +if (x_545 == 0) +{ +lean_object* x_546; lean_object* x_547; +x_546 = lean_ctor_get(x_544, 0); +x_547 = l_Lean_mkAppRev(x_540, x_546); +lean_dec(x_546); +lean_ctor_set(x_544, 0, x_547); +return x_544; +} +else +{ +lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; +x_548 = lean_ctor_get(x_544, 0); +x_549 = lean_ctor_get(x_544, 1); +lean_inc(x_549); +lean_inc(x_548); +lean_dec(x_544); +x_550 = l_Lean_mkAppRev(x_540, x_548); +lean_dec(x_548); +x_551 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_551, 0, x_550); +lean_ctor_set(x_551, 1, x_549); +return x_551; +} +} +} +} +case 11: +{ +uint8_t x_598; lean_object* x_599; lean_object* x_600; uint8_t x_643; +x_598 = l_Lean_Expr_isMVar(x_1); +x_643 = l_Lean_Expr_hasMVar(x_1); +if (x_643 == 0) +{ +x_599 = x_1; +x_600 = x_3; +goto block_642; +} +else +{ +lean_object* x_644; lean_object* x_645; +x_644 = lean_ctor_get(x_3, 1); +lean_inc(x_644); +x_645 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_644, x_1); +lean_dec(x_644); +if (lean_obj_tag(x_645) == 0) +{ +lean_object* x_646; lean_object* x_647; lean_object* x_648; uint8_t x_649; lean_inc(x_1); -x_977 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_978 = lean_ctor_get(x_977, 1); -lean_inc(x_978); -x_979 = lean_ctor_get(x_977, 0); -lean_inc(x_979); -lean_dec(x_977); -x_980 = !lean_is_exclusive(x_978); -if (x_980 == 0) +x_646 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_647 = lean_ctor_get(x_646, 1); +lean_inc(x_647); +x_648 = lean_ctor_get(x_646, 0); +lean_inc(x_648); +lean_dec(x_646); +x_649 = !lean_is_exclusive(x_647); +if (x_649 == 0) { -lean_object* x_981; lean_object* x_982; -x_981 = lean_ctor_get(x_978, 1); -lean_inc(x_979); -x_982 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_981, x_1, x_979); -lean_ctor_set(x_978, 1, x_982); -x_891 = x_979; -x_892 = x_978; -goto block_959; +lean_object* x_650; lean_object* x_651; +x_650 = lean_ctor_get(x_647, 1); +lean_inc(x_648); +x_651 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_650, x_1, x_648); +lean_ctor_set(x_647, 1, x_651); +x_599 = x_648; +x_600 = x_647; +goto block_642; } else { -lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; -x_983 = lean_ctor_get(x_978, 0); -x_984 = lean_ctor_get(x_978, 1); -lean_inc(x_984); -lean_inc(x_983); -lean_dec(x_978); -lean_inc(x_979); -x_985 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_984, x_1, x_979); -x_986 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_986, 0, x_983); -lean_ctor_set(x_986, 1, x_985); -x_891 = x_979; -x_892 = x_986; -goto block_959; +lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; +x_652 = lean_ctor_get(x_647, 0); +x_653 = lean_ctor_get(x_647, 1); +lean_inc(x_653); +lean_inc(x_652); +lean_dec(x_647); +lean_inc(x_648); +x_654 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_653, x_1, x_648); +x_655 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_655, 0, x_652); +lean_ctor_set(x_655, 1, x_654); +x_599 = x_648; +x_600 = x_655; +goto block_642; } } else { -lean_object* x_987; +lean_object* x_656; lean_dec(x_1); -x_987 = lean_ctor_get(x_976, 0); -lean_inc(x_987); -lean_dec(x_976); -x_891 = x_987; -x_892 = x_3; -goto block_959; +x_656 = lean_ctor_get(x_645, 0); +lean_inc(x_656); +lean_dec(x_645); +x_599 = x_656; +x_600 = x_3; +goto block_642; } } -block_959: +block_642: { -lean_object* x_893; -if (x_890 == 0) +lean_object* x_601; +if (x_598 == 0) { -lean_object* x_904; -x_904 = lean_box(0); -x_893 = x_904; -goto block_903; +lean_object* x_612; +x_612 = lean_box(0); +x_601 = x_612; +goto block_611; } else { -uint8_t x_905; -x_905 = l_Lean_Expr_isLambda(x_891); -if (x_905 == 0) +uint8_t x_613; +x_613 = l_Lean_Expr_isLambda(x_599); +if (x_613 == 0) { -lean_object* x_906; -x_906 = lean_box(0); -x_893 = x_906; -goto block_903; +lean_object* x_614; +x_614 = lean_box(0); +x_601 = x_614; +goto block_611; } else { -lean_object* x_907; uint8_t x_908; -x_907 = l_Lean_Expr_betaRev(x_891, x_2); -lean_dec(x_891); -x_908 = lean_expr_has_expr_mvar(x_907); -if (x_908 == 0) +lean_object* x_615; uint8_t x_616; +x_615 = l_Lean_Expr_betaRev(x_599, x_2); +lean_dec(x_599); +x_616 = l_Lean_Expr_hasMVar(x_615); +if (x_616 == 0) { -uint8_t x_909; -x_909 = lean_expr_has_level_mvar(x_907); -if (x_909 == 0) -{ -lean_object* x_910; -x_910 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_910, 0, x_907); -lean_ctor_set(x_910, 1, x_892); -return x_910; +lean_object* x_617; +x_617 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_617, 0, x_615); +lean_ctor_set(x_617, 1, x_600); +return x_617; } else { -lean_object* x_911; lean_object* x_912; -x_911 = lean_ctor_get(x_892, 1); -lean_inc(x_911); -x_912 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_911, x_907); -lean_dec(x_911); -if (lean_obj_tag(x_912) == 0) +lean_object* x_618; lean_object* x_619; +x_618 = lean_ctor_get(x_600, 1); +lean_inc(x_618); +x_619 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_618, x_615); +lean_dec(x_618); +if (lean_obj_tag(x_619) == 0) { -lean_object* x_913; uint8_t x_914; -lean_inc(x_907); -x_913 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_907, x_892); -x_914 = !lean_is_exclusive(x_913); -if (x_914 == 0) +lean_object* x_620; uint8_t x_621; +lean_inc(x_615); +x_620 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_615, x_600); +x_621 = !lean_is_exclusive(x_620); +if (x_621 == 0) { -lean_object* x_915; uint8_t x_916; -x_915 = lean_ctor_get(x_913, 1); -x_916 = !lean_is_exclusive(x_915); -if (x_916 == 0) +lean_object* x_622; uint8_t x_623; +x_622 = lean_ctor_get(x_620, 1); +x_623 = !lean_is_exclusive(x_622); +if (x_623 == 0) { -lean_object* x_917; lean_object* x_918; lean_object* x_919; -x_917 = lean_ctor_get(x_913, 0); -x_918 = lean_ctor_get(x_915, 1); -lean_inc(x_917); -x_919 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_918, x_907, x_917); -lean_ctor_set(x_915, 1, x_919); -return x_913; +lean_object* x_624; lean_object* x_625; lean_object* x_626; +x_624 = lean_ctor_get(x_620, 0); +x_625 = lean_ctor_get(x_622, 1); +lean_inc(x_624); +x_626 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_625, x_615, x_624); +lean_ctor_set(x_622, 1, x_626); +return x_620; } else { -lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; -x_920 = lean_ctor_get(x_913, 0); -x_921 = lean_ctor_get(x_915, 0); -x_922 = lean_ctor_get(x_915, 1); -lean_inc(x_922); -lean_inc(x_921); -lean_dec(x_915); -lean_inc(x_920); -x_923 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_922, x_907, x_920); -x_924 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_924, 0, x_921); -lean_ctor_set(x_924, 1, x_923); -lean_ctor_set(x_913, 1, x_924); -return x_913; +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; +x_627 = lean_ctor_get(x_620, 0); +x_628 = lean_ctor_get(x_622, 0); +x_629 = lean_ctor_get(x_622, 1); +lean_inc(x_629); +lean_inc(x_628); +lean_dec(x_622); +lean_inc(x_627); +x_630 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_629, x_615, x_627); +x_631 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_631, 0, x_628); +lean_ctor_set(x_631, 1, x_630); +lean_ctor_set(x_620, 1, x_631); +return x_620; } } else { -lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; -x_925 = lean_ctor_get(x_913, 1); -x_926 = lean_ctor_get(x_913, 0); -lean_inc(x_925); -lean_inc(x_926); -lean_dec(x_913); -x_927 = lean_ctor_get(x_925, 0); -lean_inc(x_927); -x_928 = lean_ctor_get(x_925, 1); -lean_inc(x_928); -if (lean_is_exclusive(x_925)) { - lean_ctor_release(x_925, 0); - lean_ctor_release(x_925, 1); - x_929 = x_925; +lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; +x_632 = lean_ctor_get(x_620, 1); +x_633 = lean_ctor_get(x_620, 0); +lean_inc(x_632); +lean_inc(x_633); +lean_dec(x_620); +x_634 = lean_ctor_get(x_632, 0); +lean_inc(x_634); +x_635 = lean_ctor_get(x_632, 1); +lean_inc(x_635); +if (lean_is_exclusive(x_632)) { + lean_ctor_release(x_632, 0); + lean_ctor_release(x_632, 1); + x_636 = x_632; } else { - lean_dec_ref(x_925); - x_929 = lean_box(0); + lean_dec_ref(x_632); + x_636 = lean_box(0); } -lean_inc(x_926); -x_930 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_928, x_907, x_926); -if (lean_is_scalar(x_929)) { - x_931 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_633); +x_637 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_635, x_615, x_633); +if (lean_is_scalar(x_636)) { + x_638 = lean_alloc_ctor(0, 2, 0); } else { - x_931 = x_929; + x_638 = x_636; } -lean_ctor_set(x_931, 0, x_927); -lean_ctor_set(x_931, 1, x_930); -x_932 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_932, 0, x_926); -lean_ctor_set(x_932, 1, x_931); -return x_932; +lean_ctor_set(x_638, 0, x_634); +lean_ctor_set(x_638, 1, x_637); +x_639 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_639, 0, x_633); +lean_ctor_set(x_639, 1, x_638); +return x_639; } } else { -lean_object* x_933; lean_object* x_934; -lean_dec(x_907); -x_933 = lean_ctor_get(x_912, 0); -lean_inc(x_933); -lean_dec(x_912); -x_934 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_934, 0, x_933); -lean_ctor_set(x_934, 1, x_892); -return x_934; +lean_object* x_640; lean_object* x_641; +lean_dec(x_615); +x_640 = lean_ctor_get(x_619, 0); +lean_inc(x_640); +lean_dec(x_619); +x_641 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_641, 0, x_640); +lean_ctor_set(x_641, 1, x_600); +return x_641; } } } +} +block_611: +{ +lean_object* x_602; lean_object* x_603; uint8_t x_604; +lean_dec(x_601); +x_602 = lean_unsigned_to_nat(0u); +x_603 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_602, x_2, x_600); +x_604 = !lean_is_exclusive(x_603); +if (x_604 == 0) +{ +lean_object* x_605; lean_object* x_606; +x_605 = lean_ctor_get(x_603, 0); +x_606 = l_Lean_mkAppRev(x_599, x_605); +lean_dec(x_605); +lean_ctor_set(x_603, 0, x_606); +return x_603; +} else { -lean_object* x_935; lean_object* x_936; -x_935 = lean_ctor_get(x_892, 1); -lean_inc(x_935); -x_936 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_935, x_907); -lean_dec(x_935); -if (lean_obj_tag(x_936) == 0) -{ -lean_object* x_937; uint8_t x_938; -lean_inc(x_907); -x_937 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_907, x_892); -x_938 = !lean_is_exclusive(x_937); -if (x_938 == 0) -{ -lean_object* x_939; uint8_t x_940; -x_939 = lean_ctor_get(x_937, 1); -x_940 = !lean_is_exclusive(x_939); -if (x_940 == 0) -{ -lean_object* x_941; lean_object* x_942; lean_object* x_943; -x_941 = lean_ctor_get(x_937, 0); -x_942 = lean_ctor_get(x_939, 1); -lean_inc(x_941); -x_943 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_942, x_907, x_941); -lean_ctor_set(x_939, 1, x_943); -return x_937; -} -else -{ -lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; -x_944 = lean_ctor_get(x_937, 0); -x_945 = lean_ctor_get(x_939, 0); -x_946 = lean_ctor_get(x_939, 1); -lean_inc(x_946); -lean_inc(x_945); -lean_dec(x_939); -lean_inc(x_944); -x_947 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_946, x_907, x_944); -x_948 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_948, 0, x_945); -lean_ctor_set(x_948, 1, x_947); -lean_ctor_set(x_937, 1, x_948); -return x_937; -} -} -else -{ -lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; -x_949 = lean_ctor_get(x_937, 1); -x_950 = lean_ctor_get(x_937, 0); -lean_inc(x_949); -lean_inc(x_950); -lean_dec(x_937); -x_951 = lean_ctor_get(x_949, 0); -lean_inc(x_951); -x_952 = lean_ctor_get(x_949, 1); -lean_inc(x_952); -if (lean_is_exclusive(x_949)) { - lean_ctor_release(x_949, 0); - lean_ctor_release(x_949, 1); - x_953 = x_949; -} else { - lean_dec_ref(x_949); - x_953 = lean_box(0); -} -lean_inc(x_950); -x_954 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_952, x_907, x_950); -if (lean_is_scalar(x_953)) { - x_955 = lean_alloc_ctor(0, 2, 0); -} else { - x_955 = x_953; -} -lean_ctor_set(x_955, 0, x_951); -lean_ctor_set(x_955, 1, x_954); -x_956 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_956, 0, x_950); -lean_ctor_set(x_956, 1, x_955); -return x_956; -} -} -else -{ -lean_object* x_957; lean_object* x_958; -lean_dec(x_907); -x_957 = lean_ctor_get(x_936, 0); -lean_inc(x_957); -lean_dec(x_936); -x_958 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_958, 0, x_957); -lean_ctor_set(x_958, 1, x_892); -return x_958; -} -} -} -} -block_903: -{ -lean_object* x_894; lean_object* x_895; uint8_t x_896; -lean_dec(x_893); -x_894 = lean_unsigned_to_nat(0u); -x_895 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_894, x_2, x_892); -x_896 = !lean_is_exclusive(x_895); -if (x_896 == 0) -{ -lean_object* x_897; lean_object* x_898; -x_897 = lean_ctor_get(x_895, 0); -x_898 = l_Lean_mkAppRev(x_891, x_897); -lean_dec(x_897); -lean_ctor_set(x_895, 0, x_898); -return x_895; -} -else -{ -lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; -x_899 = lean_ctor_get(x_895, 0); -x_900 = lean_ctor_get(x_895, 1); -lean_inc(x_900); -lean_inc(x_899); -lean_dec(x_895); -x_901 = l_Lean_mkAppRev(x_891, x_899); -lean_dec(x_899); -x_902 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_902, 0, x_901); -lean_ctor_set(x_902, 1, x_900); -return x_902; +lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; +x_607 = lean_ctor_get(x_603, 0); +x_608 = lean_ctor_get(x_603, 1); +lean_inc(x_608); +lean_inc(x_607); +lean_dec(x_603); +x_609 = l_Lean_mkAppRev(x_599, x_607); +lean_dec(x_607); +x_610 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_610, 0, x_609); +lean_ctor_set(x_610, 1, x_608); +return x_610; } } } } default: { -uint8_t x_988; lean_object* x_989; lean_object* x_990; uint8_t x_1058; -x_988 = l_Lean_Expr_isMVar(x_1); -x_1058 = lean_expr_has_expr_mvar(x_1); -if (x_1058 == 0) +uint8_t x_657; lean_object* x_658; lean_object* x_659; uint8_t x_702; +x_657 = l_Lean_Expr_isMVar(x_1); +x_702 = l_Lean_Expr_hasMVar(x_1); +if (x_702 == 0) { -uint8_t x_1059; -x_1059 = lean_expr_has_level_mvar(x_1); -if (x_1059 == 0) -{ -x_989 = x_1; -x_990 = x_3; -goto block_1057; +x_658 = x_1; +x_659 = x_3; +goto block_701; } else { -lean_object* x_1060; lean_object* x_1061; -x_1060 = lean_ctor_get(x_3, 1); -lean_inc(x_1060); -x_1061 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_1060, x_1); -lean_dec(x_1060); -if (lean_obj_tag(x_1061) == 0) +lean_object* x_703; lean_object* x_704; +x_703 = lean_ctor_get(x_3, 1); +lean_inc(x_703); +x_704 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_703, x_1); +lean_dec(x_703); +if (lean_obj_tag(x_704) == 0) { -lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; uint8_t x_1065; +lean_object* x_705; lean_object* x_706; lean_object* x_707; uint8_t x_708; lean_inc(x_1); -x_1062 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_1063 = lean_ctor_get(x_1062, 1); -lean_inc(x_1063); -x_1064 = lean_ctor_get(x_1062, 0); -lean_inc(x_1064); -lean_dec(x_1062); -x_1065 = !lean_is_exclusive(x_1063); -if (x_1065 == 0) +x_705 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); +x_706 = lean_ctor_get(x_705, 1); +lean_inc(x_706); +x_707 = lean_ctor_get(x_705, 0); +lean_inc(x_707); +lean_dec(x_705); +x_708 = !lean_is_exclusive(x_706); +if (x_708 == 0) { -lean_object* x_1066; lean_object* x_1067; -x_1066 = lean_ctor_get(x_1063, 1); -lean_inc(x_1064); -x_1067 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1066, x_1, x_1064); -lean_ctor_set(x_1063, 1, x_1067); -x_989 = x_1064; -x_990 = x_1063; -goto block_1057; +lean_object* x_709; lean_object* x_710; +x_709 = lean_ctor_get(x_706, 1); +lean_inc(x_707); +x_710 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_709, x_1, x_707); +lean_ctor_set(x_706, 1, x_710); +x_658 = x_707; +x_659 = x_706; +goto block_701; } else { -lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; -x_1068 = lean_ctor_get(x_1063, 0); -x_1069 = lean_ctor_get(x_1063, 1); -lean_inc(x_1069); -lean_inc(x_1068); -lean_dec(x_1063); -lean_inc(x_1064); -x_1070 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1069, x_1, x_1064); -x_1071 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1071, 0, x_1068); -lean_ctor_set(x_1071, 1, x_1070); -x_989 = x_1064; -x_990 = x_1071; -goto block_1057; +lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_711 = lean_ctor_get(x_706, 0); +x_712 = lean_ctor_get(x_706, 1); +lean_inc(x_712); +lean_inc(x_711); +lean_dec(x_706); +lean_inc(x_707); +x_713 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_712, x_1, x_707); +x_714 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_714, 0, x_711); +lean_ctor_set(x_714, 1, x_713); +x_658 = x_707; +x_659 = x_714; +goto block_701; } } else { -lean_object* x_1072; +lean_object* x_715; lean_dec(x_1); -x_1072 = lean_ctor_get(x_1061, 0); -lean_inc(x_1072); -lean_dec(x_1061); -x_989 = x_1072; -x_990 = x_3; -goto block_1057; +x_715 = lean_ctor_get(x_704, 0); +lean_inc(x_715); +lean_dec(x_704); +x_658 = x_715; +x_659 = x_3; +goto block_701; } } +block_701: +{ +lean_object* x_660; +if (x_657 == 0) +{ +lean_object* x_671; +x_671 = lean_box(0); +x_660 = x_671; +goto block_670; +} +else +{ +uint8_t x_672; +x_672 = l_Lean_Expr_isLambda(x_658); +if (x_672 == 0) +{ +lean_object* x_673; +x_673 = lean_box(0); +x_660 = x_673; +goto block_670; +} +else +{ +lean_object* x_674; uint8_t x_675; +x_674 = l_Lean_Expr_betaRev(x_658, x_2); +lean_dec(x_658); +x_675 = l_Lean_Expr_hasMVar(x_674); +if (x_675 == 0) +{ +lean_object* x_676; +x_676 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_676, 0, x_674); +lean_ctor_set(x_676, 1, x_659); +return x_676; +} +else +{ +lean_object* x_677; lean_object* x_678; +x_677 = lean_ctor_get(x_659, 1); +lean_inc(x_677); +x_678 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_677, x_674); +lean_dec(x_677); +if (lean_obj_tag(x_678) == 0) +{ +lean_object* x_679; uint8_t x_680; +lean_inc(x_674); +x_679 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_674, x_659); +x_680 = !lean_is_exclusive(x_679); +if (x_680 == 0) +{ +lean_object* x_681; uint8_t x_682; +x_681 = lean_ctor_get(x_679, 1); +x_682 = !lean_is_exclusive(x_681); +if (x_682 == 0) +{ +lean_object* x_683; lean_object* x_684; lean_object* x_685; +x_683 = lean_ctor_get(x_679, 0); +x_684 = lean_ctor_get(x_681, 1); +lean_inc(x_683); +x_685 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_684, x_674, x_683); +lean_ctor_set(x_681, 1, x_685); +return x_679; +} +else +{ +lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; +x_686 = lean_ctor_get(x_679, 0); +x_687 = lean_ctor_get(x_681, 0); +x_688 = lean_ctor_get(x_681, 1); +lean_inc(x_688); +lean_inc(x_687); +lean_dec(x_681); +lean_inc(x_686); +x_689 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_688, x_674, x_686); +x_690 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_690, 0, x_687); +lean_ctor_set(x_690, 1, x_689); +lean_ctor_set(x_679, 1, x_690); +return x_679; +} } else { -lean_object* x_1073; lean_object* x_1074; -x_1073 = lean_ctor_get(x_3, 1); -lean_inc(x_1073); -x_1074 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_1073, x_1); -lean_dec(x_1073); -if (lean_obj_tag(x_1074) == 0) -{ -lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; uint8_t x_1078; -lean_inc(x_1); -x_1075 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1, x_3); -x_1076 = lean_ctor_get(x_1075, 1); -lean_inc(x_1076); -x_1077 = lean_ctor_get(x_1075, 0); -lean_inc(x_1077); -lean_dec(x_1075); -x_1078 = !lean_is_exclusive(x_1076); -if (x_1078 == 0) -{ -lean_object* x_1079; lean_object* x_1080; -x_1079 = lean_ctor_get(x_1076, 1); -lean_inc(x_1077); -x_1080 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1079, x_1, x_1077); -lean_ctor_set(x_1076, 1, x_1080); -x_989 = x_1077; -x_990 = x_1076; -goto block_1057; -} -else -{ -lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; -x_1081 = lean_ctor_get(x_1076, 0); -x_1082 = lean_ctor_get(x_1076, 1); -lean_inc(x_1082); -lean_inc(x_1081); -lean_dec(x_1076); -lean_inc(x_1077); -x_1083 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1082, x_1, x_1077); -x_1084 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1084, 0, x_1081); -lean_ctor_set(x_1084, 1, x_1083); -x_989 = x_1077; -x_990 = x_1084; -goto block_1057; -} -} -else -{ -lean_object* x_1085; -lean_dec(x_1); -x_1085 = lean_ctor_get(x_1074, 0); -lean_inc(x_1085); -lean_dec(x_1074); -x_989 = x_1085; -x_990 = x_3; -goto block_1057; -} -} -block_1057: -{ -lean_object* x_991; -if (x_988 == 0) -{ -lean_object* x_1002; -x_1002 = lean_box(0); -x_991 = x_1002; -goto block_1001; -} -else -{ -uint8_t x_1003; -x_1003 = l_Lean_Expr_isLambda(x_989); -if (x_1003 == 0) -{ -lean_object* x_1004; -x_1004 = lean_box(0); -x_991 = x_1004; -goto block_1001; -} -else -{ -lean_object* x_1005; uint8_t x_1006; -x_1005 = l_Lean_Expr_betaRev(x_989, x_2); -lean_dec(x_989); -x_1006 = lean_expr_has_expr_mvar(x_1005); -if (x_1006 == 0) -{ -uint8_t x_1007; -x_1007 = lean_expr_has_level_mvar(x_1005); -if (x_1007 == 0) -{ -lean_object* x_1008; -x_1008 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1008, 0, x_1005); -lean_ctor_set(x_1008, 1, x_990); -return x_1008; -} -else -{ -lean_object* x_1009; lean_object* x_1010; -x_1009 = lean_ctor_get(x_990, 1); -lean_inc(x_1009); -x_1010 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_1009, x_1005); -lean_dec(x_1009); -if (lean_obj_tag(x_1010) == 0) -{ -lean_object* x_1011; uint8_t x_1012; -lean_inc(x_1005); -x_1011 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1005, x_990); -x_1012 = !lean_is_exclusive(x_1011); -if (x_1012 == 0) -{ -lean_object* x_1013; uint8_t x_1014; -x_1013 = lean_ctor_get(x_1011, 1); -x_1014 = !lean_is_exclusive(x_1013); -if (x_1014 == 0) -{ -lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; -x_1015 = lean_ctor_get(x_1011, 0); -x_1016 = lean_ctor_get(x_1013, 1); -lean_inc(x_1015); -x_1017 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1016, x_1005, x_1015); -lean_ctor_set(x_1013, 1, x_1017); -return x_1011; -} -else -{ -lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; -x_1018 = lean_ctor_get(x_1011, 0); -x_1019 = lean_ctor_get(x_1013, 0); -x_1020 = lean_ctor_get(x_1013, 1); -lean_inc(x_1020); -lean_inc(x_1019); -lean_dec(x_1013); -lean_inc(x_1018); -x_1021 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1020, x_1005, x_1018); -x_1022 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1022, 0, x_1019); -lean_ctor_set(x_1022, 1, x_1021); -lean_ctor_set(x_1011, 1, x_1022); -return x_1011; -} -} -else -{ -lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; -x_1023 = lean_ctor_get(x_1011, 1); -x_1024 = lean_ctor_get(x_1011, 0); -lean_inc(x_1023); -lean_inc(x_1024); -lean_dec(x_1011); -x_1025 = lean_ctor_get(x_1023, 0); -lean_inc(x_1025); -x_1026 = lean_ctor_get(x_1023, 1); -lean_inc(x_1026); -if (lean_is_exclusive(x_1023)) { - lean_ctor_release(x_1023, 0); - lean_ctor_release(x_1023, 1); - x_1027 = x_1023; +lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_691 = lean_ctor_get(x_679, 1); +x_692 = lean_ctor_get(x_679, 0); +lean_inc(x_691); +lean_inc(x_692); +lean_dec(x_679); +x_693 = lean_ctor_get(x_691, 0); +lean_inc(x_693); +x_694 = lean_ctor_get(x_691, 1); +lean_inc(x_694); +if (lean_is_exclusive(x_691)) { + lean_ctor_release(x_691, 0); + lean_ctor_release(x_691, 1); + x_695 = x_691; } else { - lean_dec_ref(x_1023); - x_1027 = lean_box(0); + lean_dec_ref(x_691); + x_695 = lean_box(0); } -lean_inc(x_1024); -x_1028 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1026, x_1005, x_1024); -if (lean_is_scalar(x_1027)) { - x_1029 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_692); +x_696 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_694, x_674, x_692); +if (lean_is_scalar(x_695)) { + x_697 = lean_alloc_ctor(0, 2, 0); } else { - x_1029 = x_1027; + x_697 = x_695; } -lean_ctor_set(x_1029, 0, x_1025); -lean_ctor_set(x_1029, 1, x_1028); -x_1030 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1030, 0, x_1024); -lean_ctor_set(x_1030, 1, x_1029); -return x_1030; +lean_ctor_set(x_697, 0, x_693); +lean_ctor_set(x_697, 1, x_696); +x_698 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_698, 0, x_692); +lean_ctor_set(x_698, 1, x_697); +return x_698; } } else { -lean_object* x_1031; lean_object* x_1032; -lean_dec(x_1005); -x_1031 = lean_ctor_get(x_1010, 0); -lean_inc(x_1031); -lean_dec(x_1010); -x_1032 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1032, 0, x_1031); -lean_ctor_set(x_1032, 1, x_990); -return x_1032; +lean_object* x_699; lean_object* x_700; +lean_dec(x_674); +x_699 = lean_ctor_get(x_678, 0); +lean_inc(x_699); +lean_dec(x_678); +x_700 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_700, 0, x_699); +lean_ctor_set(x_700, 1, x_659); +return x_700; } } } +} +block_670: +{ +lean_object* x_661; lean_object* x_662; uint8_t x_663; +lean_dec(x_660); +x_661 = lean_unsigned_to_nat(0u); +x_662 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_661, x_2, x_659); +x_663 = !lean_is_exclusive(x_662); +if (x_663 == 0) +{ +lean_object* x_664; lean_object* x_665; +x_664 = lean_ctor_get(x_662, 0); +x_665 = l_Lean_mkAppRev(x_658, x_664); +lean_dec(x_664); +lean_ctor_set(x_662, 0, x_665); +return x_662; +} else { -lean_object* x_1033; lean_object* x_1034; -x_1033 = lean_ctor_get(x_990, 1); -lean_inc(x_1033); -x_1034 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_1033, x_1005); -lean_dec(x_1033); -if (lean_obj_tag(x_1034) == 0) -{ -lean_object* x_1035; uint8_t x_1036; -lean_inc(x_1005); -x_1035 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_1005, x_990); -x_1036 = !lean_is_exclusive(x_1035); -if (x_1036 == 0) -{ -lean_object* x_1037; uint8_t x_1038; -x_1037 = lean_ctor_get(x_1035, 1); -x_1038 = !lean_is_exclusive(x_1037); -if (x_1038 == 0) -{ -lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; -x_1039 = lean_ctor_get(x_1035, 0); -x_1040 = lean_ctor_get(x_1037, 1); -lean_inc(x_1039); -x_1041 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1040, x_1005, x_1039); -lean_ctor_set(x_1037, 1, x_1041); -return x_1035; -} -else -{ -lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; -x_1042 = lean_ctor_get(x_1035, 0); -x_1043 = lean_ctor_get(x_1037, 0); -x_1044 = lean_ctor_get(x_1037, 1); -lean_inc(x_1044); -lean_inc(x_1043); -lean_dec(x_1037); -lean_inc(x_1042); -x_1045 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1044, x_1005, x_1042); -x_1046 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1046, 0, x_1043); -lean_ctor_set(x_1046, 1, x_1045); -lean_ctor_set(x_1035, 1, x_1046); -return x_1035; -} -} -else -{ -lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; -x_1047 = lean_ctor_get(x_1035, 1); -x_1048 = lean_ctor_get(x_1035, 0); -lean_inc(x_1047); -lean_inc(x_1048); -lean_dec(x_1035); -x_1049 = lean_ctor_get(x_1047, 0); -lean_inc(x_1049); -x_1050 = lean_ctor_get(x_1047, 1); -lean_inc(x_1050); -if (lean_is_exclusive(x_1047)) { - lean_ctor_release(x_1047, 0); - lean_ctor_release(x_1047, 1); - x_1051 = x_1047; -} else { - lean_dec_ref(x_1047); - x_1051 = lean_box(0); -} -lean_inc(x_1048); -x_1052 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_1050, x_1005, x_1048); -if (lean_is_scalar(x_1051)) { - x_1053 = lean_alloc_ctor(0, 2, 0); -} else { - x_1053 = x_1051; -} -lean_ctor_set(x_1053, 0, x_1049); -lean_ctor_set(x_1053, 1, x_1052); -x_1054 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1054, 0, x_1048); -lean_ctor_set(x_1054, 1, x_1053); -return x_1054; -} -} -else -{ -lean_object* x_1055; lean_object* x_1056; -lean_dec(x_1005); -x_1055 = lean_ctor_get(x_1034, 0); -lean_inc(x_1055); -lean_dec(x_1034); -x_1056 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1056, 0, x_1055); -lean_ctor_set(x_1056, 1, x_990); -return x_1056; -} -} -} -} -block_1001: -{ -lean_object* x_992; lean_object* x_993; uint8_t x_994; -lean_dec(x_991); -x_992 = lean_unsigned_to_nat(0u); -x_993 = l_Array_umapMAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__3(x_992, x_2, x_990); -x_994 = !lean_is_exclusive(x_993); -if (x_994 == 0) -{ -lean_object* x_995; lean_object* x_996; -x_995 = lean_ctor_get(x_993, 0); -x_996 = l_Lean_mkAppRev(x_989, x_995); -lean_dec(x_995); -lean_ctor_set(x_993, 0, x_996); -return x_993; -} -else -{ -lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; -x_997 = lean_ctor_get(x_993, 0); -x_998 = lean_ctor_get(x_993, 1); -lean_inc(x_998); -lean_inc(x_997); -lean_dec(x_993); -x_999 = l_Lean_mkAppRev(x_989, x_997); -lean_dec(x_997); -x_1000 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1000, 0, x_999); -lean_ctor_set(x_1000, 1, x_998); -return x_1000; +lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; +x_666 = lean_ctor_get(x_662, 0); +x_667 = lean_ctor_get(x_662, 1); +lean_inc(x_667); +lean_inc(x_666); +lean_dec(x_662); +x_668 = l_Lean_mkAppRev(x_658, x_666); +lean_dec(x_666); +x_669 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_669, 0, x_668); +lean_ctor_set(x_669, 1, x_667); +return x_669; } } } @@ -13922,7 +11721,7 @@ goto block_14; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_85; +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_77; x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); lean_dec(x_38); @@ -13933,555 +11732,344 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_39, 2); lean_inc(x_42); lean_dec(x_39); -x_85 = lean_expr_has_expr_mvar(x_42); -if (x_85 == 0) -{ -uint8_t x_86; -x_86 = lean_expr_has_level_mvar(x_42); -if (x_86 == 0) +x_77 = l_Lean_Expr_hasMVar(x_42); +if (x_77 == 0) { lean_dec(x_35); x_43 = x_42; x_44 = x_2; -goto block_84; +goto block_76; } else { -lean_object* x_87; -x_87 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_42); +lean_object* x_78; +x_78 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_42); lean_dec(x_35); -if (lean_obj_tag(x_87) == 0) +if (lean_obj_tag(x_78) == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; +lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_inc(x_42); -x_88 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_42, x_2); -x_89 = lean_ctor_get(x_88, 1); +x_79 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_42, x_2); +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +lean_dec(x_79); +x_82 = !lean_is_exclusive(x_80); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +x_84 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_83, x_42, x_81); +lean_ctor_set(x_80, 1, x_84); +x_43 = x_81; +x_44 = x_80; +goto block_76; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_85 = lean_ctor_get(x_80, 0); +x_86 = lean_ctor_get(x_80, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_80); +lean_inc(x_81); +x_87 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_86, x_42, x_81); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_85); +lean_ctor_set(x_88, 1, x_87); +x_43 = x_81; +x_44 = x_88; +goto block_76; +} +} +else +{ +lean_object* x_89; +lean_dec(x_42); +x_89 = lean_ctor_get(x_78, 0); lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 0); +lean_dec(x_78); +x_43 = x_89; +x_44 = x_2; +goto block_76; +} +} +block_76: +{ +uint8_t x_45; +x_45 = l_Lean_Expr_hasMVar(x_43); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_array_get_size(x_41); +x_47 = lean_expr_abstract(x_43, x_41); +lean_inc(x_40); +x_48 = l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__1(x_40, x_41, x_46, x_47, x_44); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_metavar_ctx_assign_delayed(x_52, x_33, x_40, x_41, x_43); +lean_ctor_set(x_50, 0, x_53); +lean_inc(x_1); +x_3 = x_1; +x_4 = x_50; +goto block_14; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_50, 0); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_50); +x_56 = lean_metavar_ctx_assign_delayed(x_54, x_33, x_40, x_41, x_43); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +lean_inc(x_1); +x_3 = x_1; +x_4 = x_57; +goto block_14; +} +} +else +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_dec(x_43); +lean_dec(x_41); +lean_dec(x_40); +x_58 = lean_ctor_get(x_48, 1); +lean_inc(x_58); +lean_dec(x_48); +x_59 = lean_ctor_get(x_49, 0); +lean_inc(x_59); +lean_dec(x_49); +x_60 = !lean_is_exclusive(x_58); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_33); +x_62 = lean_metavar_ctx_erase_delayed(x_61, x_33); +lean_inc(x_59); +x_63 = lean_metavar_ctx_assign_expr(x_62, x_33, x_59); +lean_ctor_set(x_58, 0, x_63); +x_3 = x_59; +x_4 = x_58; +goto block_14; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_64 = lean_ctor_get(x_58, 0); +x_65 = lean_ctor_get(x_58, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_58); +lean_inc(x_33); +x_66 = lean_metavar_ctx_erase_delayed(x_64, x_33); +lean_inc(x_59); +x_67 = lean_metavar_ctx_assign_expr(x_66, x_33, x_59); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +x_3 = x_59; +x_4 = x_68; +goto block_14; +} +} +} +else +{ +uint8_t x_69; +x_69 = !lean_is_exclusive(x_44); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +x_70 = lean_ctor_get(x_44, 0); +x_71 = lean_metavar_ctx_assign_delayed(x_70, x_33, x_40, x_41, x_43); +lean_ctor_set(x_44, 0, x_71); +lean_inc(x_1); +x_3 = x_1; +x_4 = x_44; +goto block_14; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_44, 0); +x_73 = lean_ctor_get(x_44, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_44); +x_74 = lean_metavar_ctx_assign_delayed(x_72, x_33, x_40, x_41, x_43); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +lean_inc(x_1); +x_3 = x_1; +x_4 = x_75; +goto block_14; +} +} +} +} +} +else +{ +lean_object* x_90; uint8_t x_91; +x_90 = lean_ctor_get(x_37, 0); lean_inc(x_90); -lean_dec(x_88); -x_91 = !lean_is_exclusive(x_89); +lean_dec(x_37); +x_91 = l_Lean_Expr_hasMVar(x_90); if (x_91 == 0) { -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_89, 1); +uint8_t x_92; +x_92 = !lean_is_exclusive(x_2); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_2, 1); +lean_dec(x_93); +x_94 = lean_ctor_get(x_2, 0); +lean_dec(x_94); lean_inc(x_90); -x_93 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_92, x_42, x_90); -lean_ctor_set(x_89, 1, x_93); -x_43 = x_90; -x_44 = x_89; -goto block_84; +x_95 = lean_metavar_ctx_assign_expr(x_34, x_33, x_90); +lean_ctor_set(x_2, 0, x_95); +x_3 = x_90; +x_4 = x_2; +goto block_14; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_94 = lean_ctor_get(x_89, 0); -x_95 = lean_ctor_get(x_89, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_89); +lean_object* x_96; lean_object* x_97; +lean_dec(x_2); lean_inc(x_90); -x_96 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_95, x_42, x_90); +x_96 = lean_metavar_ctx_assign_expr(x_34, x_33, x_90); x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_96); -x_43 = x_90; -x_44 = x_97; -goto block_84; +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_35); +x_3 = x_90; +x_4 = x_97; +goto block_14; } } else { lean_object* x_98; -lean_dec(x_42); -x_98 = lean_ctor_get(x_87, 0); -lean_inc(x_98); -lean_dec(x_87); -x_43 = x_98; -x_44 = x_2; -goto block_84; -} -} -} -else +x_98 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_90); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_99; -x_99 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_42); +lean_object* x_99; uint8_t x_100; lean_dec(x_35); -if (lean_obj_tag(x_99) == 0) +lean_dec(x_34); +lean_inc(x_2); +lean_inc(x_90); +x_99 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_90, x_2); +x_100 = !lean_is_exclusive(x_2); +if (x_100 == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -lean_inc(x_42); -x_100 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_42, x_2); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 0); -lean_inc(x_102); -lean_dec(x_100); -x_103 = !lean_is_exclusive(x_101); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -x_105 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_104, x_42, x_102); -lean_ctor_set(x_101, 1, x_105); -x_43 = x_102; -x_44 = x_101; -goto block_84; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_106 = lean_ctor_get(x_101, 0); -x_107 = lean_ctor_get(x_101, 1); -lean_inc(x_107); -lean_inc(x_106); +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; lean_object* x_108; +x_101 = lean_ctor_get(x_2, 1); lean_dec(x_101); -lean_inc(x_102); -x_108 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_107, x_42, x_102); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_108); -x_43 = x_102; -x_44 = x_109; -goto block_84; -} +x_102 = lean_ctor_get(x_2, 0); +lean_dec(x_102); +x_103 = lean_ctor_get(x_99, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_99, 1); +lean_inc(x_104); +lean_dec(x_99); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +lean_inc(x_103); +x_107 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_106, x_90, x_103); +lean_inc(x_103); +x_108 = lean_metavar_ctx_assign_expr(x_105, x_33, x_103); +lean_ctor_set(x_2, 1, x_107); +lean_ctor_set(x_2, 0, x_108); +x_3 = x_103; +x_4 = x_2; +goto block_14; } else { -lean_object* x_110; -lean_dec(x_42); -x_110 = lean_ctor_get(x_99, 0); +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_2); +x_109 = lean_ctor_get(x_99, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_99, 1); lean_inc(x_110); lean_dec(x_99); -x_43 = x_110; -x_44 = x_2; -goto block_84; -} -} -block_84: -{ -uint8_t x_45; -x_45 = lean_expr_has_expr_mvar(x_43); -if (x_45 == 0) -{ -uint8_t x_46; -x_46 = lean_expr_has_level_mvar(x_43); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_array_get_size(x_41); -x_48 = lean_expr_abstract(x_43, x_41); -lean_inc(x_40); -x_49 = l___private_Init_Lean_MetavarContext_5__instantiateDelayedAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__1(x_40, x_41, x_47, x_48, x_44); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -if (lean_obj_tag(x_50) == 0) -{ -lean_object* x_51; uint8_t x_52; -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_51, 0); -x_54 = lean_metavar_ctx_assign_delayed(x_53, x_33, x_40, x_41, x_43); -lean_ctor_set(x_51, 0, x_54); -lean_inc(x_1); -x_3 = x_1; -x_4 = x_51; -goto block_14; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_51, 0); -x_56 = lean_ctor_get(x_51, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_51); -x_57 = lean_metavar_ctx_assign_delayed(x_55, x_33, x_40, x_41, x_43); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -lean_inc(x_1); -x_3 = x_1; -x_4 = x_58; -goto block_14; -} -} -else -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -lean_dec(x_43); -lean_dec(x_41); -lean_dec(x_40); -x_59 = lean_ctor_get(x_49, 1); -lean_inc(x_59); -lean_dec(x_49); -x_60 = lean_ctor_get(x_50, 0); -lean_inc(x_60); -lean_dec(x_50); -x_61 = !lean_is_exclusive(x_59); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_59, 0); -lean_inc(x_33); -x_63 = lean_metavar_ctx_erase_delayed(x_62, x_33); -lean_inc(x_60); -x_64 = lean_metavar_ctx_assign_expr(x_63, x_33, x_60); -lean_ctor_set(x_59, 0, x_64); -x_3 = x_60; -x_4 = x_59; -goto block_14; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_65 = lean_ctor_get(x_59, 0); -x_66 = lean_ctor_get(x_59, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_59); -lean_inc(x_33); -x_67 = lean_metavar_ctx_erase_delayed(x_65, x_33); -lean_inc(x_60); -x_68 = lean_metavar_ctx_assign_expr(x_67, x_33, x_60); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_66); -x_3 = x_60; -x_4 = x_69; -goto block_14; -} -} -} -else -{ -uint8_t x_70; -x_70 = !lean_is_exclusive(x_44); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_44, 0); -x_72 = lean_metavar_ctx_assign_delayed(x_71, x_33, x_40, x_41, x_43); -lean_ctor_set(x_44, 0, x_72); -lean_inc(x_1); -x_3 = x_1; -x_4 = x_44; -goto block_14; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_73 = lean_ctor_get(x_44, 0); -x_74 = lean_ctor_get(x_44, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_44); -x_75 = lean_metavar_ctx_assign_delayed(x_73, x_33, x_40, x_41, x_43); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -lean_inc(x_1); -x_3 = x_1; -x_4 = x_76; -goto block_14; -} -} -} -else -{ -uint8_t x_77; -x_77 = !lean_is_exclusive(x_44); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_44, 0); -x_79 = lean_metavar_ctx_assign_delayed(x_78, x_33, x_40, x_41, x_43); -lean_ctor_set(x_44, 0, x_79); -lean_inc(x_1); -x_3 = x_1; -x_4 = x_44; -goto block_14; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_44, 0); -x_81 = lean_ctor_get(x_44, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_44); -x_82 = lean_metavar_ctx_assign_delayed(x_80, x_33, x_40, x_41, x_43); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_81); -lean_inc(x_1); -x_3 = x_1; -x_4 = x_83; -goto block_14; -} -} -} -} -} -else -{ -lean_object* x_111; uint8_t x_112; -x_111 = lean_ctor_get(x_37, 0); +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -lean_dec(x_37); -x_112 = lean_expr_has_expr_mvar(x_111); -if (x_112 == 0) +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +lean_inc(x_109); +x_113 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_112, x_90, x_109); +lean_inc(x_109); +x_114 = lean_metavar_ctx_assign_expr(x_111, x_33, x_109); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_113); +x_3 = x_109; +x_4 = x_115; +goto block_14; +} +} +else { -uint8_t x_113; -x_113 = lean_expr_has_level_mvar(x_111); -if (x_113 == 0) +uint8_t x_116; +lean_dec(x_90); +x_116 = !lean_is_exclusive(x_2); +if (x_116 == 0) { -uint8_t x_114; -x_114 = !lean_is_exclusive(x_2); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_2, 1); -lean_dec(x_115); -x_116 = lean_ctor_get(x_2, 0); -lean_dec(x_116); -lean_inc(x_111); -x_117 = lean_metavar_ctx_assign_expr(x_34, x_33, x_111); -lean_ctor_set(x_2, 0, x_117); -x_3 = x_111; +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_117 = lean_ctor_get(x_2, 1); +lean_dec(x_117); +x_118 = lean_ctor_get(x_2, 0); +lean_dec(x_118); +x_119 = lean_ctor_get(x_98, 0); +lean_inc(x_119); +lean_dec(x_98); +lean_inc(x_119); +x_120 = lean_metavar_ctx_assign_expr(x_34, x_33, x_119); +lean_ctor_set(x_2, 0, x_120); +x_3 = x_119; x_4 = x_2; goto block_14; } else { -lean_object* x_118; lean_object* x_119; +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_dec(x_2); -lean_inc(x_111); -x_118 = lean_metavar_ctx_assign_expr(x_34, x_33, x_111); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_35); -x_3 = x_111; -x_4 = x_119; -goto block_14; -} -} -else -{ -lean_object* x_120; -x_120 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_111); -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; uint8_t x_122; -lean_dec(x_35); -lean_dec(x_34); -lean_inc(x_2); -lean_inc(x_111); -x_121 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_111, x_2); -x_122 = !lean_is_exclusive(x_2); -if (x_122 == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_123 = lean_ctor_get(x_2, 1); -lean_dec(x_123); -x_124 = lean_ctor_get(x_2, 0); -lean_dec(x_124); -x_125 = lean_ctor_get(x_121, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_121, 1); -lean_inc(x_126); -lean_dec(x_121); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -lean_inc(x_125); -x_129 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_128, x_111, x_125); -lean_inc(x_125); -x_130 = lean_metavar_ctx_assign_expr(x_127, x_33, x_125); -lean_ctor_set(x_2, 1, x_129); -lean_ctor_set(x_2, 0, x_130); -x_3 = x_125; -x_4 = x_2; -goto block_14; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_2); -x_131 = lean_ctor_get(x_121, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_121, 1); -lean_inc(x_132); -lean_dec(x_121); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -lean_dec(x_132); -lean_inc(x_131); -x_135 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_134, x_111, x_131); -lean_inc(x_131); -x_136 = lean_metavar_ctx_assign_expr(x_133, x_33, x_131); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -x_3 = x_131; -x_4 = x_137; -goto block_14; -} -} -else -{ -uint8_t x_138; -lean_dec(x_111); -x_138 = !lean_is_exclusive(x_2); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_139 = lean_ctor_get(x_2, 1); -lean_dec(x_139); -x_140 = lean_ctor_get(x_2, 0); -lean_dec(x_140); -x_141 = lean_ctor_get(x_120, 0); -lean_inc(x_141); -lean_dec(x_120); -lean_inc(x_141); -x_142 = lean_metavar_ctx_assign_expr(x_34, x_33, x_141); -lean_ctor_set(x_2, 0, x_142); -x_3 = x_141; -x_4 = x_2; -goto block_14; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_2); -x_143 = lean_ctor_get(x_120, 0); -lean_inc(x_143); -lean_dec(x_120); -lean_inc(x_143); -x_144 = lean_metavar_ctx_assign_expr(x_34, x_33, x_143); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_35); -x_3 = x_143; -x_4 = x_145; -goto block_14; -} -} -} -} -else -{ -lean_object* x_146; -x_146 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_35, x_111); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; uint8_t x_148; -lean_dec(x_35); -lean_dec(x_34); -lean_inc(x_2); -lean_inc(x_111); -x_147 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_111, x_2); -x_148 = !lean_is_exclusive(x_2); -if (x_148 == 0) -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_149 = lean_ctor_get(x_2, 1); -lean_dec(x_149); -x_150 = lean_ctor_get(x_2, 0); -lean_dec(x_150); -x_151 = lean_ctor_get(x_147, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_147, 1); -lean_inc(x_152); -lean_dec(x_147); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -lean_inc(x_151); -x_155 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_154, x_111, x_151); -lean_inc(x_151); -x_156 = lean_metavar_ctx_assign_expr(x_153, x_33, x_151); -lean_ctor_set(x_2, 1, x_155); -lean_ctor_set(x_2, 0, x_156); -x_3 = x_151; -x_4 = x_2; -goto block_14; -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_2); -x_157 = lean_ctor_get(x_147, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_147, 1); -lean_inc(x_158); -lean_dec(x_147); -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -lean_inc(x_157); -x_161 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_160, x_111, x_157); -lean_inc(x_157); -x_162 = lean_metavar_ctx_assign_expr(x_159, x_33, x_157); -x_163 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_161); -x_3 = x_157; -x_4 = x_163; -goto block_14; -} -} -else -{ -uint8_t x_164; -lean_dec(x_111); -x_164 = !lean_is_exclusive(x_2); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_165 = lean_ctor_get(x_2, 1); -lean_dec(x_165); -x_166 = lean_ctor_get(x_2, 0); -lean_dec(x_166); -x_167 = lean_ctor_get(x_146, 0); -lean_inc(x_167); -lean_dec(x_146); -lean_inc(x_167); -x_168 = lean_metavar_ctx_assign_expr(x_34, x_33, x_167); -lean_ctor_set(x_2, 0, x_168); -x_3 = x_167; -x_4 = x_2; -goto block_14; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_2); -x_169 = lean_ctor_get(x_146, 0); -lean_inc(x_169); -lean_dec(x_146); -lean_inc(x_169); -x_170 = lean_metavar_ctx_assign_expr(x_34, x_33, x_169); -x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_35); -x_3 = x_169; -x_4 = x_171; +x_121 = lean_ctor_get(x_98, 0); +lean_inc(x_121); +lean_dec(x_98); +lean_inc(x_121); +x_122 = lean_metavar_ctx_assign_expr(x_34, x_33, x_121); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_35); +x_3 = x_121; +x_4 = x_123; goto block_14; } } @@ -14490,596 +12078,506 @@ goto block_14; } else { -lean_object* x_172; lean_object* x_173; +lean_object* x_124; lean_object* x_125; lean_dec(x_35); lean_dec(x_34); lean_dec(x_33); lean_dec(x_1); -x_172 = lean_ctor_get(x_36, 0); -lean_inc(x_172); +x_124 = lean_ctor_get(x_36, 0); +lean_inc(x_124); lean_dec(x_36); -x_173 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_173, 0, x_172); -lean_ctor_set(x_173, 1, x_2); -return x_173; +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_2); +return x_125; } } case 3: { -lean_object* x_174; uint8_t x_175; -x_174 = lean_ctor_get(x_1, 0); -lean_inc(x_174); -x_175 = !lean_is_exclusive(x_2); -if (x_175 == 0) +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_1, 0); +lean_inc(x_126); +x_127 = !lean_is_exclusive(x_2); +if (x_127 == 0) { -lean_object* x_176; lean_object* x_177; uint8_t x_178; -x_176 = lean_ctor_get(x_2, 0); -x_177 = l_Lean_MetavarContext_instantiateLevelMVars___main(x_174, x_176); -x_178 = !lean_is_exclusive(x_177); -if (x_178 == 0) +lean_object* x_128; lean_object* x_129; uint8_t x_130; +x_128 = lean_ctor_get(x_2, 0); +x_129 = l_Lean_MetavarContext_instantiateLevelMVars___main(x_126, x_128); +x_130 = !lean_is_exclusive(x_129); +if (x_130 == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_177, 0); -x_180 = lean_ctor_get(x_177, 1); -lean_ctor_set(x_2, 0, x_180); -x_181 = lean_expr_update_sort(x_1, x_179); -lean_ctor_set(x_177, 1, x_2); -lean_ctor_set(x_177, 0, x_181); -return x_177; +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_129, 0); +x_132 = lean_ctor_get(x_129, 1); +lean_ctor_set(x_2, 0, x_132); +x_133 = lean_expr_update_sort(x_1, x_131); +lean_ctor_set(x_129, 1, x_2); +lean_ctor_set(x_129, 0, x_133); +return x_129; } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_182 = lean_ctor_get(x_177, 0); -x_183 = lean_ctor_get(x_177, 1); -lean_inc(x_183); -lean_inc(x_182); -lean_dec(x_177); -lean_ctor_set(x_2, 0, x_183); -x_184 = lean_expr_update_sort(x_1, x_182); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_2); -return x_185; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_129, 0); +x_135 = lean_ctor_get(x_129, 1); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_129); +lean_ctor_set(x_2, 0, x_135); +x_136 = lean_expr_update_sort(x_1, x_134); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_2); +return x_137; } } else { -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_186 = lean_ctor_get(x_2, 0); -x_187 = lean_ctor_get(x_2, 1); -lean_inc(x_187); -lean_inc(x_186); +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_138 = lean_ctor_get(x_2, 0); +x_139 = lean_ctor_get(x_2, 1); +lean_inc(x_139); +lean_inc(x_138); lean_dec(x_2); -x_188 = l_Lean_MetavarContext_instantiateLevelMVars___main(x_174, x_186); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_191 = x_188; +x_140 = l_Lean_MetavarContext_instantiateLevelMVars___main(x_126, x_138); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_143 = x_140; } else { - lean_dec_ref(x_188); - x_191 = lean_box(0); + lean_dec_ref(x_140); + x_143 = lean_box(0); } -x_192 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_192, 0, x_190); -lean_ctor_set(x_192, 1, x_187); -x_193 = lean_expr_update_sort(x_1, x_189); -if (lean_is_scalar(x_191)) { - x_194 = lean_alloc_ctor(0, 2, 0); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_139); +x_145 = lean_expr_update_sort(x_1, x_141); +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(0, 2, 0); } else { - x_194 = x_191; + x_146 = x_143; } -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -return x_194; +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_144); +return x_146; } } case 4: { -lean_object* x_195; lean_object* x_196; uint8_t x_197; -x_195 = lean_ctor_get(x_1, 1); -lean_inc(x_195); -x_196 = l_List_mapM___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__2(x_195, x_2); -x_197 = !lean_is_exclusive(x_196); -if (x_197 == 0) +lean_object* x_147; lean_object* x_148; uint8_t x_149; +x_147 = lean_ctor_get(x_1, 1); +lean_inc(x_147); +x_148 = l_List_mapM___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__2(x_147, x_2); +x_149 = !lean_is_exclusive(x_148); +if (x_149 == 0) { -lean_object* x_198; lean_object* x_199; -x_198 = lean_ctor_get(x_196, 0); -x_199 = lean_expr_update_const(x_1, x_198); -lean_ctor_set(x_196, 0, x_199); -return x_196; +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_148, 0); +x_151 = lean_expr_update_const(x_1, x_150); +lean_ctor_set(x_148, 0, x_151); +return x_148; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_200 = lean_ctor_get(x_196, 0); -x_201 = lean_ctor_get(x_196, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_196); -x_202 = lean_expr_update_const(x_1, x_200); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -return x_203; +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_152 = lean_ctor_get(x_148, 0); +x_153 = lean_ctor_get(x_148, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_148); +x_154 = lean_expr_update_const(x_1, x_152); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +return x_155; } } case 5: { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_204 = lean_unsigned_to_nat(0u); -x_205 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_204); -x_206 = lean_mk_empty_array_with_capacity(x_205); -lean_dec(x_205); -x_207 = l___private_Init_Lean_Expr_6__withAppRevAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__4(x_1, x_206, x_2); -return x_207; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_156 = lean_unsigned_to_nat(0u); +x_157 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_156); +x_158 = lean_mk_empty_array_with_capacity(x_157); +lean_dec(x_157); +x_159 = l___private_Init_Lean_Expr_5__withAppRevAux___main___at_Lean_MetavarContext_InstantiateExprMVars_main___main___spec__4(x_1, x_158, x_2); +return x_159; } case 6: { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; uint8_t x_251; -x_208 = lean_ctor_get(x_1, 1); -lean_inc(x_208); -x_209 = lean_ctor_get(x_1, 2); -lean_inc(x_209); -x_251 = lean_expr_has_expr_mvar(x_208); -if (x_251 == 0) +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_190; +x_160 = lean_ctor_get(x_1, 1); +lean_inc(x_160); +x_161 = lean_ctor_get(x_1, 2); +lean_inc(x_161); +x_190 = l_Lean_Expr_hasMVar(x_160); +if (x_190 == 0) { -uint8_t x_252; -x_252 = lean_expr_has_level_mvar(x_208); -if (x_252 == 0) -{ -x_210 = x_208; -x_211 = x_2; -goto block_250; +x_162 = x_160; +x_163 = x_2; +goto block_189; } else { -lean_object* x_253; lean_object* x_254; -x_253 = lean_ctor_get(x_2, 1); -lean_inc(x_253); -x_254 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_253, x_208); -lean_dec(x_253); -if (lean_obj_tag(x_254) == 0) +lean_object* x_191; lean_object* x_192; +x_191 = lean_ctor_get(x_2, 1); +lean_inc(x_191); +x_192 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_191, x_160); +lean_dec(x_191); +if (lean_obj_tag(x_192) == 0) { -lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; -lean_inc(x_208); -x_255 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_208, x_2); -x_256 = lean_ctor_get(x_255, 1); -lean_inc(x_256); -x_257 = lean_ctor_get(x_255, 0); -lean_inc(x_257); -lean_dec(x_255); -x_258 = !lean_is_exclusive(x_256); -if (x_258 == 0) +lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; +lean_inc(x_160); +x_193 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_160, x_2); +x_194 = lean_ctor_get(x_193, 1); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 0); +lean_inc(x_195); +lean_dec(x_193); +x_196 = !lean_is_exclusive(x_194); +if (x_196 == 0) { -lean_object* x_259; lean_object* x_260; -x_259 = lean_ctor_get(x_256, 1); -lean_inc(x_257); -x_260 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_259, x_208, x_257); -lean_ctor_set(x_256, 1, x_260); -x_210 = x_257; -x_211 = x_256; -goto block_250; +lean_object* x_197; lean_object* x_198; +x_197 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +x_198 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_197, x_160, x_195); +lean_ctor_set(x_194, 1, x_198); +x_162 = x_195; +x_163 = x_194; +goto block_189; } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_261 = lean_ctor_get(x_256, 0); -x_262 = lean_ctor_get(x_256, 1); -lean_inc(x_262); -lean_inc(x_261); -lean_dec(x_256); -lean_inc(x_257); -x_263 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_262, x_208, x_257); -x_264 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_264, 0, x_261); -lean_ctor_set(x_264, 1, x_263); -x_210 = x_257; -x_211 = x_264; -goto block_250; +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_199 = lean_ctor_get(x_194, 0); +x_200 = lean_ctor_get(x_194, 1); +lean_inc(x_200); +lean_inc(x_199); +lean_dec(x_194); +lean_inc(x_195); +x_201 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_200, x_160, x_195); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_201); +x_162 = x_195; +x_163 = x_202; +goto block_189; } } else { -lean_object* x_265; -lean_dec(x_208); -x_265 = lean_ctor_get(x_254, 0); -lean_inc(x_265); -lean_dec(x_254); -x_210 = x_265; -x_211 = x_2; -goto block_250; +lean_object* x_203; +lean_dec(x_160); +x_203 = lean_ctor_get(x_192, 0); +lean_inc(x_203); +lean_dec(x_192); +x_162 = x_203; +x_163 = x_2; +goto block_189; } } +block_189: +{ +lean_object* x_164; lean_object* x_165; uint8_t x_175; +x_175 = l_Lean_Expr_hasMVar(x_161); +if (x_175 == 0) +{ +x_164 = x_161; +x_165 = x_163; +goto block_174; +} +else +{ +lean_object* x_176; lean_object* x_177; +x_176 = lean_ctor_get(x_163, 1); +lean_inc(x_176); +x_177 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_176, x_161); +lean_dec(x_176); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; +lean_inc(x_161); +x_178 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_161, x_163); +x_179 = lean_ctor_get(x_178, 1); +lean_inc(x_179); +x_180 = lean_ctor_get(x_178, 0); +lean_inc(x_180); +lean_dec(x_178); +x_181 = !lean_is_exclusive(x_179); +if (x_181 == 0) +{ +lean_object* x_182; lean_object* x_183; +x_182 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +x_183 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_182, x_161, x_180); +lean_ctor_set(x_179, 1, x_183); +x_164 = x_180; +x_165 = x_179; +goto block_174; +} +else +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_184 = lean_ctor_get(x_179, 0); +x_185 = lean_ctor_get(x_179, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_179); +lean_inc(x_180); +x_186 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_185, x_161, x_180); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_184); +lean_ctor_set(x_187, 1, x_186); +x_164 = x_180; +x_165 = x_187; +goto block_174; +} } else { -lean_object* x_266; lean_object* x_267; -x_266 = lean_ctor_get(x_2, 1); -lean_inc(x_266); -x_267 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_266, x_208); -lean_dec(x_266); -if (lean_obj_tag(x_267) == 0) -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; -lean_inc(x_208); -x_268 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_208, x_2); -x_269 = lean_ctor_get(x_268, 1); -lean_inc(x_269); -x_270 = lean_ctor_get(x_268, 0); -lean_inc(x_270); -lean_dec(x_268); -x_271 = !lean_is_exclusive(x_269); -if (x_271 == 0) -{ -lean_object* x_272; lean_object* x_273; -x_272 = lean_ctor_get(x_269, 1); -lean_inc(x_270); -x_273 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_272, x_208, x_270); -lean_ctor_set(x_269, 1, x_273); -x_210 = x_270; -x_211 = x_269; -goto block_250; -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_274 = lean_ctor_get(x_269, 0); -x_275 = lean_ctor_get(x_269, 1); -lean_inc(x_275); -lean_inc(x_274); -lean_dec(x_269); -lean_inc(x_270); -x_276 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_275, x_208, x_270); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_274); -lean_ctor_set(x_277, 1, x_276); -x_210 = x_270; -x_211 = x_277; -goto block_250; +lean_object* x_188; +lean_dec(x_161); +x_188 = lean_ctor_get(x_177, 0); +lean_inc(x_188); +lean_dec(x_177); +x_164 = x_188; +x_165 = x_163; +goto block_174; } } -else -{ -lean_object* x_278; -lean_dec(x_208); -x_278 = lean_ctor_get(x_267, 0); -lean_inc(x_278); -lean_dec(x_267); -x_210 = x_278; -x_211 = x_2; -goto block_250; -} -} -block_250: -{ -lean_object* x_212; lean_object* x_213; uint8_t x_222; -x_222 = lean_expr_has_expr_mvar(x_209); -if (x_222 == 0) -{ -uint8_t x_223; -x_223 = lean_expr_has_level_mvar(x_209); -if (x_223 == 0) -{ -x_212 = x_209; -x_213 = x_211; -goto block_221; -} -else -{ -lean_object* x_224; lean_object* x_225; -x_224 = lean_ctor_get(x_211, 1); -lean_inc(x_224); -x_225 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_224, x_209); -lean_dec(x_224); -if (lean_obj_tag(x_225) == 0) -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_229; -lean_inc(x_209); -x_226 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_209, x_211); -x_227 = lean_ctor_get(x_226, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_226, 0); -lean_inc(x_228); -lean_dec(x_226); -x_229 = !lean_is_exclusive(x_227); -if (x_229 == 0) -{ -lean_object* x_230; lean_object* x_231; -x_230 = lean_ctor_get(x_227, 1); -lean_inc(x_228); -x_231 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_230, x_209, x_228); -lean_ctor_set(x_227, 1, x_231); -x_212 = x_228; -x_213 = x_227; -goto block_221; -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_232 = lean_ctor_get(x_227, 0); -x_233 = lean_ctor_get(x_227, 1); -lean_inc(x_233); -lean_inc(x_232); -lean_dec(x_227); -lean_inc(x_228); -x_234 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_233, x_209, x_228); -x_235 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_235, 0, x_232); -lean_ctor_set(x_235, 1, x_234); -x_212 = x_228; -x_213 = x_235; -goto block_221; -} -} -else -{ -lean_object* x_236; -lean_dec(x_209); -x_236 = lean_ctor_get(x_225, 0); -lean_inc(x_236); -lean_dec(x_225); -x_212 = x_236; -x_213 = x_211; -goto block_221; -} -} -} -else -{ -lean_object* x_237; lean_object* x_238; -x_237 = lean_ctor_get(x_211, 1); -lean_inc(x_237); -x_238 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_237, x_209); -lean_dec(x_237); -if (lean_obj_tag(x_238) == 0) -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; -lean_inc(x_209); -x_239 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_209, x_211); -x_240 = lean_ctor_get(x_239, 1); -lean_inc(x_240); -x_241 = lean_ctor_get(x_239, 0); -lean_inc(x_241); -lean_dec(x_239); -x_242 = !lean_is_exclusive(x_240); -if (x_242 == 0) -{ -lean_object* x_243; lean_object* x_244; -x_243 = lean_ctor_get(x_240, 1); -lean_inc(x_241); -x_244 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_243, x_209, x_241); -lean_ctor_set(x_240, 1, x_244); -x_212 = x_241; -x_213 = x_240; -goto block_221; -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_245 = lean_ctor_get(x_240, 0); -x_246 = lean_ctor_get(x_240, 1); -lean_inc(x_246); -lean_inc(x_245); -lean_dec(x_240); -lean_inc(x_241); -x_247 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_246, x_209, x_241); -x_248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_248, 0, x_245); -lean_ctor_set(x_248, 1, x_247); -x_212 = x_241; -x_213 = x_248; -goto block_221; -} -} -else -{ -lean_object* x_249; -lean_dec(x_209); -x_249 = lean_ctor_get(x_238, 0); -lean_inc(x_249); -lean_dec(x_238); -x_212 = x_249; -x_213 = x_211; -goto block_221; -} -} -block_221: +block_174: { if (lean_obj_tag(x_1) == 6) { -uint8_t x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); -x_215 = lean_expr_update_lambda(x_1, x_214, x_210, x_212); -x_216 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_213); -return x_216; +uint64_t x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; +x_166 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_167 = (uint8_t)((x_166 << 24) >> 61); +x_168 = lean_expr_update_lambda(x_1, x_167, x_162, x_164); +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_168); +lean_ctor_set(x_169, 1, x_165); +return x_169; } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -lean_dec(x_212); -lean_dec(x_210); +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_164); +lean_dec(x_162); lean_dec(x_1); -x_217 = l_Lean_Expr_inhabited; -x_218 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_219 = lean_panic_fn(x_218); -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_213); -return x_220; +x_170 = l_Lean_Expr_Inhabited; +x_171 = l_Lean_Expr_updateLambdaE_x21___closed__1; +x_172 = lean_panic_fn(x_171); +x_173 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_165); +return x_173; } } } } case 7: { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_322; -x_279 = lean_ctor_get(x_1, 1); -lean_inc(x_279); -x_280 = lean_ctor_get(x_1, 2); -lean_inc(x_280); -x_322 = lean_expr_has_expr_mvar(x_279); -if (x_322 == 0) +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_234; +x_204 = lean_ctor_get(x_1, 1); +lean_inc(x_204); +x_205 = lean_ctor_get(x_1, 2); +lean_inc(x_205); +x_234 = l_Lean_Expr_hasMVar(x_204); +if (x_234 == 0) { -uint8_t x_323; -x_323 = lean_expr_has_level_mvar(x_279); -if (x_323 == 0) -{ -x_281 = x_279; -x_282 = x_2; -goto block_321; +x_206 = x_204; +x_207 = x_2; +goto block_233; } else { -lean_object* x_324; lean_object* x_325; -x_324 = lean_ctor_get(x_2, 1); -lean_inc(x_324); -x_325 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_324, x_279); -lean_dec(x_324); -if (lean_obj_tag(x_325) == 0) +lean_object* x_235; lean_object* x_236; +x_235 = lean_ctor_get(x_2, 1); +lean_inc(x_235); +x_236 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_235, x_204); +lean_dec(x_235); +if (lean_obj_tag(x_236) == 0) { -lean_object* x_326; lean_object* x_327; lean_object* x_328; uint8_t x_329; -lean_inc(x_279); -x_326 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_279, x_2); -x_327 = lean_ctor_get(x_326, 1); -lean_inc(x_327); -x_328 = lean_ctor_get(x_326, 0); -lean_inc(x_328); -lean_dec(x_326); -x_329 = !lean_is_exclusive(x_327); -if (x_329 == 0) +lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; +lean_inc(x_204); +x_237 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_204, x_2); +x_238 = lean_ctor_get(x_237, 1); +lean_inc(x_238); +x_239 = lean_ctor_get(x_237, 0); +lean_inc(x_239); +lean_dec(x_237); +x_240 = !lean_is_exclusive(x_238); +if (x_240 == 0) { -lean_object* x_330; lean_object* x_331; -x_330 = lean_ctor_get(x_327, 1); -lean_inc(x_328); -x_331 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_330, x_279, x_328); -lean_ctor_set(x_327, 1, x_331); -x_281 = x_328; -x_282 = x_327; -goto block_321; +lean_object* x_241; lean_object* x_242; +x_241 = lean_ctor_get(x_238, 1); +lean_inc(x_239); +x_242 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_241, x_204, x_239); +lean_ctor_set(x_238, 1, x_242); +x_206 = x_239; +x_207 = x_238; +goto block_233; } else { -lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; -x_332 = lean_ctor_get(x_327, 0); -x_333 = lean_ctor_get(x_327, 1); -lean_inc(x_333); -lean_inc(x_332); -lean_dec(x_327); -lean_inc(x_328); -x_334 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_333, x_279, x_328); -x_335 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_335, 0, x_332); -lean_ctor_set(x_335, 1, x_334); -x_281 = x_328; -x_282 = x_335; -goto block_321; +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_243 = lean_ctor_get(x_238, 0); +x_244 = lean_ctor_get(x_238, 1); +lean_inc(x_244); +lean_inc(x_243); +lean_dec(x_238); +lean_inc(x_239); +x_245 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_244, x_204, x_239); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_243); +lean_ctor_set(x_246, 1, x_245); +x_206 = x_239; +x_207 = x_246; +goto block_233; } } else { -lean_object* x_336; -lean_dec(x_279); -x_336 = lean_ctor_get(x_325, 0); -lean_inc(x_336); -lean_dec(x_325); -x_281 = x_336; -x_282 = x_2; -goto block_321; +lean_object* x_247; +lean_dec(x_204); +x_247 = lean_ctor_get(x_236, 0); +lean_inc(x_247); +lean_dec(x_236); +x_206 = x_247; +x_207 = x_2; +goto block_233; } } +block_233: +{ +lean_object* x_208; lean_object* x_209; uint8_t x_219; +x_219 = l_Lean_Expr_hasMVar(x_205); +if (x_219 == 0) +{ +x_208 = x_205; +x_209 = x_207; +goto block_218; +} +else +{ +lean_object* x_220; lean_object* x_221; +x_220 = lean_ctor_get(x_207, 1); +lean_inc(x_220); +x_221 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_220, x_205); +lean_dec(x_220); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; +lean_inc(x_205); +x_222 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_205, x_207); +x_223 = lean_ctor_get(x_222, 1); +lean_inc(x_223); +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +lean_dec(x_222); +x_225 = !lean_is_exclusive(x_223); +if (x_225 == 0) +{ +lean_object* x_226; lean_object* x_227; +x_226 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +x_227 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_226, x_205, x_224); +lean_ctor_set(x_223, 1, x_227); +x_208 = x_224; +x_209 = x_223; +goto block_218; +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_228 = lean_ctor_get(x_223, 0); +x_229 = lean_ctor_get(x_223, 1); +lean_inc(x_229); +lean_inc(x_228); +lean_dec(x_223); +lean_inc(x_224); +x_230 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_229, x_205, x_224); +x_231 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_230); +x_208 = x_224; +x_209 = x_231; +goto block_218; +} } else { -lean_object* x_337; lean_object* x_338; -x_337 = lean_ctor_get(x_2, 1); -lean_inc(x_337); -x_338 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_337, x_279); -lean_dec(x_337); -if (lean_obj_tag(x_338) == 0) +lean_object* x_232; +lean_dec(x_205); +x_232 = lean_ctor_get(x_221, 0); +lean_inc(x_232); +lean_dec(x_221); +x_208 = x_232; +x_209 = x_207; +goto block_218; +} +} +block_218: { -lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; -lean_inc(x_279); -x_339 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_279, x_2); -x_340 = lean_ctor_get(x_339, 1); -lean_inc(x_340); -x_341 = lean_ctor_get(x_339, 0); -lean_inc(x_341); -lean_dec(x_339); -x_342 = !lean_is_exclusive(x_340); -if (x_342 == 0) +if (lean_obj_tag(x_1) == 7) { -lean_object* x_343; lean_object* x_344; -x_343 = lean_ctor_get(x_340, 1); -lean_inc(x_341); -x_344 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_343, x_279, x_341); -lean_ctor_set(x_340, 1, x_344); -x_281 = x_341; -x_282 = x_340; -goto block_321; +uint64_t x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; +x_210 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_211 = (uint8_t)((x_210 << 24) >> 61); +x_212 = lean_expr_update_forall(x_1, x_211, x_206, x_208); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_209); +return x_213; } else { -lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_345 = lean_ctor_get(x_340, 0); -x_346 = lean_ctor_get(x_340, 1); -lean_inc(x_346); -lean_inc(x_345); -lean_dec(x_340); -lean_inc(x_341); -x_347 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_346, x_279, x_341); -x_348 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_348, 0, x_345); -lean_ctor_set(x_348, 1, x_347); -x_281 = x_341; -x_282 = x_348; -goto block_321; +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_208); +lean_dec(x_206); +lean_dec(x_1); +x_214 = l_Lean_Expr_Inhabited; +x_215 = l_Lean_Expr_updateForallE_x21___closed__1; +x_216 = lean_panic_fn(x_215); +x_217 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_209); +return x_217; } } -else +} +} +case 8: { -lean_object* x_349; -lean_dec(x_279); -x_349 = lean_ctor_get(x_338, 0); -lean_inc(x_349); -lean_dec(x_338); -x_281 = x_349; -x_282 = x_2; -goto block_321; -} -} -block_321: -{ -lean_object* x_283; lean_object* x_284; uint8_t x_293; -x_293 = lean_expr_has_expr_mvar(x_280); -if (x_293 == 0) -{ -uint8_t x_294; -x_294 = lean_expr_has_level_mvar(x_280); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_294; +x_248 = lean_ctor_get(x_1, 1); +lean_inc(x_248); +x_249 = lean_ctor_get(x_1, 2); +lean_inc(x_249); +x_250 = lean_ctor_get(x_1, 3); +lean_inc(x_250); +x_294 = l_Lean_Expr_hasMVar(x_248); if (x_294 == 0) { -x_283 = x_280; -x_284 = x_282; -goto block_292; +x_251 = x_248; +x_252 = x_2; +goto block_293; } else { lean_object* x_295; lean_object* x_296; -x_295 = lean_ctor_get(x_282, 1); +x_295 = lean_ctor_get(x_2, 1); lean_inc(x_295); -x_296 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_295, x_280); +x_296 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_295, x_248); lean_dec(x_295); if (lean_obj_tag(x_296) == 0) { lean_object* x_297; lean_object* x_298; lean_object* x_299; uint8_t x_300; -lean_inc(x_280); -x_297 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_280, x_282); +lean_inc(x_248); +x_297 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_248, x_2); x_298 = lean_ctor_get(x_297, 1); lean_inc(x_298); x_299 = lean_ctor_get(x_297, 0); @@ -15091,11 +12589,11 @@ if (x_300 == 0) lean_object* x_301; lean_object* x_302; x_301 = lean_ctor_get(x_298, 1); lean_inc(x_299); -x_302 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_301, x_280, x_299); +x_302 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_301, x_248, x_299); lean_ctor_set(x_298, 1, x_302); -x_283 = x_299; -x_284 = x_298; -goto block_292; +x_251 = x_299; +x_252 = x_298; +goto block_293; } else { @@ -15106,546 +12604,190 @@ lean_inc(x_304); lean_inc(x_303); lean_dec(x_298); lean_inc(x_299); -x_305 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_304, x_280, x_299); +x_305 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_304, x_248, x_299); x_306 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_306, 0, x_303); lean_ctor_set(x_306, 1, x_305); -x_283 = x_299; -x_284 = x_306; -goto block_292; +x_251 = x_299; +x_252 = x_306; +goto block_293; } } else { lean_object* x_307; -lean_dec(x_280); +lean_dec(x_248); x_307 = lean_ctor_get(x_296, 0); lean_inc(x_307); lean_dec(x_296); -x_283 = x_307; -x_284 = x_282; -goto block_292; +x_251 = x_307; +x_252 = x_2; +goto block_293; } } +block_293: +{ +lean_object* x_253; lean_object* x_254; uint8_t x_279; +x_279 = l_Lean_Expr_hasMVar(x_249); +if (x_279 == 0) +{ +x_253 = x_249; +x_254 = x_252; +goto block_278; } else { -lean_object* x_308; lean_object* x_309; -x_308 = lean_ctor_get(x_282, 1); -lean_inc(x_308); -x_309 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_308, x_280); -lean_dec(x_308); -if (lean_obj_tag(x_309) == 0) -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; +lean_object* x_280; lean_object* x_281; +x_280 = lean_ctor_get(x_252, 1); lean_inc(x_280); -x_310 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_280, x_282); -x_311 = lean_ctor_get(x_310, 1); -lean_inc(x_311); -x_312 = lean_ctor_get(x_310, 0); -lean_inc(x_312); -lean_dec(x_310); -x_313 = !lean_is_exclusive(x_311); -if (x_313 == 0) -{ -lean_object* x_314; lean_object* x_315; -x_314 = lean_ctor_get(x_311, 1); -lean_inc(x_312); -x_315 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_314, x_280, x_312); -lean_ctor_set(x_311, 1, x_315); -x_283 = x_312; -x_284 = x_311; -goto block_292; -} -else -{ -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_316 = lean_ctor_get(x_311, 0); -x_317 = lean_ctor_get(x_311, 1); -lean_inc(x_317); -lean_inc(x_316); -lean_dec(x_311); -lean_inc(x_312); -x_318 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_317, x_280, x_312); -x_319 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_319, 0, x_316); -lean_ctor_set(x_319, 1, x_318); -x_283 = x_312; -x_284 = x_319; -goto block_292; -} -} -else -{ -lean_object* x_320; +x_281 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_280, x_249); lean_dec(x_280); -x_320 = lean_ctor_get(x_309, 0); -lean_inc(x_320); -lean_dec(x_309); -x_283 = x_320; -x_284 = x_282; -goto block_292; -} -} -block_292: +if (lean_obj_tag(x_281) == 0) { -if (lean_obj_tag(x_1) == 7) +lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; +lean_inc(x_249); +x_282 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_249, x_252); +x_283 = lean_ctor_get(x_282, 1); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 0); +lean_inc(x_284); +lean_dec(x_282); +x_285 = !lean_is_exclusive(x_283); +if (x_285 == 0) { -uint8_t x_285; lean_object* x_286; lean_object* x_287; -x_285 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); -x_286 = lean_expr_update_forall(x_1, x_285, x_281, x_283); -x_287 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_284); -return x_287; +lean_object* x_286; lean_object* x_287; +x_286 = lean_ctor_get(x_283, 1); +lean_inc(x_284); +x_287 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_286, x_249, x_284); +lean_ctor_set(x_283, 1, x_287); +x_253 = x_284; +x_254 = x_283; +goto block_278; } else { lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_288 = lean_ctor_get(x_283, 0); +x_289 = lean_ctor_get(x_283, 1); +lean_inc(x_289); +lean_inc(x_288); lean_dec(x_283); -lean_dec(x_281); -lean_dec(x_1); -x_288 = l_Lean_Expr_inhabited; -x_289 = l_Lean_Expr_updateForallE_x21___closed__1; -x_290 = lean_panic_fn(x_289); +lean_inc(x_284); +x_290 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_289, x_249, x_284); x_291 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_291, 0, x_290); -lean_ctor_set(x_291, 1, x_284); -return x_291; -} -} -} -} -case 8: -{ -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; uint8_t x_424; -x_350 = lean_ctor_get(x_1, 1); -lean_inc(x_350); -x_351 = lean_ctor_get(x_1, 2); -lean_inc(x_351); -x_352 = lean_ctor_get(x_1, 3); -lean_inc(x_352); -x_424 = lean_expr_has_expr_mvar(x_350); -if (x_424 == 0) -{ -uint8_t x_425; -x_425 = lean_expr_has_level_mvar(x_350); -if (x_425 == 0) -{ -x_353 = x_350; -x_354 = x_2; -goto block_423; -} -else -{ -lean_object* x_426; lean_object* x_427; -x_426 = lean_ctor_get(x_2, 1); -lean_inc(x_426); -x_427 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_426, x_350); -lean_dec(x_426); -if (lean_obj_tag(x_427) == 0) -{ -lean_object* x_428; lean_object* x_429; lean_object* x_430; uint8_t x_431; -lean_inc(x_350); -x_428 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_350, x_2); -x_429 = lean_ctor_get(x_428, 1); -lean_inc(x_429); -x_430 = lean_ctor_get(x_428, 0); -lean_inc(x_430); -lean_dec(x_428); -x_431 = !lean_is_exclusive(x_429); -if (x_431 == 0) -{ -lean_object* x_432; lean_object* x_433; -x_432 = lean_ctor_get(x_429, 1); -lean_inc(x_430); -x_433 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_432, x_350, x_430); -lean_ctor_set(x_429, 1, x_433); -x_353 = x_430; -x_354 = x_429; -goto block_423; -} -else -{ -lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_434 = lean_ctor_get(x_429, 0); -x_435 = lean_ctor_get(x_429, 1); -lean_inc(x_435); -lean_inc(x_434); -lean_dec(x_429); -lean_inc(x_430); -x_436 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_435, x_350, x_430); -x_437 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_437, 0, x_434); -lean_ctor_set(x_437, 1, x_436); -x_353 = x_430; -x_354 = x_437; -goto block_423; +lean_ctor_set(x_291, 0, x_288); +lean_ctor_set(x_291, 1, x_290); +x_253 = x_284; +x_254 = x_291; +goto block_278; } } else { -lean_object* x_438; -lean_dec(x_350); -x_438 = lean_ctor_get(x_427, 0); -lean_inc(x_438); -lean_dec(x_427); -x_353 = x_438; -x_354 = x_2; -goto block_423; +lean_object* x_292; +lean_dec(x_249); +x_292 = lean_ctor_get(x_281, 0); +lean_inc(x_292); +lean_dec(x_281); +x_253 = x_292; +x_254 = x_252; +goto block_278; } } +block_278: +{ +lean_object* x_255; lean_object* x_256; uint8_t x_264; +x_264 = l_Lean_Expr_hasMVar(x_250); +if (x_264 == 0) +{ +x_255 = x_250; +x_256 = x_254; +goto block_263; +} +else +{ +lean_object* x_265; lean_object* x_266; +x_265 = lean_ctor_get(x_254, 1); +lean_inc(x_265); +x_266 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_265, x_250); +lean_dec(x_265); +if (lean_obj_tag(x_266) == 0) +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; +lean_inc(x_250); +x_267 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_250, x_254); +x_268 = lean_ctor_get(x_267, 1); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 0); +lean_inc(x_269); +lean_dec(x_267); +x_270 = !lean_is_exclusive(x_268); +if (x_270 == 0) +{ +lean_object* x_271; lean_object* x_272; +x_271 = lean_ctor_get(x_268, 1); +lean_inc(x_269); +x_272 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_271, x_250, x_269); +lean_ctor_set(x_268, 1, x_272); +x_255 = x_269; +x_256 = x_268; +goto block_263; +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_273 = lean_ctor_get(x_268, 0); +x_274 = lean_ctor_get(x_268, 1); +lean_inc(x_274); +lean_inc(x_273); +lean_dec(x_268); +lean_inc(x_269); +x_275 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_274, x_250, x_269); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_273); +lean_ctor_set(x_276, 1, x_275); +x_255 = x_269; +x_256 = x_276; +goto block_263; +} } else { -lean_object* x_439; lean_object* x_440; -x_439 = lean_ctor_get(x_2, 1); -lean_inc(x_439); -x_440 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_439, x_350); -lean_dec(x_439); -if (lean_obj_tag(x_440) == 0) -{ -lean_object* x_441; lean_object* x_442; lean_object* x_443; uint8_t x_444; -lean_inc(x_350); -x_441 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_350, x_2); -x_442 = lean_ctor_get(x_441, 1); -lean_inc(x_442); -x_443 = lean_ctor_get(x_441, 0); -lean_inc(x_443); -lean_dec(x_441); -x_444 = !lean_is_exclusive(x_442); -if (x_444 == 0) -{ -lean_object* x_445; lean_object* x_446; -x_445 = lean_ctor_get(x_442, 1); -lean_inc(x_443); -x_446 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_445, x_350, x_443); -lean_ctor_set(x_442, 1, x_446); -x_353 = x_443; -x_354 = x_442; -goto block_423; -} -else -{ -lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; -x_447 = lean_ctor_get(x_442, 0); -x_448 = lean_ctor_get(x_442, 1); -lean_inc(x_448); -lean_inc(x_447); -lean_dec(x_442); -lean_inc(x_443); -x_449 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_448, x_350, x_443); -x_450 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_450, 0, x_447); -lean_ctor_set(x_450, 1, x_449); -x_353 = x_443; -x_354 = x_450; -goto block_423; +lean_object* x_277; +lean_dec(x_250); +x_277 = lean_ctor_get(x_266, 0); +lean_inc(x_277); +lean_dec(x_266); +x_255 = x_277; +x_256 = x_254; +goto block_263; } } -else -{ -lean_object* x_451; -lean_dec(x_350); -x_451 = lean_ctor_get(x_440, 0); -lean_inc(x_451); -lean_dec(x_440); -x_353 = x_451; -x_354 = x_2; -goto block_423; -} -} -block_423: -{ -lean_object* x_355; lean_object* x_356; uint8_t x_395; -x_395 = lean_expr_has_expr_mvar(x_351); -if (x_395 == 0) -{ -uint8_t x_396; -x_396 = lean_expr_has_level_mvar(x_351); -if (x_396 == 0) -{ -x_355 = x_351; -x_356 = x_354; -goto block_394; -} -else -{ -lean_object* x_397; lean_object* x_398; -x_397 = lean_ctor_get(x_354, 1); -lean_inc(x_397); -x_398 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_397, x_351); -lean_dec(x_397); -if (lean_obj_tag(x_398) == 0) -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; uint8_t x_402; -lean_inc(x_351); -x_399 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_351, x_354); -x_400 = lean_ctor_get(x_399, 1); -lean_inc(x_400); -x_401 = lean_ctor_get(x_399, 0); -lean_inc(x_401); -lean_dec(x_399); -x_402 = !lean_is_exclusive(x_400); -if (x_402 == 0) -{ -lean_object* x_403; lean_object* x_404; -x_403 = lean_ctor_get(x_400, 1); -lean_inc(x_401); -x_404 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_403, x_351, x_401); -lean_ctor_set(x_400, 1, x_404); -x_355 = x_401; -x_356 = x_400; -goto block_394; -} -else -{ -lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -x_405 = lean_ctor_get(x_400, 0); -x_406 = lean_ctor_get(x_400, 1); -lean_inc(x_406); -lean_inc(x_405); -lean_dec(x_400); -lean_inc(x_401); -x_407 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_406, x_351, x_401); -x_408 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_408, 0, x_405); -lean_ctor_set(x_408, 1, x_407); -x_355 = x_401; -x_356 = x_408; -goto block_394; -} -} -else -{ -lean_object* x_409; -lean_dec(x_351); -x_409 = lean_ctor_get(x_398, 0); -lean_inc(x_409); -lean_dec(x_398); -x_355 = x_409; -x_356 = x_354; -goto block_394; -} -} -} -else -{ -lean_object* x_410; lean_object* x_411; -x_410 = lean_ctor_get(x_354, 1); -lean_inc(x_410); -x_411 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_410, x_351); -lean_dec(x_410); -if (lean_obj_tag(x_411) == 0) -{ -lean_object* x_412; lean_object* x_413; lean_object* x_414; uint8_t x_415; -lean_inc(x_351); -x_412 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_351, x_354); -x_413 = lean_ctor_get(x_412, 1); -lean_inc(x_413); -x_414 = lean_ctor_get(x_412, 0); -lean_inc(x_414); -lean_dec(x_412); -x_415 = !lean_is_exclusive(x_413); -if (x_415 == 0) -{ -lean_object* x_416; lean_object* x_417; -x_416 = lean_ctor_get(x_413, 1); -lean_inc(x_414); -x_417 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_416, x_351, x_414); -lean_ctor_set(x_413, 1, x_417); -x_355 = x_414; -x_356 = x_413; -goto block_394; -} -else -{ -lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_418 = lean_ctor_get(x_413, 0); -x_419 = lean_ctor_get(x_413, 1); -lean_inc(x_419); -lean_inc(x_418); -lean_dec(x_413); -lean_inc(x_414); -x_420 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_419, x_351, x_414); -x_421 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_421, 0, x_418); -lean_ctor_set(x_421, 1, x_420); -x_355 = x_414; -x_356 = x_421; -goto block_394; -} -} -else -{ -lean_object* x_422; -lean_dec(x_351); -x_422 = lean_ctor_get(x_411, 0); -lean_inc(x_422); -lean_dec(x_411); -x_355 = x_422; -x_356 = x_354; -goto block_394; -} -} -block_394: -{ -lean_object* x_357; lean_object* x_358; uint8_t x_366; -x_366 = lean_expr_has_expr_mvar(x_352); -if (x_366 == 0) -{ -uint8_t x_367; -x_367 = lean_expr_has_level_mvar(x_352); -if (x_367 == 0) -{ -x_357 = x_352; -x_358 = x_356; -goto block_365; -} -else -{ -lean_object* x_368; lean_object* x_369; -x_368 = lean_ctor_get(x_356, 1); -lean_inc(x_368); -x_369 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_368, x_352); -lean_dec(x_368); -if (lean_obj_tag(x_369) == 0) -{ -lean_object* x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; -lean_inc(x_352); -x_370 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_352, x_356); -x_371 = lean_ctor_get(x_370, 1); -lean_inc(x_371); -x_372 = lean_ctor_get(x_370, 0); -lean_inc(x_372); -lean_dec(x_370); -x_373 = !lean_is_exclusive(x_371); -if (x_373 == 0) -{ -lean_object* x_374; lean_object* x_375; -x_374 = lean_ctor_get(x_371, 1); -lean_inc(x_372); -x_375 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_374, x_352, x_372); -lean_ctor_set(x_371, 1, x_375); -x_357 = x_372; -x_358 = x_371; -goto block_365; -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_376 = lean_ctor_get(x_371, 0); -x_377 = lean_ctor_get(x_371, 1); -lean_inc(x_377); -lean_inc(x_376); -lean_dec(x_371); -lean_inc(x_372); -x_378 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_377, x_352, x_372); -x_379 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_379, 0, x_376); -lean_ctor_set(x_379, 1, x_378); -x_357 = x_372; -x_358 = x_379; -goto block_365; -} -} -else -{ -lean_object* x_380; -lean_dec(x_352); -x_380 = lean_ctor_get(x_369, 0); -lean_inc(x_380); -lean_dec(x_369); -x_357 = x_380; -x_358 = x_356; -goto block_365; -} -} -} -else -{ -lean_object* x_381; lean_object* x_382; -x_381 = lean_ctor_get(x_356, 1); -lean_inc(x_381); -x_382 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_381, x_352); -lean_dec(x_381); -if (lean_obj_tag(x_382) == 0) -{ -lean_object* x_383; lean_object* x_384; lean_object* x_385; uint8_t x_386; -lean_inc(x_352); -x_383 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_352, x_356); -x_384 = lean_ctor_get(x_383, 1); -lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 0); -lean_inc(x_385); -lean_dec(x_383); -x_386 = !lean_is_exclusive(x_384); -if (x_386 == 0) -{ -lean_object* x_387; lean_object* x_388; -x_387 = lean_ctor_get(x_384, 1); -lean_inc(x_385); -x_388 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_387, x_352, x_385); -lean_ctor_set(x_384, 1, x_388); -x_357 = x_385; -x_358 = x_384; -goto block_365; -} -else -{ -lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_389 = lean_ctor_get(x_384, 0); -x_390 = lean_ctor_get(x_384, 1); -lean_inc(x_390); -lean_inc(x_389); -lean_dec(x_384); -lean_inc(x_385); -x_391 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_390, x_352, x_385); -x_392 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_392, 0, x_389); -lean_ctor_set(x_392, 1, x_391); -x_357 = x_385; -x_358 = x_392; -goto block_365; -} -} -else -{ -lean_object* x_393; -lean_dec(x_352); -x_393 = lean_ctor_get(x_382, 0); -lean_inc(x_393); -lean_dec(x_382); -x_357 = x_393; -x_358 = x_356; -goto block_365; -} -} -block_365: +block_263: { if (lean_obj_tag(x_1) == 8) { -lean_object* x_359; lean_object* x_360; -x_359 = lean_expr_update_let(x_1, x_353, x_355, x_357); -x_360 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_358); -return x_360; +lean_object* x_257; lean_object* x_258; +x_257 = lean_expr_update_let(x_1, x_251, x_253, x_255); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_256); +return x_258; } else { -lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -lean_dec(x_357); -lean_dec(x_355); -lean_dec(x_353); +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_255); +lean_dec(x_253); +lean_dec(x_251); lean_dec(x_1); -x_361 = l_Lean_Expr_inhabited; -x_362 = l_Lean_Expr_updateLet_x21___closed__1; -x_363 = lean_panic_fn(x_362); -x_364 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_358); -return x_364; +x_259 = l_Lean_Expr_Inhabited; +x_260 = l_Lean_Expr_updateLet_x21___closed__1; +x_261 = lean_panic_fn(x_260); +x_262 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_256); +return x_262; } } } @@ -15653,135 +12795,71 @@ return x_364; } case 10: { -lean_object* x_452; uint8_t x_453; -x_452 = lean_ctor_get(x_1, 1); -lean_inc(x_452); -x_453 = lean_expr_has_expr_mvar(x_452); -if (x_453 == 0) +lean_object* x_308; uint8_t x_309; +x_308 = lean_ctor_get(x_1, 1); +lean_inc(x_308); +x_309 = l_Lean_Expr_hasMVar(x_308); +if (x_309 == 0) { -uint8_t x_454; -x_454 = lean_expr_has_level_mvar(x_452); -if (x_454 == 0) -{ -x_15 = x_452; +x_15 = x_308; x_16 = x_2; goto block_23; } else { -lean_object* x_455; lean_object* x_456; -x_455 = lean_ctor_get(x_2, 1); -lean_inc(x_455); -x_456 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_455, x_452); -lean_dec(x_455); -if (lean_obj_tag(x_456) == 0) +lean_object* x_310; lean_object* x_311; +x_310 = lean_ctor_get(x_2, 1); +lean_inc(x_310); +x_311 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_310, x_308); +lean_dec(x_310); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; -lean_inc(x_452); -x_457 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_452, x_2); -x_458 = lean_ctor_get(x_457, 1); -lean_inc(x_458); -x_459 = lean_ctor_get(x_457, 0); -lean_inc(x_459); -lean_dec(x_457); -x_460 = !lean_is_exclusive(x_458); -if (x_460 == 0) +lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; +lean_inc(x_308); +x_312 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_308, x_2); +x_313 = lean_ctor_get(x_312, 1); +lean_inc(x_313); +x_314 = lean_ctor_get(x_312, 0); +lean_inc(x_314); +lean_dec(x_312); +x_315 = !lean_is_exclusive(x_313); +if (x_315 == 0) { -lean_object* x_461; lean_object* x_462; -x_461 = lean_ctor_get(x_458, 1); -lean_inc(x_459); -x_462 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_461, x_452, x_459); -lean_ctor_set(x_458, 1, x_462); -x_15 = x_459; -x_16 = x_458; +lean_object* x_316; lean_object* x_317; +x_316 = lean_ctor_get(x_313, 1); +lean_inc(x_314); +x_317 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_316, x_308, x_314); +lean_ctor_set(x_313, 1, x_317); +x_15 = x_314; +x_16 = x_313; goto block_23; } else { -lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; -x_463 = lean_ctor_get(x_458, 0); -x_464 = lean_ctor_get(x_458, 1); -lean_inc(x_464); -lean_inc(x_463); -lean_dec(x_458); -lean_inc(x_459); -x_465 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_464, x_452, x_459); -x_466 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_466, 0, x_463); -lean_ctor_set(x_466, 1, x_465); -x_15 = x_459; -x_16 = x_466; +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_318 = lean_ctor_get(x_313, 0); +x_319 = lean_ctor_get(x_313, 1); +lean_inc(x_319); +lean_inc(x_318); +lean_dec(x_313); +lean_inc(x_314); +x_320 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_319, x_308, x_314); +x_321 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_321, 0, x_318); +lean_ctor_set(x_321, 1, x_320); +x_15 = x_314; +x_16 = x_321; goto block_23; } } else { -lean_object* x_467; -lean_dec(x_452); -x_467 = lean_ctor_get(x_456, 0); -lean_inc(x_467); -lean_dec(x_456); -x_15 = x_467; -x_16 = x_2; -goto block_23; -} -} -} -else -{ -lean_object* x_468; lean_object* x_469; -x_468 = lean_ctor_get(x_2, 1); -lean_inc(x_468); -x_469 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_468, x_452); -lean_dec(x_468); -if (lean_obj_tag(x_469) == 0) -{ -lean_object* x_470; lean_object* x_471; lean_object* x_472; uint8_t x_473; -lean_inc(x_452); -x_470 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_452, x_2); -x_471 = lean_ctor_get(x_470, 1); -lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 0); -lean_inc(x_472); -lean_dec(x_470); -x_473 = !lean_is_exclusive(x_471); -if (x_473 == 0) -{ -lean_object* x_474; lean_object* x_475; -x_474 = lean_ctor_get(x_471, 1); -lean_inc(x_472); -x_475 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_474, x_452, x_472); -lean_ctor_set(x_471, 1, x_475); -x_15 = x_472; -x_16 = x_471; -goto block_23; -} -else -{ -lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; -x_476 = lean_ctor_get(x_471, 0); -x_477 = lean_ctor_get(x_471, 1); -lean_inc(x_477); -lean_inc(x_476); -lean_dec(x_471); -lean_inc(x_472); -x_478 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_477, x_452, x_472); -x_479 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_479, 0, x_476); -lean_ctor_set(x_479, 1, x_478); -x_15 = x_472; -x_16 = x_479; -goto block_23; -} -} -else -{ -lean_object* x_480; -lean_dec(x_452); -x_480 = lean_ctor_get(x_469, 0); -lean_inc(x_480); -lean_dec(x_469); -x_15 = x_480; +lean_object* x_322; +lean_dec(x_308); +x_322 = lean_ctor_get(x_311, 0); +lean_inc(x_322); +lean_dec(x_311); +x_15 = x_322; x_16 = x_2; goto block_23; } @@ -15789,135 +12867,71 @@ goto block_23; } case 11: { -lean_object* x_481; uint8_t x_482; -x_481 = lean_ctor_get(x_1, 2); -lean_inc(x_481); -x_482 = lean_expr_has_expr_mvar(x_481); -if (x_482 == 0) +lean_object* x_323; uint8_t x_324; +x_323 = lean_ctor_get(x_1, 2); +lean_inc(x_323); +x_324 = l_Lean_Expr_hasMVar(x_323); +if (x_324 == 0) { -uint8_t x_483; -x_483 = lean_expr_has_level_mvar(x_481); -if (x_483 == 0) -{ -x_24 = x_481; +x_24 = x_323; x_25 = x_2; goto block_32; } else { -lean_object* x_484; lean_object* x_485; -x_484 = lean_ctor_get(x_2, 1); -lean_inc(x_484); -x_485 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_484, x_481); -lean_dec(x_484); -if (lean_obj_tag(x_485) == 0) +lean_object* x_325; lean_object* x_326; +x_325 = lean_ctor_get(x_2, 1); +lean_inc(x_325); +x_326 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_325, x_323); +lean_dec(x_325); +if (lean_obj_tag(x_326) == 0) { -lean_object* x_486; lean_object* x_487; lean_object* x_488; uint8_t x_489; -lean_inc(x_481); -x_486 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_481, x_2); -x_487 = lean_ctor_get(x_486, 1); -lean_inc(x_487); -x_488 = lean_ctor_get(x_486, 0); -lean_inc(x_488); -lean_dec(x_486); -x_489 = !lean_is_exclusive(x_487); -if (x_489 == 0) +lean_object* x_327; lean_object* x_328; lean_object* x_329; uint8_t x_330; +lean_inc(x_323); +x_327 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_323, x_2); +x_328 = lean_ctor_get(x_327, 1); +lean_inc(x_328); +x_329 = lean_ctor_get(x_327, 0); +lean_inc(x_329); +lean_dec(x_327); +x_330 = !lean_is_exclusive(x_328); +if (x_330 == 0) { -lean_object* x_490; lean_object* x_491; -x_490 = lean_ctor_get(x_487, 1); -lean_inc(x_488); -x_491 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_490, x_481, x_488); -lean_ctor_set(x_487, 1, x_491); -x_24 = x_488; -x_25 = x_487; +lean_object* x_331; lean_object* x_332; +x_331 = lean_ctor_get(x_328, 1); +lean_inc(x_329); +x_332 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_331, x_323, x_329); +lean_ctor_set(x_328, 1, x_332); +x_24 = x_329; +x_25 = x_328; goto block_32; } else { -lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_492 = lean_ctor_get(x_487, 0); -x_493 = lean_ctor_get(x_487, 1); -lean_inc(x_493); -lean_inc(x_492); -lean_dec(x_487); -lean_inc(x_488); -x_494 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_493, x_481, x_488); -x_495 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_495, 0, x_492); -lean_ctor_set(x_495, 1, x_494); -x_24 = x_488; -x_25 = x_495; +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +x_333 = lean_ctor_get(x_328, 0); +x_334 = lean_ctor_get(x_328, 1); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_328); +lean_inc(x_329); +x_335 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_334, x_323, x_329); +x_336 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_336, 0, x_333); +lean_ctor_set(x_336, 1, x_335); +x_24 = x_329; +x_25 = x_336; goto block_32; } } else { -lean_object* x_496; -lean_dec(x_481); -x_496 = lean_ctor_get(x_485, 0); -lean_inc(x_496); -lean_dec(x_485); -x_24 = x_496; -x_25 = x_2; -goto block_32; -} -} -} -else -{ -lean_object* x_497; lean_object* x_498; -x_497 = lean_ctor_get(x_2, 1); -lean_inc(x_497); -x_498 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_497, x_481); -lean_dec(x_497); -if (lean_obj_tag(x_498) == 0) -{ -lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; -lean_inc(x_481); -x_499 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_481, x_2); -x_500 = lean_ctor_get(x_499, 1); -lean_inc(x_500); -x_501 = lean_ctor_get(x_499, 0); -lean_inc(x_501); -lean_dec(x_499); -x_502 = !lean_is_exclusive(x_500); -if (x_502 == 0) -{ -lean_object* x_503; lean_object* x_504; -x_503 = lean_ctor_get(x_500, 1); -lean_inc(x_501); -x_504 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_503, x_481, x_501); -lean_ctor_set(x_500, 1, x_504); -x_24 = x_501; -x_25 = x_500; -goto block_32; -} -else -{ -lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_505 = lean_ctor_get(x_500, 0); -x_506 = lean_ctor_get(x_500, 1); -lean_inc(x_506); -lean_inc(x_505); -lean_dec(x_500); -lean_inc(x_501); -x_507 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_506, x_481, x_501); -x_508 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_508, 0, x_505); -lean_ctor_set(x_508, 1, x_507); -x_24 = x_501; -x_25 = x_508; -goto block_32; -} -} -else -{ -lean_object* x_509; -lean_dec(x_481); -x_509 = lean_ctor_get(x_498, 0); -lean_inc(x_509); -lean_dec(x_498); -x_24 = x_509; +lean_object* x_337; +lean_dec(x_323); +x_337 = lean_ctor_get(x_326, 0); +lean_inc(x_337); +lean_dec(x_326); +x_24 = x_337; x_25 = x_2; goto block_32; } @@ -15925,11 +12939,11 @@ goto block_32; } default: { -lean_object* x_510; -x_510 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_510, 0, x_1); -lean_ctor_set(x_510, 1, x_2); -return x_510; +lean_object* x_338; +x_338 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_338, 0, x_1); +lean_ctor_set(x_338, 1, x_2); +return x_338; } } block_14: @@ -15983,7 +12997,7 @@ else lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_dec(x_15); lean_dec(x_1); -x_19 = l_Lean_Expr_inhabited; +x_19 = l_Lean_Expr_Inhabited; x_20 = l_Lean_Expr_updateMData_x21___closed__2; x_21 = lean_panic_fn(x_20); x_22 = lean_alloc_ctor(0, 2, 0); @@ -16008,7 +13022,7 @@ else lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_dec(x_24); lean_dec(x_1); -x_28 = l_Lean_Expr_inhabited; +x_28 = l_Lean_Expr_Inhabited; x_29 = l_Lean_Expr_updateProj_x21___closed__2; x_30 = lean_panic_fn(x_29); x_31 = lean_alloc_ctor(0, 2, 0); @@ -16057,90 +13071,49 @@ lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object* x_1, lean_objec _start: { uint8_t x_3; -x_3 = lean_expr_has_expr_mvar(x_2); +x_3 = l_Lean_Expr_hasMVar(x_2); if (x_3 == 0) { -uint8_t x_4; -x_4 = lean_expr_has_level_mvar(x_2); -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_2); -lean_ctor_set(x_5, 1, x_1); -return x_5; +lean_object* x_4; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +return x_4; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = l_Lean_MetavarContext_instantiateMVars___closed__1; -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_1); -lean_ctor_set(x_7, 1, x_6); -x_8 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_2, x_7); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = l_Lean_MetavarContext_instantiateMVars___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_5); +x_7 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_2, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) { -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_8, 1); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -lean_ctor_set(x_8, 1, x_11); -return x_8; +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 1); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +lean_ctor_set(x_7, 1, x_10); +return x_7; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); lean_inc(x_12); -lean_dec(x_8); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_12); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_16 = l_Lean_MetavarContext_instantiateMVars___closed__1; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_1); -lean_ctor_set(x_17, 1, x_16); -x_18 = l_Lean_MetavarContext_InstantiateExprMVars_main___main(x_2, x_17); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 1); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -lean_ctor_set(x_18, 1, x_21); -return x_18; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_18); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_inc(x_11); +lean_dec(x_7); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } } @@ -16180,7 +13153,7 @@ _start: lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; uint8_t x_8; x_3 = lean_ctor_get(x_1, 1); x_4 = lean_array_get_size(x_3); -x_5 = lean_expr_hash(x_2); +x_5 = l_Lean_Expr_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); @@ -16206,7 +13179,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; le x_4 = lean_ctor_get(x_2, 0); x_5 = lean_ctor_get(x_2, 2); x_6 = lean_array_get_size(x_1); -x_7 = lean_expr_hash(x_4); +x_7 = l_Lean_Expr_hash(x_4); x_8 = lean_usize_modn(x_7, x_6); lean_dec(x_6); x_9 = lean_array_uget(x_1, x_8); @@ -16227,7 +13200,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_15 = lean_array_get_size(x_1); -x_16 = lean_expr_hash(x_12); +x_16 = l_Lean_Expr_hash(x_12); x_17 = lean_usize_modn(x_16, x_15); lean_dec(x_15); x_18 = lean_array_uget(x_1, x_17); @@ -16374,7 +13347,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; le x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); x_7 = lean_array_get_size(x_6); -x_8 = lean_expr_hash(x_2); +x_8 = l_Lean_Expr_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); x_11 = l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__2(x_2, x_10); @@ -16424,7 +13397,7 @@ lean_inc(x_21); lean_inc(x_20); lean_dec(x_1); x_22 = lean_array_get_size(x_21); -x_23 = lean_expr_hash(x_2); +x_23 = l_Lean_Expr_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); x_26 = l_AssocList_contains___main___at___private_Init_Lean_MetavarContext_8__visit_x3f___spec__2(x_2, x_25); @@ -16474,25 +13447,29 @@ lean_object* l___private_Init_Lean_MetavarContext_8__visit_x3f(lean_object* x_1, _start: { lean_object* x_3; uint8_t x_14; -x_14 = lean_expr_has_expr_mvar(x_1); +x_14 = l_Lean_Expr_hasMVar(x_1); if (x_14 == 0) { uint8_t x_15; -x_15 = lean_expr_has_level_mvar(x_1); +x_15 = l_Lean_Expr_hasFVar(x_1); if (x_15 == 0) { -uint8_t x_16; -x_16 = lean_expr_has_fvar(x_1); -if (x_16 == 0) -{ -uint8_t x_17; lean_object* x_18; lean_object* x_19; +uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_dec(x_1); -x_17 = 0; -x_18 = lean_box(x_17); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_2); -return x_19; +x_16 = 0; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_2); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = lean_box(0); +x_3 = x_19; +goto block_13; +} } else { @@ -16501,22 +13478,6 @@ x_20 = lean_box(0); x_3 = x_20; goto block_13; } -} -else -{ -lean_object* x_21; -x_21 = lean_box(0); -x_3 = x_21; -goto block_13; -} -} -else -{ -lean_object* x_22; -x_22 = lean_box(0); -x_3 = x_22; -goto block_13; -} block_13: { uint8_t x_4; @@ -17575,28 +14536,31 @@ lean_object* l_Lean_MetavarContext_DependsOn_main(lean_object* x_1, lean_object* _start: { uint8_t x_5; -x_5 = lean_expr_has_fvar(x_3); +x_5 = l_Lean_Expr_hasFVar(x_3); if (x_5 == 0) { uint8_t x_6; -x_6 = lean_expr_has_expr_mvar(x_3); +x_6 = l_Lean_Expr_hasMVar(x_3); if (x_6 == 0) { -uint8_t x_7; -x_7 = lean_expr_has_level_mvar(x_3); -if (x_7 == 0) -{ -uint8_t x_8; lean_object* x_9; lean_object* x_10; +uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_8 = 0; -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); +x_7 = 0; +x_8 = lean_box(x_7); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_4); +return x_9; +} +else +{ +lean_object* x_10; +x_10 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_4); return x_10; } +} else { lean_object* x_11; @@ -17604,20 +14568,6 @@ x_11 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_4); return x_11; } } -else -{ -lean_object* x_12; -x_12 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_4); -return x_12; -} -} -else -{ -lean_object* x_13; -x_13 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_4); -return x_13; -} -} } lean_object* l_mkHashMap___at_Lean_MetavarContext_exprDependsOn___spec__2(lean_object* x_1) { _start: @@ -17648,56 +14598,41 @@ lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object* x_1, lean_object* _start: { uint8_t x_4; -x_4 = lean_expr_has_fvar(x_3); +x_4 = l_Lean_Expr_hasFVar(x_3); if (x_4 == 0) { uint8_t x_5; -x_5 = lean_expr_has_expr_mvar(x_3); +x_5 = l_Lean_Expr_hasMVar(x_3); if (x_5 == 0) { -uint8_t x_6; -x_6 = lean_expr_has_level_mvar(x_3); -if (x_6 == 0) -{ -uint8_t x_7; lean_object* x_8; +uint8_t x_6; lean_object* x_7; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_7 = 0; -x_8 = lean_box(x_7); -return x_8; +x_6 = 0; +x_7 = lean_box(x_6); +return x_7; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_MetavarContext_exprDependsOn___closed__1; -x_10 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -return x_11; +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Lean_MetavarContext_exprDependsOn___closed__1; +x_9 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +return x_10; } } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = l_Lean_MetavarContext_exprDependsOn___closed__1; -x_13 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -return x_14; -} -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = l_Lean_MetavarContext_exprDependsOn___closed__1; -x_16 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -return x_17; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = l_Lean_MetavarContext_exprDependsOn___closed__1; +x_12 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +return x_13; } } } @@ -17710,206 +14645,154 @@ lean_object* x_4; uint8_t x_5; x_4 = lean_ctor_get(x_3, 3); lean_inc(x_4); lean_dec(x_3); -x_5 = lean_expr_has_fvar(x_4); +x_5 = l_Lean_Expr_hasFVar(x_4); if (x_5 == 0) { uint8_t x_6; -x_6 = lean_expr_has_expr_mvar(x_4); +x_6 = l_Lean_Expr_hasMVar(x_4); if (x_6 == 0) { -uint8_t x_7; -x_7 = lean_expr_has_level_mvar(x_4); -if (x_7 == 0) -{ -uint8_t x_8; lean_object* x_9; +uint8_t x_7; lean_object* x_8; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_8 = 0; -x_9 = lean_box(x_8); -return x_9; +x_7 = 0; +x_8 = lean_box(x_7); +return x_8; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_HashMap_Inhabited___closed__1; -x_11 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_4, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -return x_12; +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l_HashMap_Inhabited___closed__1; +x_10 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_4, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +return x_11; } } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = l_HashMap_Inhabited___closed__1; -x_14 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_4, x_13); -x_15 = lean_ctor_get(x_14, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = l_HashMap_Inhabited___closed__1; +x_13 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_4, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +lean_dec(x_13); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; uint8_t x_29; +x_15 = lean_ctor_get(x_3, 3); lean_inc(x_15); -lean_dec(x_14); -return x_15; -} -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = l_HashMap_Inhabited___closed__1; -x_17 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_4, x_16); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -lean_dec(x_17); -return x_18; -} -} -else -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; uint8_t x_36; -x_19 = lean_ctor_get(x_3, 3); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 4); -lean_inc(x_20); +x_16 = lean_ctor_get(x_3, 4); +lean_inc(x_16); lean_dec(x_3); -x_36 = lean_expr_has_fvar(x_19); -if (x_36 == 0) +x_29 = l_Lean_Expr_hasFVar(x_15); +if (x_29 == 0) { -uint8_t x_37; -x_37 = lean_expr_has_expr_mvar(x_19); -if (x_37 == 0) +uint8_t x_30; +x_30 = l_Lean_Expr_hasMVar(x_15); +if (x_30 == 0) { -uint8_t x_38; -x_38 = lean_expr_has_level_mvar(x_19); -if (x_38 == 0) -{ -uint8_t x_39; lean_object* x_40; -lean_dec(x_19); -x_39 = 0; -x_40 = l_HashMap_Inhabited___closed__1; -x_21 = x_39; -x_22 = x_40; -goto block_35; +uint8_t x_31; lean_object* x_32; +lean_dec(x_15); +x_31 = 0; +x_32 = l_HashMap_Inhabited___closed__1; +x_17 = x_31; +x_18 = x_32; +goto block_28; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_41 = l_HashMap_Inhabited___closed__1; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = l_HashMap_Inhabited___closed__1; lean_inc(x_2); lean_inc(x_1); -x_42 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_19, x_41); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_unbox(x_43); -lean_dec(x_43); -x_21 = x_45; -x_22 = x_44; -goto block_35; +x_34 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_15, x_33); +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(x_34); +x_37 = lean_unbox(x_35); +lean_dec(x_35); +x_17 = x_37; +x_18 = x_36; +goto block_28; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_46 = l_HashMap_Inhabited___closed__1; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_38 = l_HashMap_Inhabited___closed__1; lean_inc(x_2); lean_inc(x_1); -x_47 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_19, x_46); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_unbox(x_48); -lean_dec(x_48); -x_21 = x_50; -x_22 = x_49; -goto block_35; +x_39 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_15, x_38); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_unbox(x_40); +lean_dec(x_40); +x_17 = x_42; +x_18 = x_41; +goto block_28; } -} -else +block_28: { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_51 = l_HashMap_Inhabited___closed__1; -lean_inc(x_2); -lean_inc(x_1); -x_52 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_19, x_51); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_55 = lean_unbox(x_53); -lean_dec(x_53); -x_21 = x_55; -x_22 = x_54; -goto block_35; -} -block_35: +if (x_17 == 0) { -if (x_21 == 0) +uint8_t x_19; +x_19 = l_Lean_Expr_hasFVar(x_16); +if (x_19 == 0) { -uint8_t x_23; -x_23 = lean_expr_has_fvar(x_20); -if (x_23 == 0) +uint8_t x_20; +x_20 = l_Lean_Expr_hasMVar(x_16); +if (x_20 == 0) { -uint8_t x_24; -x_24 = lean_expr_has_expr_mvar(x_20); -if (x_24 == 0) -{ -uint8_t x_25; -x_25 = lean_expr_has_level_mvar(x_20); -if (x_25 == 0) -{ -uint8_t x_26; lean_object* x_27; -lean_dec(x_22); -lean_dec(x_20); +uint8_t x_21; lean_object* x_22; +lean_dec(x_18); +lean_dec(x_16); lean_dec(x_2); lean_dec(x_1); -x_26 = 0; -x_27 = lean_box(x_26); +x_21 = 0; +x_22 = lean_box(x_21); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_16, x_18); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_16, x_18); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +return x_26; +} +} +else +{ +lean_object* x_27; +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_2); +lean_dec(x_1); +x_27 = lean_box(x_17); return x_27; } -else -{ -lean_object* x_28; lean_object* x_29; -x_28 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_20, x_22); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -lean_dec(x_28); -return x_29; -} -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_20, x_22); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -lean_dec(x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = l___private_Init_Lean_MetavarContext_10__dep___main(x_1, x_2, x_20, x_22); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -lean_dec(x_32); -return x_33; -} -} -else -{ -lean_object* x_34; -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_2); -lean_dec(x_1); -x_34 = lean_box(x_21); -return x_34; -} } } } @@ -18379,7 +15262,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_MetavarContext_getDecl___closed__1; -x_2 = lean_unsigned_to_nat(584u); +x_2 = lean_unsigned_to_nat(585u); x_3 = lean_unsigned_to_nat(16u); x_4 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -18390,7 +15273,7 @@ lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___lambda__1(lean_object* _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Expr_inhabited; +x_9 = l_Lean_Expr_Inhabited; x_10 = lean_array_get(x_9, x_1, x_6); x_11 = l_Lean_LocalContext_findFVar(x_2, x_10); lean_dec(x_10); @@ -18438,14 +15321,14 @@ lean_dec(x_22); if (x_5 == 0) { lean_object* x_24; -x_24 = lean_expr_mk_forall(x_17, x_19, x_23, x_7); +x_24 = l_Lean_mkForall(x_17, x_19, x_23, x_7); lean_ctor_set(x_20, 0, x_24); return x_20; } else { lean_object* x_25; -x_25 = lean_expr_mk_lambda(x_17, x_19, x_23, x_7); +x_25 = l_Lean_mkLambda(x_17, x_19, x_23, x_7); lean_ctor_set(x_20, 0, x_25); return x_20; } @@ -18464,7 +15347,7 @@ lean_dec(x_26); if (x_5 == 0) { lean_object* x_29; lean_object* x_30; -x_29 = lean_expr_mk_forall(x_17, x_19, x_28, x_7); +x_29 = l_Lean_mkForall(x_17, x_19, x_28, x_7); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_27); @@ -18473,7 +15356,7 @@ return x_30; else { lean_object* x_31; lean_object* x_32; -x_31 = lean_expr_mk_lambda(x_17, x_19, x_28, x_7); +x_31 = l_Lean_mkLambda(x_17, x_19, x_28, x_7); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_27); @@ -18556,85 +15439,87 @@ uint8_t x_48; x_48 = !lean_is_exclusive(x_47); if (x_48 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; x_49 = lean_ctor_get(x_47, 0); x_50 = lean_expr_abstract_range(x_49, x_6, x_1); lean_dec(x_1); lean_dec(x_49); -x_51 = lean_expr_mk_let(x_37, x_46, x_50, x_7); -lean_ctor_set(x_47, 0, x_51); +x_51 = 0; +x_52 = l_Lean_mkLet(x_37, x_46, x_50, x_7, x_51); +lean_ctor_set(x_47, 0, x_52); return x_47; } 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; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_53 = lean_ctor_get(x_47, 0); +x_54 = lean_ctor_get(x_47, 1); +lean_inc(x_54); lean_inc(x_53); -lean_inc(x_52); lean_dec(x_47); -x_54 = lean_expr_abstract_range(x_52, x_6, x_1); +x_55 = lean_expr_abstract_range(x_53, x_6, x_1); lean_dec(x_1); -lean_dec(x_52); -x_55 = lean_expr_mk_let(x_37, x_46, x_54, x_7); -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_53); +x_56 = 0; +x_57 = l_Lean_mkLet(x_37, x_46, x_55, x_7, x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_54); +return x_58; } } else { -uint8_t x_57; +uint8_t x_59; lean_dec(x_46); lean_dec(x_37); lean_dec(x_7); lean_dec(x_1); -x_57 = !lean_is_exclusive(x_47); -if (x_57 == 0) +x_59 = !lean_is_exclusive(x_47); +if (x_59 == 0) { return x_47; } 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_inc(x_59); -lean_inc(x_58); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_47, 0); +x_61 = lean_ctor_get(x_47, 1); +lean_inc(x_61); +lean_inc(x_60); 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; +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } else { -uint8_t x_61; +uint8_t x_63; lean_dec(x_39); lean_dec(x_37); lean_dec(x_7); lean_dec(x_4); lean_dec(x_1); -x_61 = !lean_is_exclusive(x_43); -if (x_61 == 0) +x_63 = !lean_is_exclusive(x_43); +if (x_63 == 0) { return x_43; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_43, 0); -x_63 = lean_ctor_get(x_43, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_43, 0); +x_65 = lean_ctor_get(x_43, 1); +lean_inc(x_65); +lean_inc(x_64); lean_dec(x_43); -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_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; } } } @@ -18894,7 +15779,7 @@ lean_object* l___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestId _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = l_Lean_Expr_inhabited; +x_3 = l_Lean_Expr_Inhabited; x_4 = lean_unsigned_to_nat(0u); x_5 = lean_array_get(x_3, x_2, x_4); lean_inc(x_1); @@ -25549,3268 +22434,7 @@ return x_203; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_fget(x_3, x_5); -x_9 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(x_1, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_5, x_10); -lean_dec(x_5); -x_5 = x_11; -goto _start; -} -else -{ -lean_dec(x_5); -return x_9; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; -x_8 = lean_array_fget(x_3, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_5 = x_10; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l_Lean_LocalDecl_name(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_13, x_1, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_5, x_17); -lean_dec(x_5); -x_5 = x_18; -goto _start; -} -else -{ -lean_dec(x_5); -return x_16; -} -} -} -} -} -uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42(x_1, x_3, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_array_get_size(x_7); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43(x_1, x_7, x_7, x_8, x_9); -lean_dec(x_8); -return x_10; -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; -x_8 = lean_array_fget(x_3, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_5 = x_10; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l_Lean_LocalDecl_name(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_13, x_1, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_5, x_17); -lean_dec(x_5); -x_5 = x_18; -goto _start; -} -else -{ -lean_dec(x_5); -return x_16; -} -} -} -} -} -uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_2, 0); -x_4 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44(x_1, x_2, x_5, x_6, x_7); -lean_dec(x_6); -return x_8; -} -else -{ -return x_4; -} -} -} -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_3)) { -case 1: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = lean_array_get_size(x_1); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_5, x_1, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -return x_10; -} -case 2: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_dec(x_3); -lean_inc(x_11); -lean_inc(x_2); -x_12 = lean_metavar_ctx_get_expr_assignment(x_2, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_13 = l_Lean_MetavarContext_getDecl(x_2, x_11); -lean_dec(x_11); -lean_dec(x_2); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40(x_1, x_15); -lean_dec(x_15); -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_4); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -lean_dec(x_11); -x_19 = lean_ctor_get(x_12, 0); -lean_inc(x_19); -lean_dec(x_12); -lean_inc(x_19); -x_20 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_19, x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_unbox(x_21); -if (x_22 == 0) -{ -uint8_t x_23; -lean_dec(x_19); -lean_dec(x_2); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_20, 0); -lean_dec(x_24); -return x_20; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_21); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -lean_object* x_27; -lean_dec(x_21); -x_27 = lean_ctor_get(x_20, 1); -lean_inc(x_27); -lean_dec(x_20); -x_3 = x_19; -x_4 = x_27; -goto _start; -} -} -} -case 5: -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_29 = lean_ctor_get(x_3, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_3, 1); -lean_inc(x_30); -lean_dec(x_3); -lean_inc(x_30); -x_31 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_30, x_4); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -lean_dec(x_30); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = l_Lean_Expr_isApp(x_29); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_inc(x_29); -x_36 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_29, x_34); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -if (x_38 == 0) -{ -uint8_t x_39; -lean_dec(x_29); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_36); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_36, 0); -lean_dec(x_40); -return x_36; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); -lean_dec(x_36); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_37); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -lean_object* x_43; -lean_dec(x_37); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); -lean_dec(x_36); -x_3 = x_29; -x_4 = x_43; -goto _start; -} -} -else -{ -x_3 = x_29; -x_4 = x_34; -goto _start; -} -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_31, 1); -lean_inc(x_46); -lean_dec(x_31); -lean_inc(x_2); -x_47 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_30, x_46); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_unbox(x_48); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -lean_dec(x_48); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = l_Lean_Expr_isApp(x_29); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; uint8_t x_54; -lean_inc(x_29); -x_52 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_29, x_50); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -if (x_54 == 0) -{ -uint8_t x_55; -lean_dec(x_29); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) -{ -lean_object* x_56; -x_56 = lean_ctor_get(x_52, 0); -lean_dec(x_56); -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_dec(x_52); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_53); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -else -{ -lean_object* x_59; -lean_dec(x_53); -x_59 = lean_ctor_get(x_52, 1); -lean_inc(x_59); -lean_dec(x_52); -x_3 = x_29; -x_4 = x_59; -goto _start; -} -} -else -{ -x_3 = x_29; -x_4 = x_50; -goto _start; -} -} -else -{ -uint8_t x_62; -lean_dec(x_29); -lean_dec(x_2); -x_62 = !lean_is_exclusive(x_47); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_47, 0); -lean_dec(x_63); -return x_47; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_47, 1); -lean_inc(x_64); -lean_dec(x_47); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_48); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -} -case 6: -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = lean_ctor_get(x_3, 1); -lean_inc(x_66); -x_67 = lean_ctor_get(x_3, 2); -lean_inc(x_67); -lean_dec(x_3); -lean_inc(x_66); -x_68 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_66, x_4); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -lean_dec(x_66); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -lean_inc(x_67); -x_72 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_67, x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_unbox(x_73); -if (x_74 == 0) -{ -uint8_t x_75; -lean_dec(x_67); -lean_dec(x_2); -x_75 = !lean_is_exclusive(x_72); -if (x_75 == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_72, 0); -lean_dec(x_76); -return x_72; -} -else -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -lean_dec(x_72); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_73); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} -} -else -{ -lean_object* x_79; -lean_dec(x_73); -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_dec(x_72); -x_3 = x_67; -x_4 = x_79; -goto _start; -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_81 = lean_ctor_get(x_68, 1); -lean_inc(x_81); -lean_dec(x_68); -lean_inc(x_2); -x_82 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_66, x_81); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_unbox(x_83); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_dec(x_83); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec(x_82); -lean_inc(x_67); -x_86 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_67, x_85); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_unbox(x_87); -if (x_88 == 0) -{ -uint8_t x_89; -lean_dec(x_67); -lean_dec(x_2); -x_89 = !lean_is_exclusive(x_86); -if (x_89 == 0) -{ -lean_object* x_90; -x_90 = lean_ctor_get(x_86, 0); -lean_dec(x_90); -return x_86; -} -else -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_86, 1); -lean_inc(x_91); -lean_dec(x_86); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_87); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -else -{ -lean_object* x_93; -lean_dec(x_87); -x_93 = lean_ctor_get(x_86, 1); -lean_inc(x_93); -lean_dec(x_86); -x_3 = x_67; -x_4 = x_93; -goto _start; -} -} -else -{ -uint8_t x_95; -lean_dec(x_67); -lean_dec(x_2); -x_95 = !lean_is_exclusive(x_82); -if (x_95 == 0) -{ -lean_object* x_96; -x_96 = lean_ctor_get(x_82, 0); -lean_dec(x_96); -return x_82; -} -else -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_82, 1); -lean_inc(x_97); -lean_dec(x_82); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_83); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -} -case 7: -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_99 = lean_ctor_get(x_3, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_3, 2); -lean_inc(x_100); -lean_dec(x_3); -lean_inc(x_99); -x_101 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_99, x_4); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_unbox(x_102); -lean_dec(x_102); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -lean_dec(x_99); -x_104 = lean_ctor_get(x_101, 1); -lean_inc(x_104); -lean_dec(x_101); -lean_inc(x_100); -x_105 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_100, x_104); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_unbox(x_106); -if (x_107 == 0) -{ -uint8_t x_108; -lean_dec(x_100); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_105); -if (x_108 == 0) -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_105, 0); -lean_dec(x_109); -return x_105; -} -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_105, 1); -lean_inc(x_110); -lean_dec(x_105); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_106); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -else -{ -lean_object* x_112; -lean_dec(x_106); -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -lean_dec(x_105); -x_3 = x_100; -x_4 = x_112; -goto _start; -} -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_114 = lean_ctor_get(x_101, 1); -lean_inc(x_114); -lean_dec(x_101); -lean_inc(x_2); -x_115 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_99, x_114); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_unbox(x_116); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; -lean_dec(x_116); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_dec(x_115); -lean_inc(x_100); -x_119 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_100, x_118); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_unbox(x_120); -if (x_121 == 0) -{ -uint8_t x_122; -lean_dec(x_100); -lean_dec(x_2); -x_122 = !lean_is_exclusive(x_119); -if (x_122 == 0) -{ -lean_object* x_123; -x_123 = lean_ctor_get(x_119, 0); -lean_dec(x_123); -return x_119; -} -else -{ -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_dec(x_119); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_120); -lean_ctor_set(x_125, 1, x_124); -return x_125; -} -} -else -{ -lean_object* x_126; -lean_dec(x_120); -x_126 = lean_ctor_get(x_119, 1); -lean_inc(x_126); -lean_dec(x_119); -x_3 = x_100; -x_4 = x_126; -goto _start; -} -} -else -{ -uint8_t x_128; -lean_dec(x_100); -lean_dec(x_2); -x_128 = !lean_is_exclusive(x_115); -if (x_128 == 0) -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_115, 0); -lean_dec(x_129); -return x_115; -} -else -{ -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_115, 1); -lean_inc(x_130); -lean_dec(x_115); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_116); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -} -case 8: -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_132 = lean_ctor_get(x_3, 1); -lean_inc(x_132); -x_133 = lean_ctor_get(x_3, 2); -lean_inc(x_133); -x_134 = lean_ctor_get(x_3, 3); -lean_inc(x_134); -lean_dec(x_3); -lean_inc(x_132); -x_171 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_132, x_4); -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_unbox(x_172); -if (x_173 == 0) -{ -lean_object* x_174; uint8_t x_175; -lean_dec(x_132); -x_174 = lean_ctor_get(x_171, 1); -lean_inc(x_174); -lean_dec(x_171); -x_175 = lean_unbox(x_172); -lean_dec(x_172); -x_135 = x_175; -x_136 = x_174; -goto block_170; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; -lean_dec(x_172); -x_176 = lean_ctor_get(x_171, 1); -lean_inc(x_176); -lean_dec(x_171); -lean_inc(x_2); -x_177 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_132, x_176); -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_177, 1); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_unbox(x_178); -lean_dec(x_178); -x_135 = x_180; -x_136 = x_179; -goto block_170; -} -block_170: -{ -if (x_135 == 0) -{ -lean_object* x_137; lean_object* x_138; uint8_t x_139; -lean_inc(x_133); -x_137 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_133, x_136); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_unbox(x_138); -lean_dec(x_138); -if (x_139 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -lean_dec(x_133); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_dec(x_137); -lean_inc(x_134); -x_141 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_134, x_140); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_unbox(x_142); -if (x_143 == 0) -{ -uint8_t x_144; -lean_dec(x_134); -lean_dec(x_2); -x_144 = !lean_is_exclusive(x_141); -if (x_144 == 0) -{ -lean_object* x_145; -x_145 = lean_ctor_get(x_141, 0); -lean_dec(x_145); -return x_141; -} -else -{ -lean_object* x_146; lean_object* x_147; -x_146 = lean_ctor_get(x_141, 1); -lean_inc(x_146); -lean_dec(x_141); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_142); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -} -else -{ -lean_object* x_148; -lean_dec(x_142); -x_148 = lean_ctor_get(x_141, 1); -lean_inc(x_148); -lean_dec(x_141); -x_3 = x_134; -x_4 = x_148; -goto _start; -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_150 = lean_ctor_get(x_137, 1); -lean_inc(x_150); -lean_dec(x_137); -lean_inc(x_2); -x_151 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_133, x_150); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_unbox(x_152); -if (x_153 == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; -lean_dec(x_152); -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_154); -lean_dec(x_151); -lean_inc(x_134); -x_155 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_134, x_154); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_unbox(x_156); -if (x_157 == 0) -{ -uint8_t x_158; -lean_dec(x_134); -lean_dec(x_2); -x_158 = !lean_is_exclusive(x_155); -if (x_158 == 0) -{ -lean_object* x_159; -x_159 = lean_ctor_get(x_155, 0); -lean_dec(x_159); -return x_155; -} -else -{ -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_155, 1); -lean_inc(x_160); -lean_dec(x_155); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_156); -lean_ctor_set(x_161, 1, x_160); -return x_161; -} -} -else -{ -lean_object* x_162; -lean_dec(x_156); -x_162 = lean_ctor_get(x_155, 1); -lean_inc(x_162); -lean_dec(x_155); -x_3 = x_134; -x_4 = x_162; -goto _start; -} -} -else -{ -uint8_t x_164; -lean_dec(x_134); -lean_dec(x_2); -x_164 = !lean_is_exclusive(x_151); -if (x_164 == 0) -{ -lean_object* x_165; -x_165 = lean_ctor_get(x_151, 0); -lean_dec(x_165); -return x_151; -} -else -{ -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_151, 1); -lean_inc(x_166); -lean_dec(x_151); -x_167 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_167, 0, x_152); -lean_ctor_set(x_167, 1, x_166); -return x_167; -} -} -} -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_134); -lean_dec(x_133); -lean_dec(x_2); -x_168 = lean_box(x_135); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_136); -return x_169; -} -} -} -case 10: -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_181 = lean_ctor_get(x_3, 1); -lean_inc(x_181); -lean_dec(x_3); -lean_inc(x_181); -x_182 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_181, x_4); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_unbox(x_183); -if (x_184 == 0) -{ -uint8_t x_185; -lean_dec(x_181); -lean_dec(x_2); -x_185 = !lean_is_exclusive(x_182); -if (x_185 == 0) -{ -lean_object* x_186; -x_186 = lean_ctor_get(x_182, 0); -lean_dec(x_186); -return x_182; -} -else -{ -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_182, 1); -lean_inc(x_187); -lean_dec(x_182); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_187); -return x_188; -} -} -else -{ -lean_object* x_189; -lean_dec(x_183); -x_189 = lean_ctor_get(x_182, 1); -lean_inc(x_189); -lean_dec(x_182); -x_3 = x_181; -x_4 = x_189; -goto _start; -} -} -case 11: -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_191 = lean_ctor_get(x_3, 2); -lean_inc(x_191); -lean_dec(x_3); -lean_inc(x_191); -x_192 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_191, x_4); -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_unbox(x_193); -if (x_194 == 0) -{ -uint8_t x_195; -lean_dec(x_191); -lean_dec(x_2); -x_195 = !lean_is_exclusive(x_192); -if (x_195 == 0) -{ -lean_object* x_196; -x_196 = lean_ctor_get(x_192, 0); -lean_dec(x_196); -return x_192; -} -else -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_192, 1); -lean_inc(x_197); -lean_dec(x_192); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_193); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -else -{ -lean_object* x_199; -lean_dec(x_193); -x_199 = lean_ctor_get(x_192, 1); -lean_inc(x_199); -lean_dec(x_192); -x_3 = x_191; -x_4 = x_199; -goto _start; -} -} -default: -{ -uint8_t x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_3); -lean_dec(x_2); -x_201 = 0; -x_202 = lean_box(x_201); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_4); -return x_203; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_fget(x_3, x_5); -x_9 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(x_1, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_5, x_10); -lean_dec(x_5); -x_5 = x_11; -goto _start; -} -else -{ -lean_dec(x_5); -return x_9; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__49(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; -x_8 = lean_array_fget(x_3, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_5 = x_10; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l_Lean_LocalDecl_name(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_13, x_1, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_5, x_17); -lean_dec(x_5); -x_5 = x_18; -goto _start; -} -else -{ -lean_dec(x_5); -return x_16; -} -} -} -} -} -uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48(x_1, x_3, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_array_get_size(x_7); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__49(x_1, x_7, x_7, x_8, x_9); -lean_dec(x_8); -return x_10; -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__50(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; -x_8 = lean_array_fget(x_3, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_5 = x_10; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l_Lean_LocalDecl_name(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_13, x_1, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_5, x_17); -lean_dec(x_5); -x_5 = x_18; -goto _start; -} -else -{ -lean_dec(x_5); -return x_16; -} -} -} -} -} -uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_2, 0); -x_4 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__50(x_1, x_2, x_5, x_6, x_7); -lean_dec(x_6); -return x_8; -} -else -{ -return x_4; -} -} -} -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_3)) { -case 1: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = lean_array_get_size(x_1); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_5, x_1, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -return x_10; -} -case 2: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_dec(x_3); -lean_inc(x_11); -lean_inc(x_2); -x_12 = lean_metavar_ctx_get_expr_assignment(x_2, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_13 = l_Lean_MetavarContext_getDecl(x_2, x_11); -lean_dec(x_11); -lean_dec(x_2); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46(x_1, x_15); -lean_dec(x_15); -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_4); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -lean_dec(x_11); -x_19 = lean_ctor_get(x_12, 0); -lean_inc(x_19); -lean_dec(x_12); -lean_inc(x_19); -x_20 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_19, x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_unbox(x_21); -if (x_22 == 0) -{ -uint8_t x_23; -lean_dec(x_19); -lean_dec(x_2); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_20, 0); -lean_dec(x_24); -return x_20; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_21); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -lean_object* x_27; -lean_dec(x_21); -x_27 = lean_ctor_get(x_20, 1); -lean_inc(x_27); -lean_dec(x_20); -x_3 = x_19; -x_4 = x_27; -goto _start; -} -} -} -case 5: -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_29 = lean_ctor_get(x_3, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_3, 1); -lean_inc(x_30); -lean_dec(x_3); -lean_inc(x_30); -x_31 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_30, x_4); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -lean_dec(x_30); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = l_Lean_Expr_isApp(x_29); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_inc(x_29); -x_36 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_29, x_34); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -if (x_38 == 0) -{ -uint8_t x_39; -lean_dec(x_29); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_36); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_36, 0); -lean_dec(x_40); -return x_36; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); -lean_dec(x_36); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_37); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -lean_object* x_43; -lean_dec(x_37); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); -lean_dec(x_36); -x_3 = x_29; -x_4 = x_43; -goto _start; -} -} -else -{ -x_3 = x_29; -x_4 = x_34; -goto _start; -} -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_31, 1); -lean_inc(x_46); -lean_dec(x_31); -lean_inc(x_2); -x_47 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_1, x_2, x_30, x_46); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_unbox(x_48); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -lean_dec(x_48); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = l_Lean_Expr_isApp(x_29); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; uint8_t x_54; -lean_inc(x_29); -x_52 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_29, x_50); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -if (x_54 == 0) -{ -uint8_t x_55; -lean_dec(x_29); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) -{ -lean_object* x_56; -x_56 = lean_ctor_get(x_52, 0); -lean_dec(x_56); -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_dec(x_52); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_53); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -else -{ -lean_object* x_59; -lean_dec(x_53); -x_59 = lean_ctor_get(x_52, 1); -lean_inc(x_59); -lean_dec(x_52); -x_3 = x_29; -x_4 = x_59; -goto _start; -} -} -else -{ -x_3 = x_29; -x_4 = x_50; -goto _start; -} -} -else -{ -uint8_t x_62; -lean_dec(x_29); -lean_dec(x_2); -x_62 = !lean_is_exclusive(x_47); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_47, 0); -lean_dec(x_63); -return x_47; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_47, 1); -lean_inc(x_64); -lean_dec(x_47); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_48); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -} -case 6: -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = lean_ctor_get(x_3, 1); -lean_inc(x_66); -x_67 = lean_ctor_get(x_3, 2); -lean_inc(x_67); -lean_dec(x_3); -lean_inc(x_66); -x_68 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_66, x_4); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -lean_dec(x_66); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -lean_inc(x_67); -x_72 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_67, x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_unbox(x_73); -if (x_74 == 0) -{ -uint8_t x_75; -lean_dec(x_67); -lean_dec(x_2); -x_75 = !lean_is_exclusive(x_72); -if (x_75 == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_72, 0); -lean_dec(x_76); -return x_72; -} -else -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -lean_dec(x_72); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_73); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} -} -else -{ -lean_object* x_79; -lean_dec(x_73); -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_dec(x_72); -x_3 = x_67; -x_4 = x_79; -goto _start; -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_81 = lean_ctor_get(x_68, 1); -lean_inc(x_81); -lean_dec(x_68); -lean_inc(x_2); -x_82 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_1, x_2, x_66, x_81); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_unbox(x_83); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_dec(x_83); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec(x_82); -lean_inc(x_67); -x_86 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_67, x_85); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_unbox(x_87); -if (x_88 == 0) -{ -uint8_t x_89; -lean_dec(x_67); -lean_dec(x_2); -x_89 = !lean_is_exclusive(x_86); -if (x_89 == 0) -{ -lean_object* x_90; -x_90 = lean_ctor_get(x_86, 0); -lean_dec(x_90); -return x_86; -} -else -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_86, 1); -lean_inc(x_91); -lean_dec(x_86); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_87); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -else -{ -lean_object* x_93; -lean_dec(x_87); -x_93 = lean_ctor_get(x_86, 1); -lean_inc(x_93); -lean_dec(x_86); -x_3 = x_67; -x_4 = x_93; -goto _start; -} -} -else -{ -uint8_t x_95; -lean_dec(x_67); -lean_dec(x_2); -x_95 = !lean_is_exclusive(x_82); -if (x_95 == 0) -{ -lean_object* x_96; -x_96 = lean_ctor_get(x_82, 0); -lean_dec(x_96); -return x_82; -} -else -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_82, 1); -lean_inc(x_97); -lean_dec(x_82); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_83); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -} -case 7: -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_99 = lean_ctor_get(x_3, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_3, 2); -lean_inc(x_100); -lean_dec(x_3); -lean_inc(x_99); -x_101 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_99, x_4); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_unbox(x_102); -lean_dec(x_102); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -lean_dec(x_99); -x_104 = lean_ctor_get(x_101, 1); -lean_inc(x_104); -lean_dec(x_101); -lean_inc(x_100); -x_105 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_100, x_104); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_unbox(x_106); -if (x_107 == 0) -{ -uint8_t x_108; -lean_dec(x_100); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_105); -if (x_108 == 0) -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_105, 0); -lean_dec(x_109); -return x_105; -} -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_105, 1); -lean_inc(x_110); -lean_dec(x_105); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_106); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -else -{ -lean_object* x_112; -lean_dec(x_106); -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -lean_dec(x_105); -x_3 = x_100; -x_4 = x_112; -goto _start; -} -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_114 = lean_ctor_get(x_101, 1); -lean_inc(x_114); -lean_dec(x_101); -lean_inc(x_2); -x_115 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_1, x_2, x_99, x_114); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_unbox(x_116); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; -lean_dec(x_116); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_dec(x_115); -lean_inc(x_100); -x_119 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_100, x_118); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_unbox(x_120); -if (x_121 == 0) -{ -uint8_t x_122; -lean_dec(x_100); -lean_dec(x_2); -x_122 = !lean_is_exclusive(x_119); -if (x_122 == 0) -{ -lean_object* x_123; -x_123 = lean_ctor_get(x_119, 0); -lean_dec(x_123); -return x_119; -} -else -{ -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_dec(x_119); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_120); -lean_ctor_set(x_125, 1, x_124); -return x_125; -} -} -else -{ -lean_object* x_126; -lean_dec(x_120); -x_126 = lean_ctor_get(x_119, 1); -lean_inc(x_126); -lean_dec(x_119); -x_3 = x_100; -x_4 = x_126; -goto _start; -} -} -else -{ -uint8_t x_128; -lean_dec(x_100); -lean_dec(x_2); -x_128 = !lean_is_exclusive(x_115); -if (x_128 == 0) -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_115, 0); -lean_dec(x_129); -return x_115; -} -else -{ -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_115, 1); -lean_inc(x_130); -lean_dec(x_115); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_116); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -} -case 8: -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_132 = lean_ctor_get(x_3, 1); -lean_inc(x_132); -x_133 = lean_ctor_get(x_3, 2); -lean_inc(x_133); -x_134 = lean_ctor_get(x_3, 3); -lean_inc(x_134); -lean_dec(x_3); -lean_inc(x_132); -x_171 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_132, x_4); -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_unbox(x_172); -if (x_173 == 0) -{ -lean_object* x_174; uint8_t x_175; -lean_dec(x_132); -x_174 = lean_ctor_get(x_171, 1); -lean_inc(x_174); -lean_dec(x_171); -x_175 = lean_unbox(x_172); -lean_dec(x_172); -x_135 = x_175; -x_136 = x_174; -goto block_170; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; -lean_dec(x_172); -x_176 = lean_ctor_get(x_171, 1); -lean_inc(x_176); -lean_dec(x_171); -lean_inc(x_2); -x_177 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_1, x_2, x_132, x_176); -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_177, 1); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_unbox(x_178); -lean_dec(x_178); -x_135 = x_180; -x_136 = x_179; -goto block_170; -} -block_170: -{ -if (x_135 == 0) -{ -lean_object* x_137; lean_object* x_138; uint8_t x_139; -lean_inc(x_133); -x_137 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_133, x_136); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_unbox(x_138); -lean_dec(x_138); -if (x_139 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -lean_dec(x_133); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_dec(x_137); -lean_inc(x_134); -x_141 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_134, x_140); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_unbox(x_142); -if (x_143 == 0) -{ -uint8_t x_144; -lean_dec(x_134); -lean_dec(x_2); -x_144 = !lean_is_exclusive(x_141); -if (x_144 == 0) -{ -lean_object* x_145; -x_145 = lean_ctor_get(x_141, 0); -lean_dec(x_145); -return x_141; -} -else -{ -lean_object* x_146; lean_object* x_147; -x_146 = lean_ctor_get(x_141, 1); -lean_inc(x_146); -lean_dec(x_141); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_142); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -} -else -{ -lean_object* x_148; -lean_dec(x_142); -x_148 = lean_ctor_get(x_141, 1); -lean_inc(x_148); -lean_dec(x_141); -x_3 = x_134; -x_4 = x_148; -goto _start; -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_150 = lean_ctor_get(x_137, 1); -lean_inc(x_150); -lean_dec(x_137); -lean_inc(x_2); -x_151 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_1, x_2, x_133, x_150); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_unbox(x_152); -if (x_153 == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; -lean_dec(x_152); -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_154); -lean_dec(x_151); -lean_inc(x_134); -x_155 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_134, x_154); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_unbox(x_156); -if (x_157 == 0) -{ -uint8_t x_158; -lean_dec(x_134); -lean_dec(x_2); -x_158 = !lean_is_exclusive(x_155); -if (x_158 == 0) -{ -lean_object* x_159; -x_159 = lean_ctor_get(x_155, 0); -lean_dec(x_159); -return x_155; -} -else -{ -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_155, 1); -lean_inc(x_160); -lean_dec(x_155); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_156); -lean_ctor_set(x_161, 1, x_160); -return x_161; -} -} -else -{ -lean_object* x_162; -lean_dec(x_156); -x_162 = lean_ctor_get(x_155, 1); -lean_inc(x_162); -lean_dec(x_155); -x_3 = x_134; -x_4 = x_162; -goto _start; -} -} -else -{ -uint8_t x_164; -lean_dec(x_134); -lean_dec(x_2); -x_164 = !lean_is_exclusive(x_151); -if (x_164 == 0) -{ -lean_object* x_165; -x_165 = lean_ctor_get(x_151, 0); -lean_dec(x_165); -return x_151; -} -else -{ -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_151, 1); -lean_inc(x_166); -lean_dec(x_151); -x_167 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_167, 0, x_152); -lean_ctor_set(x_167, 1, x_166); -return x_167; -} -} -} -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_134); -lean_dec(x_133); -lean_dec(x_2); -x_168 = lean_box(x_135); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_136); -return x_169; -} -} -} -case 10: -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_181 = lean_ctor_get(x_3, 1); -lean_inc(x_181); -lean_dec(x_3); -lean_inc(x_181); -x_182 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_181, x_4); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_unbox(x_183); -if (x_184 == 0) -{ -uint8_t x_185; -lean_dec(x_181); -lean_dec(x_2); -x_185 = !lean_is_exclusive(x_182); -if (x_185 == 0) -{ -lean_object* x_186; -x_186 = lean_ctor_get(x_182, 0); -lean_dec(x_186); -return x_182; -} -else -{ -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_182, 1); -lean_inc(x_187); -lean_dec(x_182); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_187); -return x_188; -} -} -else -{ -lean_object* x_189; -lean_dec(x_183); -x_189 = lean_ctor_get(x_182, 1); -lean_inc(x_189); -lean_dec(x_182); -x_3 = x_181; -x_4 = x_189; -goto _start; -} -} -case 11: -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_191 = lean_ctor_get(x_3, 2); -lean_inc(x_191); -lean_dec(x_3); -lean_inc(x_191); -x_192 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_191, x_4); -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_unbox(x_193); -if (x_194 == 0) -{ -uint8_t x_195; -lean_dec(x_191); -lean_dec(x_2); -x_195 = !lean_is_exclusive(x_192); -if (x_195 == 0) -{ -lean_object* x_196; -x_196 = lean_ctor_get(x_192, 0); -lean_dec(x_196); -return x_192; -} -else -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_192, 1); -lean_inc(x_197); -lean_dec(x_192); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_193); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -else -{ -lean_object* x_199; -lean_dec(x_193); -x_199 = lean_ctor_get(x_192, 1); -lean_inc(x_199); -lean_dec(x_192); -x_3 = x_191; -x_4 = x_199; -goto _start; -} -} -default: -{ -uint8_t x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_3); -lean_dec(x_2); -x_201 = 0; -x_202 = lean_box(x_201); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_4); -return x_203; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__54(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_fget(x_3, x_5); -x_9 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53(x_1, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_unsigned_to_nat(1u); -x_11 = lean_nat_add(x_5, x_10); -lean_dec(x_5); -x_5 = x_11; -goto _start; -} -else -{ -lean_dec(x_5); -return x_9; -} -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__55(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; -x_8 = lean_array_fget(x_3, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_5 = x_10; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l_Lean_LocalDecl_name(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_13, x_1, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_5, x_17); -lean_dec(x_5); -x_5 = x_18; -goto _start; -} -else -{ -lean_dec(x_5); -return x_16; -} -} -} -} -} -uint8_t l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__54(x_1, x_3, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_array_get_size(x_7); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__55(x_1, x_7, x_7, x_8, x_9); -lean_dec(x_8); -return x_10; -} -} -} -uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__56(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; -x_6 = lean_nat_dec_lt(x_5, x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_5); -x_7 = 0; -return x_7; -} -else -{ -lean_object* x_8; -x_8 = lean_array_fget(x_3, x_5); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_5 = x_10; -goto _start; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_12 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = l_Lean_LocalDecl_name(x_12); -lean_dec(x_12); -x_14 = lean_array_get_size(x_1); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_13, x_1, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_5, x_17); -lean_dec(x_5); -x_5 = x_18; -goto _start; -} -else -{ -lean_dec(x_5); -return x_16; -} -} -} -} -} -uint8_t l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__52(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_ctor_get(x_2, 0); -x_4 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53(x_1, x_3); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_2, 1); -x_6 = lean_array_get_size(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__56(x_1, x_2, x_5, x_6, x_7); -lean_dec(x_6); -return x_8; -} -else -{ -return x_4; -} -} -} -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_3)) { -case 1: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_2); -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = lean_array_get_size(x_1); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__2(x_1, x_5, x_1, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_4); -return x_10; -} -case 2: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_dec(x_3); -lean_inc(x_11); -lean_inc(x_2); -x_12 = lean_metavar_ctx_get_expr_assignment(x_2, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_13 = l_Lean_MetavarContext_getDecl(x_2, x_11); -lean_dec(x_11); -lean_dec(x_2); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__52(x_1, x_15); -lean_dec(x_15); -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_4); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -lean_dec(x_11); -x_19 = lean_ctor_get(x_12, 0); -lean_inc(x_19); -lean_dec(x_12); -lean_inc(x_19); -x_20 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_19, x_4); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_unbox(x_21); -if (x_22 == 0) -{ -uint8_t x_23; -lean_dec(x_19); -lean_dec(x_2); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) -{ -lean_object* x_24; -x_24 = lean_ctor_get(x_20, 0); -lean_dec(x_24); -return x_20; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_21); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -lean_object* x_27; -lean_dec(x_21); -x_27 = lean_ctor_get(x_20, 1); -lean_inc(x_27); -lean_dec(x_20); -x_3 = x_19; -x_4 = x_27; -goto _start; -} -} -} -case 5: -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_29 = lean_ctor_get(x_3, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_3, 1); -lean_inc(x_30); -lean_dec(x_3); -lean_inc(x_30); -x_31 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_30, x_4); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -lean_dec(x_30); -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = l_Lean_Expr_isApp(x_29); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_inc(x_29); -x_36 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_29, x_34); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_unbox(x_37); -if (x_38 == 0) -{ -uint8_t x_39; -lean_dec(x_29); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_36); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_36, 0); -lean_dec(x_40); -return x_36; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_36, 1); -lean_inc(x_41); -lean_dec(x_36); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_37); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -else -{ -lean_object* x_43; -lean_dec(x_37); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); -lean_dec(x_36); -x_3 = x_29; -x_4 = x_43; -goto _start; -} -} -else -{ -x_3 = x_29; -x_4 = x_34; -goto _start; -} -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_46 = lean_ctor_get(x_31, 1); -lean_inc(x_46); -lean_dec(x_31); -lean_inc(x_2); -x_47 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_1, x_2, x_30, x_46); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_unbox(x_48); -if (x_49 == 0) -{ -lean_object* x_50; uint8_t x_51; -lean_dec(x_48); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = l_Lean_Expr_isApp(x_29); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; uint8_t x_54; -lean_inc(x_29); -x_52 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_29, x_50); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_unbox(x_53); -if (x_54 == 0) -{ -uint8_t x_55; -lean_dec(x_29); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_52); -if (x_55 == 0) -{ -lean_object* x_56; -x_56 = lean_ctor_get(x_52, 0); -lean_dec(x_56); -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; -x_57 = lean_ctor_get(x_52, 1); -lean_inc(x_57); -lean_dec(x_52); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_53); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -else -{ -lean_object* x_59; -lean_dec(x_53); -x_59 = lean_ctor_get(x_52, 1); -lean_inc(x_59); -lean_dec(x_52); -x_3 = x_29; -x_4 = x_59; -goto _start; -} -} -else -{ -x_3 = x_29; -x_4 = x_50; -goto _start; -} -} -else -{ -uint8_t x_62; -lean_dec(x_29); -lean_dec(x_2); -x_62 = !lean_is_exclusive(x_47); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_47, 0); -lean_dec(x_63); -return x_47; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_47, 1); -lean_inc(x_64); -lean_dec(x_47); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_48); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -} -case 6: -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = lean_ctor_get(x_3, 1); -lean_inc(x_66); -x_67 = lean_ctor_get(x_3, 2); -lean_inc(x_67); -lean_dec(x_3); -lean_inc(x_66); -x_68 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_66, x_4); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_unbox(x_69); -lean_dec(x_69); -if (x_70 == 0) -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -lean_dec(x_66); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_dec(x_68); -lean_inc(x_67); -x_72 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_67, x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_unbox(x_73); -if (x_74 == 0) -{ -uint8_t x_75; -lean_dec(x_67); -lean_dec(x_2); -x_75 = !lean_is_exclusive(x_72); -if (x_75 == 0) -{ -lean_object* x_76; -x_76 = lean_ctor_get(x_72, 0); -lean_dec(x_76); -return x_72; -} -else -{ -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_72, 1); -lean_inc(x_77); -lean_dec(x_72); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_73); -lean_ctor_set(x_78, 1, x_77); -return x_78; -} -} -else -{ -lean_object* x_79; -lean_dec(x_73); -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_dec(x_72); -x_3 = x_67; -x_4 = x_79; -goto _start; -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_81 = lean_ctor_get(x_68, 1); -lean_inc(x_81); -lean_dec(x_68); -lean_inc(x_2); -x_82 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_1, x_2, x_66, x_81); -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_unbox(x_83); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_dec(x_83); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec(x_82); -lean_inc(x_67); -x_86 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_67, x_85); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_unbox(x_87); -if (x_88 == 0) -{ -uint8_t x_89; -lean_dec(x_67); -lean_dec(x_2); -x_89 = !lean_is_exclusive(x_86); -if (x_89 == 0) -{ -lean_object* x_90; -x_90 = lean_ctor_get(x_86, 0); -lean_dec(x_90); -return x_86; -} -else -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_86, 1); -lean_inc(x_91); -lean_dec(x_86); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_87); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -else -{ -lean_object* x_93; -lean_dec(x_87); -x_93 = lean_ctor_get(x_86, 1); -lean_inc(x_93); -lean_dec(x_86); -x_3 = x_67; -x_4 = x_93; -goto _start; -} -} -else -{ -uint8_t x_95; -lean_dec(x_67); -lean_dec(x_2); -x_95 = !lean_is_exclusive(x_82); -if (x_95 == 0) -{ -lean_object* x_96; -x_96 = lean_ctor_get(x_82, 0); -lean_dec(x_96); -return x_82; -} -else -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_82, 1); -lean_inc(x_97); -lean_dec(x_82); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_83); -lean_ctor_set(x_98, 1, x_97); -return x_98; -} -} -} -} -case 7: -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_99 = lean_ctor_get(x_3, 1); -lean_inc(x_99); -x_100 = lean_ctor_get(x_3, 2); -lean_inc(x_100); -lean_dec(x_3); -lean_inc(x_99); -x_101 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_99, x_4); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_unbox(x_102); -lean_dec(x_102); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; -lean_dec(x_99); -x_104 = lean_ctor_get(x_101, 1); -lean_inc(x_104); -lean_dec(x_101); -lean_inc(x_100); -x_105 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_100, x_104); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_unbox(x_106); -if (x_107 == 0) -{ -uint8_t x_108; -lean_dec(x_100); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_105); -if (x_108 == 0) -{ -lean_object* x_109; -x_109 = lean_ctor_get(x_105, 0); -lean_dec(x_109); -return x_105; -} -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_105, 1); -lean_inc(x_110); -lean_dec(x_105); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_106); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -else -{ -lean_object* x_112; -lean_dec(x_106); -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -lean_dec(x_105); -x_3 = x_100; -x_4 = x_112; -goto _start; -} -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_114 = lean_ctor_get(x_101, 1); -lean_inc(x_114); -lean_dec(x_101); -lean_inc(x_2); -x_115 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_1, x_2, x_99, x_114); -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_unbox(x_116); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; -lean_dec(x_116); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_dec(x_115); -lean_inc(x_100); -x_119 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_100, x_118); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_unbox(x_120); -if (x_121 == 0) -{ -uint8_t x_122; -lean_dec(x_100); -lean_dec(x_2); -x_122 = !lean_is_exclusive(x_119); -if (x_122 == 0) -{ -lean_object* x_123; -x_123 = lean_ctor_get(x_119, 0); -lean_dec(x_123); -return x_119; -} -else -{ -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_dec(x_119); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_120); -lean_ctor_set(x_125, 1, x_124); -return x_125; -} -} -else -{ -lean_object* x_126; -lean_dec(x_120); -x_126 = lean_ctor_get(x_119, 1); -lean_inc(x_126); -lean_dec(x_119); -x_3 = x_100; -x_4 = x_126; -goto _start; -} -} -else -{ -uint8_t x_128; -lean_dec(x_100); -lean_dec(x_2); -x_128 = !lean_is_exclusive(x_115); -if (x_128 == 0) -{ -lean_object* x_129; -x_129 = lean_ctor_get(x_115, 0); -lean_dec(x_129); -return x_115; -} -else -{ -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_115, 1); -lean_inc(x_130); -lean_dec(x_115); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_116); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -} -case 8: -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; lean_object* x_136; lean_object* x_171; lean_object* x_172; uint8_t x_173; -x_132 = lean_ctor_get(x_3, 1); -lean_inc(x_132); -x_133 = lean_ctor_get(x_3, 2); -lean_inc(x_133); -x_134 = lean_ctor_get(x_3, 3); -lean_inc(x_134); -lean_dec(x_3); -lean_inc(x_132); -x_171 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_132, x_4); -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_unbox(x_172); -if (x_173 == 0) -{ -lean_object* x_174; uint8_t x_175; -lean_dec(x_132); -x_174 = lean_ctor_get(x_171, 1); -lean_inc(x_174); -lean_dec(x_171); -x_175 = lean_unbox(x_172); -lean_dec(x_172); -x_135 = x_175; -x_136 = x_174; -goto block_170; -} -else -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; -lean_dec(x_172); -x_176 = lean_ctor_get(x_171, 1); -lean_inc(x_176); -lean_dec(x_171); -lean_inc(x_2); -x_177 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_1, x_2, x_132, x_176); -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_177, 1); -lean_inc(x_179); -lean_dec(x_177); -x_180 = lean_unbox(x_178); -lean_dec(x_178); -x_135 = x_180; -x_136 = x_179; -goto block_170; -} -block_170: -{ -if (x_135 == 0) -{ -lean_object* x_137; lean_object* x_138; uint8_t x_139; -lean_inc(x_133); -x_137 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_133, x_136); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_unbox(x_138); -lean_dec(x_138); -if (x_139 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; -lean_dec(x_133); -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_dec(x_137); -lean_inc(x_134); -x_141 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_134, x_140); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_unbox(x_142); -if (x_143 == 0) -{ -uint8_t x_144; -lean_dec(x_134); -lean_dec(x_2); -x_144 = !lean_is_exclusive(x_141); -if (x_144 == 0) -{ -lean_object* x_145; -x_145 = lean_ctor_get(x_141, 0); -lean_dec(x_145); -return x_141; -} -else -{ -lean_object* x_146; lean_object* x_147; -x_146 = lean_ctor_get(x_141, 1); -lean_inc(x_146); -lean_dec(x_141); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_142); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -} -else -{ -lean_object* x_148; -lean_dec(x_142); -x_148 = lean_ctor_get(x_141, 1); -lean_inc(x_148); -lean_dec(x_141); -x_3 = x_134; -x_4 = x_148; -goto _start; -} -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_150 = lean_ctor_get(x_137, 1); -lean_inc(x_150); -lean_dec(x_137); -lean_inc(x_2); -x_151 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_1, x_2, x_133, x_150); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_unbox(x_152); -if (x_153 == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; -lean_dec(x_152); -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_154); -lean_dec(x_151); -lean_inc(x_134); -x_155 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_134, x_154); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_unbox(x_156); -if (x_157 == 0) -{ -uint8_t x_158; -lean_dec(x_134); -lean_dec(x_2); -x_158 = !lean_is_exclusive(x_155); -if (x_158 == 0) -{ -lean_object* x_159; -x_159 = lean_ctor_get(x_155, 0); -lean_dec(x_159); -return x_155; -} -else -{ -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_155, 1); -lean_inc(x_160); -lean_dec(x_155); -x_161 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_161, 0, x_156); -lean_ctor_set(x_161, 1, x_160); -return x_161; -} -} -else -{ -lean_object* x_162; -lean_dec(x_156); -x_162 = lean_ctor_get(x_155, 1); -lean_inc(x_162); -lean_dec(x_155); -x_3 = x_134; -x_4 = x_162; -goto _start; -} -} -else -{ -uint8_t x_164; -lean_dec(x_134); -lean_dec(x_2); -x_164 = !lean_is_exclusive(x_151); -if (x_164 == 0) -{ -lean_object* x_165; -x_165 = lean_ctor_get(x_151, 0); -lean_dec(x_165); -return x_151; -} -else -{ -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_151, 1); -lean_inc(x_166); -lean_dec(x_151); -x_167 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_167, 0, x_152); -lean_ctor_set(x_167, 1, x_166); -return x_167; -} -} -} -} -else -{ -lean_object* x_168; lean_object* x_169; -lean_dec(x_134); -lean_dec(x_133); -lean_dec(x_2); -x_168 = lean_box(x_135); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_136); -return x_169; -} -} -} -case 10: -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_181 = lean_ctor_get(x_3, 1); -lean_inc(x_181); -lean_dec(x_3); -lean_inc(x_181); -x_182 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_181, x_4); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_unbox(x_183); -if (x_184 == 0) -{ -uint8_t x_185; -lean_dec(x_181); -lean_dec(x_2); -x_185 = !lean_is_exclusive(x_182); -if (x_185 == 0) -{ -lean_object* x_186; -x_186 = lean_ctor_get(x_182, 0); -lean_dec(x_186); -return x_182; -} -else -{ -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_182, 1); -lean_inc(x_187); -lean_dec(x_182); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_183); -lean_ctor_set(x_188, 1, x_187); -return x_188; -} -} -else -{ -lean_object* x_189; -lean_dec(x_183); -x_189 = lean_ctor_get(x_182, 1); -lean_inc(x_189); -lean_dec(x_182); -x_3 = x_181; -x_4 = x_189; -goto _start; -} -} -case 11: -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; uint8_t x_194; -x_191 = lean_ctor_get(x_3, 2); -lean_inc(x_191); -lean_dec(x_3); -lean_inc(x_191); -x_192 = l___private_Init_Lean_MetavarContext_8__visit_x3f(x_191, x_4); -x_193 = lean_ctor_get(x_192, 0); -lean_inc(x_193); -x_194 = lean_unbox(x_193); -if (x_194 == 0) -{ -uint8_t x_195; -lean_dec(x_191); -lean_dec(x_2); -x_195 = !lean_is_exclusive(x_192); -if (x_195 == 0) -{ -lean_object* x_196; -x_196 = lean_ctor_get(x_192, 0); -lean_dec(x_196); -return x_192; -} -else -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_192, 1); -lean_inc(x_197); -lean_dec(x_192); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_193); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -else -{ -lean_object* x_199; -lean_dec(x_193); -x_199 = lean_ctor_get(x_192, 1); -lean_inc(x_199); -lean_dec(x_192); -x_3 = x_191; -x_4 = x_199; -goto _start; -} -} -default: -{ -uint8_t x_201; lean_object* x_202; lean_object* x_203; -lean_dec(x_3); -lean_dec(x_2); -x_201 = 0; -x_202 = lean_box(x_201); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_4); -return x_203; -} -} -} -} -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg(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; uint8_t x_7; @@ -28831,7 +22455,7 @@ else lean_object* x_9; lean_object* x_10; x_9 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_10 = l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg(x_1, x_9, x_5); +x_10 = l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg(x_1, x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -28870,15 +22494,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg(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; uint8_t x_7; @@ -28937,15 +22561,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -28953,7 +22577,7 @@ if (lean_obj_tag(x_2) == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_2, 0); x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg(x_1, x_4, x_4, x_5, x_3); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg(x_1, x_4, x_4, x_5, x_3); return x_6; } else @@ -28961,20 +22585,20 @@ else lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_2, 0); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg(x_1, x_7, x_7, x_8, x_3); +x_9 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg(x_1, x_7, x_7, x_8, x_3); return x_9; } } } -lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60(lean_object* x_1) { +lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg___boxed), 3, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg(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; uint8_t x_7; @@ -28995,7 +22619,7 @@ else lean_object* x_9; lean_object* x_10; x_9 = lean_array_fget(x_3, x_4); lean_inc(x_1); -x_10 = l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg(x_1, x_9, x_5); +x_10 = l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg(x_1, x_9, x_5); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { @@ -29034,15 +22658,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg(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; uint8_t x_7; @@ -29101,15 +22725,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { _start: { if (lean_obj_tag(x_2) == 0) @@ -29127,7 +22751,7 @@ x_14 = x_3 & x_13; x_15 = 5; x_16 = x_4 - x_15; lean_inc(x_1); -x_17 = l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg(x_1, x_10, x_14, x_16, x_5); +x_17 = l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg(x_1, x_10, x_14, x_16, x_5); lean_dec(x_10); if (lean_obj_tag(x_17) == 0) { @@ -29159,7 +22783,7 @@ lean_dec(x_17); x_22 = lean_unsigned_to_nat(1u); x_23 = lean_nat_add(x_8, x_22); lean_dec(x_8); -x_24 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg(x_1, x_6, x_6, x_23, x_21); +x_24 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg(x_1, x_6, x_6, x_23, x_21); return x_24; } } @@ -29168,20 +22792,20 @@ else lean_object* x_25; lean_object* x_26; lean_object* x_27; x_25 = lean_ctor_get(x_2, 0); x_26 = lean_usize_to_nat(x_3); -x_27 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg(x_1, x_25, x_25, x_26, x_5); +x_27 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg(x_1, x_25, x_25, x_26, x_5); return x_27; } } } -lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59(lean_object* x_1) { +lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg(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; uint8_t x_7; @@ -29240,15 +22864,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg(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; uint8_t x_7; @@ -29307,15 +22931,15 @@ goto _start; } } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66(lean_object* x_1) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg___boxed), 5, 0); +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg___boxed), 5, 0); return x_2; } } -lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -29328,7 +22952,7 @@ x_7 = lean_ctor_get(x_1, 0); x_8 = lean_usize_of_nat(x_4); x_9 = lean_ctor_get_usize(x_1, 4); lean_inc(x_2); -x_10 = l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg(x_2, x_7, x_8, x_9, x_3); +x_10 = l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg(x_2, x_7, x_8, x_9, x_3); if (lean_obj_tag(x_10) == 0) { uint8_t x_11; @@ -29357,7 +22981,7 @@ lean_inc(x_14); lean_dec(x_10); x_15 = lean_ctor_get(x_1, 1); x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg(x_1, x_2, x_15, x_16, x_14); +x_17 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg(x_1, x_2, x_15, x_16, x_14); return x_17; } } @@ -29366,20 +22990,20 @@ else lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_1, 1); x_19 = lean_nat_sub(x_4, x_5); -x_20 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg(x_1, x_2, x_18, x_19, x_3); +x_20 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg(x_1, x_2, x_18, x_19, x_3); return x_20; } } } -lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58(lean_object* x_1) { +lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg___boxed), 4, 0); +x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg___boxed), 4, 0); return x_2; } } -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { if (lean_obj_tag(x_6) == 0) @@ -29394,49 +23018,65 @@ return x_7; } else { -lean_object* x_8; uint8_t x_9; lean_object* x_19; uint8_t x_20; +lean_object* x_8; lean_object* x_9; lean_object* x_18; uint8_t x_19; x_8 = lean_ctor_get(x_6, 0); lean_inc(x_8); lean_dec(x_6); -x_19 = lean_unsigned_to_nat(0u); -x_20 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__1(x_3, x_8, x_3, x_4, x_19); -if (x_20 == 0) +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__1(x_3, x_8, x_3, x_4, x_18); +if (x_19 == 0) { if (lean_obj_tag(x_8) == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = lean_ctor_get(x_8, 3); -lean_inc(x_21); -x_22 = lean_expr_has_fvar(x_21); +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_8, 3); +lean_inc(x_20); +x_21 = l_Lean_Expr_hasFVar(x_20); +if (x_21 == 0) +{ +uint8_t x_22; +x_22 = l_Lean_Expr_hasMVar(x_20); if (x_22 == 0) { -uint8_t x_23; -x_23 = lean_expr_has_expr_mvar(x_21); -if (x_23 == 0) -{ -uint8_t x_24; -x_24 = lean_expr_has_level_mvar(x_21); -if (x_24 == 0) -{ -uint8_t x_25; -lean_dec(x_21); -x_25 = 0; -x_9 = x_25; -goto block_18; +lean_object* x_23; +lean_dec(x_20); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_5); +return x_23; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_26 = l_HashMap_Inhabited___closed__1; +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = l_HashMap_Inhabited___closed__1; lean_inc(x_1); -x_27 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__3(x_5, x_1, x_21, x_26); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -lean_dec(x_27); -x_29 = lean_unbox(x_28); -lean_dec(x_28); +x_25 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__3(x_5, x_1, x_20, x_24); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_unbox(x_26); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_5); +return x_28; +} +else +{ +lean_object* x_29; +x_29 = lean_box(0); x_9 = x_29; -goto block_18; +goto block_17; +} } } else @@ -29444,259 +23084,245 @@ else lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; x_30 = l_HashMap_Inhabited___closed__1; lean_inc(x_1); -x_31 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__9(x_5, x_1, x_21, x_30); +x_31 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__9(x_5, x_1, x_20, x_30); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); lean_dec(x_31); x_33 = lean_unbox(x_32); lean_dec(x_32); -x_9 = x_33; -goto block_18; +if (x_33 == 0) +{ +lean_object* x_34; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_5); +return x_34; +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_9 = x_35; +goto block_17; +} } } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = l_HashMap_Inhabited___closed__1; -lean_inc(x_1); -x_35 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__15(x_5, x_1, x_21, x_34); -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; uint8_t x_55; +x_36 = lean_ctor_get(x_8, 3); lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -x_9 = x_37; -goto block_18; -} -} -else +x_37 = lean_ctor_get(x_8, 4); +lean_inc(x_37); +x_55 = l_Lean_Expr_hasFVar(x_36); +if (x_55 == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; uint8_t x_56; -x_38 = lean_ctor_get(x_8, 3); -lean_inc(x_38); -x_39 = lean_ctor_get(x_8, 4); -lean_inc(x_39); -x_56 = lean_expr_has_fvar(x_38); +uint8_t x_56; +x_56 = l_Lean_Expr_hasMVar(x_36); if (x_56 == 0) { -uint8_t x_57; -x_57 = lean_expr_has_expr_mvar(x_38); -if (x_57 == 0) -{ -uint8_t x_58; -x_58 = lean_expr_has_level_mvar(x_38); -if (x_58 == 0) -{ -uint8_t x_59; lean_object* x_60; -lean_dec(x_38); -x_59 = 0; -x_60 = l_HashMap_Inhabited___closed__1; -x_40 = x_59; -x_41 = x_60; -goto block_55; +uint8_t x_57; lean_object* x_58; +lean_dec(x_36); +x_57 = 0; +x_58 = l_HashMap_Inhabited___closed__1; +x_38 = x_57; +x_39 = x_58; +goto block_54; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_61 = l_HashMap_Inhabited___closed__1; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_59 = l_HashMap_Inhabited___closed__1; lean_inc(x_1); -x_62 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_5, x_1, x_38, x_61); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_unbox(x_63); -lean_dec(x_63); -x_40 = x_65; -x_41 = x_64; -goto block_55; +x_60 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__27(x_5, x_1, x_36, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_unbox(x_61); +lean_dec(x_61); +x_38 = x_63; +x_39 = x_62; +goto block_54; } } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_66 = l_HashMap_Inhabited___closed__1; +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_64 = l_HashMap_Inhabited___closed__1; lean_inc(x_1); -x_67 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_5, x_1, x_38, x_66); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_unbox(x_68); -lean_dec(x_68); -x_40 = x_70; -x_41 = x_69; -goto block_55; +x_65 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__33(x_5, x_1, x_36, x_64); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = lean_unbox(x_66); +lean_dec(x_66); +x_38 = x_68; +x_39 = x_67; +goto block_54; } -} -else +block_54: { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; -x_71 = l_HashMap_Inhabited___closed__1; -lean_inc(x_1); -x_72 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_5, x_1, x_38, x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_unbox(x_73); -lean_dec(x_73); -x_40 = x_75; -x_41 = x_74; -goto block_55; -} -block_55: +if (x_38 == 0) { +uint8_t x_40; +x_40 = l_Lean_Expr_hasFVar(x_37); if (x_40 == 0) { -uint8_t x_42; -x_42 = lean_expr_has_fvar(x_39); -if (x_42 == 0) +uint8_t x_41; +x_41 = l_Lean_Expr_hasMVar(x_37); +if (x_41 == 0) { -uint8_t x_43; -x_43 = lean_expr_has_expr_mvar(x_39); -if (x_43 == 0) -{ -uint8_t x_44; -x_44 = lean_expr_has_level_mvar(x_39); -if (x_44 == 0) -{ -uint8_t x_45; -lean_dec(x_41); +lean_object* x_42; lean_dec(x_39); -x_45 = 0; -x_9 = x_45; -goto block_18; +lean_dec(x_37); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_5); +return x_42; } else { -lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_inc(x_1); -x_46 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__21(x_5, x_1, x_39, x_41); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -lean_dec(x_46); -x_48 = lean_unbox(x_47); -lean_dec(x_47); -x_9 = x_48; -goto block_18; +x_43 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__15(x_5, x_1, x_37, x_39); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_unbox(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_5); +return x_46; +} +else +{ +lean_object* x_47; +x_47 = lean_box(0); +x_9 = x_47; +goto block_17; +} } } else { -lean_object* x_49; lean_object* x_50; uint8_t x_51; +lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_inc(x_1); -x_49 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__27(x_5, x_1, x_39, x_41); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); +x_48 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__21(x_5, x_1, x_37, x_39); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +lean_dec(x_48); +x_50 = lean_unbox(x_49); lean_dec(x_49); -x_51 = lean_unbox(x_50); -lean_dec(x_50); -x_9 = x_51; -goto block_18; +if (x_50 == 0) +{ +lean_object* x_51; +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_5); +return x_51; +} +else +{ +lean_object* x_52; +x_52 = lean_box(0); +x_9 = x_52; +goto block_17; +} } } else { -lean_object* x_52; lean_object* x_53; uint8_t x_54; -lean_inc(x_1); -x_52 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__33(x_5, x_1, x_39, x_41); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_unbox(x_53); -lean_dec(x_53); -x_9 = x_54; -goto block_18; -} -} -else -{ -lean_dec(x_41); +lean_object* x_53; lean_dec(x_39); -x_9 = x_40; -goto block_18; +lean_dec(x_37); +x_53 = lean_box(0); +x_9 = x_53; +goto block_17; } } } } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_76 = l_Lean_LocalDecl_toExpr(x_8); +x_69 = l_Lean_LocalDecl_toExpr(x_8); lean_dec(x_8); -x_77 = lean_array_push(x_5, x_76); -x_78 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_78, 0, x_77); -return x_78; +x_70 = lean_array_push(x_5, x_69); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_70); +return x_71; } -block_18: +block_17: { -if (x_9 == 0) +uint8_t x_10; uint8_t x_11; +lean_dec(x_9); +x_10 = l_Lean_LocalDecl_binderInfo(x_8); +x_11 = l_Lean_BinderInfo_isAuxDecl(x_10); +if (x_11 == 0) { -lean_object* x_10; -lean_dec(x_8); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_5); -return x_10; +x_12 = l_Lean_LocalDecl_toExpr(x_8); +lean_dec(x_8); +x_13 = lean_array_push(x_5, x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; } else { -uint8_t x_11; uint8_t x_12; -x_11 = l_Lean_LocalDecl_binderInfo(x_8); -x_12 = l_Lean_BinderInfo_isAuxDecl(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_13 = l_Lean_LocalDecl_toExpr(x_8); -lean_dec(x_8); -x_14 = lean_array_push(x_5, x_13); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; +lean_object* x_15; lean_object* x_16; lean_dec(x_5); -x_16 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_16, 0, x_1); -lean_ctor_set(x_16, 1, x_2); -lean_ctor_set(x_16, 2, x_3); -lean_ctor_set(x_16, 3, x_8); -x_17 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_17, 0, x_16); -return x_17; +x_15 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_2); +lean_ctor_set(x_15, 2, x_3); +lean_ctor_set(x_15, 3, x_8); +x_16 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; } } } } } -} -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57(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* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = lean_ctor_get(x_5, 1); -x_9 = lean_alloc_closure((void*)(l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___lambda__1___boxed), 6, 4); +x_9 = lean_alloc_closure((void*)(l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___lambda__1___boxed), 6, 4); lean_closure_set(x_9, 0, x_1); lean_closure_set(x_9, 1, x_2); lean_closure_set(x_9, 2, x_3); lean_closure_set(x_9, 3, x_4); x_10 = l_Lean_LocalDecl_index(x_7); -x_11 = l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg(x_8, x_9, x_6, x_10); +x_11 = l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg(x_8, x_9, x_6, x_10); lean_dec(x_10); return x_11; } @@ -29715,7 +23341,7 @@ lean_inc(x_2); x_7 = l___private_Init_Lean_MetavarContext_12__getLocalDeclWithSmallestIdx(x_2, x_3); x_8 = lean_mk_empty_array_with_capacity(x_4); lean_inc(x_2); -x_9 = l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57(x_1, x_2, x_3, x_4, x_2, x_8, x_7); +x_9 = l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_3, x_4, x_2, x_8, x_7); lean_dec(x_7); lean_dec(x_2); return x_9; @@ -30178,266 +23804,56 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__49___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__49(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__50___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__50(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__54___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__54(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__55___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__55(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__53(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__56___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 = l_Array_anyRangeMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__56(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_7 = lean_box(x_6); -return x_7; -} -} -lean_object* l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__52___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__52(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l___private_Init_Lean_MetavarContext_10__dep___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__51(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg___boxed(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; -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__61___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__43___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg___boxed(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; -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__62___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__44___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__60___rarg(x_1, x_2, x_3); +x_4 = l_PersistentArray_foldlMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__42___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg___boxed(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; -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__63___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__45___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg___boxed(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; -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__64___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__46___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { size_t x_6; size_t x_7; lean_object* x_8; @@ -30445,55 +23861,55 @@ x_6 = lean_unbox_usize(x_3); lean_dec(x_3); x_7 = lean_unbox_usize(x_4); lean_dec(x_4); -x_8 = l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__59___rarg(x_1, x_2, x_6, x_7, x_5); +x_8 = l_PersistentArray_foldlFromMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__41___rarg(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg___boxed(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; -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__65___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__47___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_1); return x_6; } } -lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg___boxed(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; -x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__66___rarg(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__48___rarg(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_1); return x_6; } } -lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__58___rarg(x_1, x_2, x_3, x_4); +x_5 = l_PersistentArray_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__40___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); return x_7; } } -lean_object* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57___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* l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__57(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_LocalContext_foldlFromM___at___private_Init_Lean_MetavarContext_13__collectDeps___spec__39(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_7); lean_dec(x_5); return x_8; @@ -30559,277 +23975,143 @@ lean_object* l___private_Init_Lean_MetavarContext_15__visit(lean_object* x_1, le _start: { uint8_t x_4; -x_4 = lean_expr_has_expr_mvar(x_2); +x_4 = l_Lean_Expr_hasMVar(x_2); if (x_4 == 0) { -uint8_t x_5; -x_5 = lean_expr_has_level_mvar(x_2); -if (x_5 == 0) -{ -lean_object* x_6; +lean_object* x_5; lean_dec(x_1); -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -return x_6; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +return x_5; } else { -lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_3, 2); -lean_inc(x_7); -x_8 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_7, x_2); -lean_dec(x_7); +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 2); +lean_inc(x_6); +x_7 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_6, x_2); +lean_dec(x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_inc(x_2); +x_8 = lean_apply_2(x_1, x_2, x_3); if (lean_obj_tag(x_8) == 0) { -lean_object* x_9; -lean_inc(x_2); -x_9 = lean_apply_2(x_1, x_2, x_3); -if (lean_obj_tag(x_9) == 0) +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_8, 1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_9, 1); -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_11, 2); -lean_inc(x_13); -x_15 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_14, x_2, x_13); -lean_ctor_set(x_11, 2, x_15); -return x_9; +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_10, 2); +lean_inc(x_12); +x_14 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_13, x_2, x_12); +lean_ctor_set(x_10, 2, x_14); +return x_8; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -x_19 = lean_ctor_get(x_11, 2); -lean_inc(x_19); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +x_18 = lean_ctor_get(x_10, 2); lean_inc(x_18); lean_inc(x_17); -lean_dec(x_11); lean_inc(x_16); -x_20 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_19, x_2, x_16); -x_21 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_21, 0, x_17); -lean_ctor_set(x_21, 1, x_18); -lean_ctor_set(x_21, 2, x_20); -lean_ctor_set(x_9, 1, x_21); -return x_9; +lean_dec(x_10); +lean_inc(x_15); +x_19 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_18, x_2, x_15); +x_20 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 1, x_17); +lean_ctor_set(x_20, 2, x_19); +lean_ctor_set(x_8, 1, x_20); +return x_8; } } else { -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; -x_22 = lean_ctor_get(x_9, 1); -x_23 = lean_ctor_get(x_9, 0); +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; +x_21 = lean_ctor_get(x_8, 1); +x_22 = lean_ctor_get(x_8, 0); +lean_inc(x_21); lean_inc(x_22); -lean_inc(x_23); -lean_dec(x_9); -x_24 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_22, 1); -lean_inc(x_25); -x_26 = lean_ctor_get(x_22, 2); -lean_inc(x_26); -if (lean_is_exclusive(x_22)) { - lean_ctor_release(x_22, 0); - lean_ctor_release(x_22, 1); - lean_ctor_release(x_22, 2); - x_27 = x_22; -} else { - lean_dec_ref(x_22); - x_27 = lean_box(0); -} -lean_inc(x_23); -x_28 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_26, x_2, x_23); -if (lean_is_scalar(x_27)) { - x_29 = lean_alloc_ctor(0, 3, 0); -} else { - x_29 = x_27; -} -lean_ctor_set(x_29, 0, x_24); -lean_ctor_set(x_29, 1, x_25); -lean_ctor_set(x_29, 2, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_dec(x_2); -x_31 = !lean_is_exclusive(x_9); -if (x_31 == 0) -{ -return x_9; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_9); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -lean_object* x_35; lean_object* x_36; -lean_dec(x_2); -lean_dec(x_1); -x_35 = lean_ctor_get(x_8, 0); -lean_inc(x_35); lean_dec(x_8); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_3); -return x_36; -} -} -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_3, 2); -lean_inc(x_37); -x_38 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_37, x_2); -lean_dec(x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; -lean_inc(x_2); -x_39 = lean_apply_2(x_1, x_2, x_3); -if (lean_obj_tag(x_39) == 0) -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_39, 1); -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 0); -x_44 = lean_ctor_get(x_41, 2); -lean_inc(x_43); -x_45 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_44, x_2, x_43); -lean_ctor_set(x_41, 2, x_45); -return x_39; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_46 = lean_ctor_get(x_39, 0); -x_47 = lean_ctor_get(x_41, 0); -x_48 = lean_ctor_get(x_41, 1); -x_49 = lean_ctor_get(x_41, 2); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_41); -lean_inc(x_46); -x_50 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_49, x_2, x_46); -x_51 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_51, 0, x_47); -lean_ctor_set(x_51, 1, x_48); -lean_ctor_set(x_51, 2, x_50); -lean_ctor_set(x_39, 1, x_51); -return x_39; -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_52 = lean_ctor_get(x_39, 1); -x_53 = lean_ctor_get(x_39, 0); -lean_inc(x_52); -lean_inc(x_53); -lean_dec(x_39); -x_54 = lean_ctor_get(x_52, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_52, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_52, 2); -lean_inc(x_56); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - lean_ctor_release(x_52, 2); - x_57 = x_52; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +x_25 = lean_ctor_get(x_21, 2); +lean_inc(x_25); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + lean_ctor_release(x_21, 2); + x_26 = x_21; } else { - lean_dec_ref(x_52); - x_57 = lean_box(0); + lean_dec_ref(x_21); + x_26 = lean_box(0); } -lean_inc(x_53); -x_58 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_56, x_2, x_53); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_22); +x_27 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_25, x_2, x_22); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 3, 0); } else { - x_59 = x_57; + x_28 = x_26; } -lean_ctor_set(x_59, 0, x_54); -lean_ctor_set(x_59, 1, x_55); -lean_ctor_set(x_59, 2, x_58); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_53); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_24); +lean_ctor_set(x_28, 2, x_27); +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 { -uint8_t x_61; +uint8_t x_30; lean_dec(x_2); -x_61 = !lean_is_exclusive(x_39); -if (x_61 == 0) +x_30 = !lean_is_exclusive(x_8); +if (x_30 == 0) { -return x_39; +return x_8; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_39, 0); -x_63 = lean_ctor_get(x_39, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_39); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_8, 0); +x_32 = lean_ctor_get(x_8, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_8); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -lean_object* x_65; lean_object* x_66; +lean_object* x_34; lean_object* x_35; lean_dec(x_2); lean_dec(x_1); -x_65 = lean_ctor_get(x_38, 0); -lean_inc(x_65); -lean_dec(x_38); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_3); -return x_66; +x_34 = lean_ctor_get(x_7, 0); +lean_inc(x_34); +lean_dec(x_7); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_3); +return x_35; } } } @@ -31121,7 +24403,7 @@ lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19 _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Expr_inhabited; +x_9 = l_Lean_Expr_Inhabited; x_10 = lean_array_get(x_9, x_1, x_2); x_11 = l_Lean_LocalContext_findFVar(x_3, x_10); lean_dec(x_10); @@ -31146,1188 +24428,752 @@ lean_inc(x_16); lean_dec(x_11); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; uint8_t x_28; +lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; x_17 = lean_ctor_get(x_16, 2); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 3); lean_inc(x_18); x_19 = lean_ctor_get_uint8(x_16, sizeof(void*)*4); lean_dec(x_16); -x_28 = lean_expr_has_expr_mvar(x_18); -if (x_28 == 0) -{ -uint8_t x_29; -x_29 = lean_expr_has_level_mvar(x_18); -if (x_29 == 0) +x_20 = l_Lean_Expr_hasMVar(x_18); +if (x_20 == 0) { +lean_object* x_21; lean_dec(x_7); -x_20 = x_18; -x_21 = x_8; -goto block_27; +x_21 = lean_expr_abstract_range(x_18, x_2, x_1); +lean_dec(x_1); +lean_dec(x_18); +if (x_5 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = l_Lean_mkForall(x_17, x_19, x_21, x_6); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_8); +return x_23; } else { +lean_object* x_24; lean_object* x_25; +x_24 = l_Lean_mkLambda(x_17, x_19, x_21, x_6); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_8); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_8); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_8, 2); +x_28 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_8, 2, x_28); +lean_inc(x_1); +x_29 = lean_apply_3(x_7, x_1, x_18, x_8); +if (lean_obj_tag(x_29) == 0) +{ uint8_t x_30; -x_30 = !lean_is_exclusive(x_8); +x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_8, 2); -x_32 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_8, 2, x_32); -lean_inc(x_1); -x_33 = lean_apply_3(x_7, x_1, x_18, x_8); -if (lean_obj_tag(x_33) == 0) +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_29, 1); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_33, 1); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 0); -lean_inc(x_35); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_31, 2); +lean_dec(x_34); +lean_ctor_set(x_31, 2, x_27); +x_35 = lean_expr_abstract_range(x_33, x_2, x_1); +lean_dec(x_1); lean_dec(x_33); -x_36 = !lean_is_exclusive(x_34); -if (x_36 == 0) +if (x_5 == 0) +{ +lean_object* x_36; +x_36 = l_Lean_mkForall(x_17, x_19, x_35, x_6); +lean_ctor_set(x_29, 0, x_36); +return x_29; +} +else { lean_object* x_37; -x_37 = lean_ctor_get(x_34, 2); -lean_dec(x_37); -lean_ctor_set(x_34, 2, x_31); -x_20 = x_35; -x_21 = x_34; -goto block_27; +x_37 = l_Lean_mkLambda(x_17, x_19, x_35, x_6); +lean_ctor_set(x_29, 0, x_37); +return x_29; +} } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_34, 0); -x_39 = lean_ctor_get(x_34, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_29, 0); +x_39 = lean_ctor_get(x_31, 0); +x_40 = lean_ctor_get(x_31, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_34); -x_40 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_31); -x_20 = x_35; -x_21 = x_40; -goto block_27; -} -} -else -{ -uint8_t x_41; lean_dec(x_31); -lean_dec(x_17); -lean_dec(x_6); +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_27); +x_42 = lean_expr_abstract_range(x_38, x_2, x_1); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_33); -if (x_41 == 0) +lean_dec(x_38); +if (x_5 == 0) { -return x_33; +lean_object* x_43; +x_43 = l_Lean_mkForall(x_17, x_19, x_42, x_6); +lean_ctor_set(x_29, 1, x_41); +lean_ctor_set(x_29, 0, x_43); +return x_29; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_33, 0); -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_33); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_object* x_44; +x_44 = l_Lean_mkLambda(x_17, x_19, x_42, x_6); +lean_ctor_set(x_29, 1, x_41); +lean_ctor_set(x_29, 0, x_44); +return x_29; } } } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_45 = lean_ctor_get(x_8, 0); -x_46 = lean_ctor_get(x_8, 1); -x_47 = lean_ctor_get(x_8, 2); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_29, 1); +x_46 = lean_ctor_get(x_29, 0); lean_inc(x_45); -lean_dec(x_8); -x_48 = l_HashMap_Inhabited___closed__1; -x_49 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_49, 0, x_45); -lean_ctor_set(x_49, 1, x_46); -lean_ctor_set(x_49, 2, x_48); -lean_inc(x_1); -x_50 = lean_apply_3(x_7, x_1, x_18, x_49); -if (lean_obj_tag(x_50) == 0) +lean_inc(x_46); +lean_dec(x_29); +x_47 = lean_ctor_get(x_45, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + lean_ctor_release(x_45, 1); + lean_ctor_release(x_45, 2); + x_49 = x_45; +} else { + lean_dec_ref(x_45); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 3, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +lean_ctor_set(x_50, 2, x_27); +x_51 = lean_expr_abstract_range(x_46, x_2, x_1); +lean_dec(x_1); +lean_dec(x_46); +if (x_5 == 0) { -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_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -lean_dec(x_50); -x_53 = lean_ctor_get(x_51, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - lean_ctor_release(x_51, 2); - x_55 = x_51; -} else { - lean_dec_ref(x_51); - x_55 = lean_box(0); -} -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 3, 0); -} else { - x_56 = x_55; -} -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_54); -lean_ctor_set(x_56, 2, x_47); -x_20 = x_52; -x_21 = x_56; -goto block_27; +lean_object* x_52; lean_object* x_53; +x_52 = l_Lean_mkForall(x_17, x_19, x_51, x_6); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_50); +return x_53; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_47); +lean_object* x_54; lean_object* x_55; +x_54 = l_Lean_mkLambda(x_17, x_19, x_51, x_6); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_50); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_27); lean_dec(x_17); lean_dec(x_6); lean_dec(x_1); -x_57 = lean_ctor_get(x_50, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_50, 1); +x_56 = !lean_is_exclusive(x_29); +if (x_56 == 0) +{ +return x_29; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_29, 0); +x_58 = lean_ctor_get(x_29, 1); lean_inc(x_58); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_59 = x_50; -} else { - lean_dec_ref(x_50); - x_59 = lean_box(0); -} -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); -} else { - x_60 = x_59; -} -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} +lean_inc(x_57); +lean_dec(x_29); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } else { -uint8_t x_61; -x_61 = !lean_is_exclusive(x_8); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; +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_60 = lean_ctor_get(x_8, 0); +x_61 = lean_ctor_get(x_8, 1); x_62 = lean_ctor_get(x_8, 2); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_8); x_63 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_8, 2, x_63); +x_64 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_64, 0, x_60); +lean_ctor_set(x_64, 1, x_61); +lean_ctor_set(x_64, 2, x_63); lean_inc(x_1); -x_64 = lean_apply_3(x_7, x_1, x_18, x_8); -if (lean_obj_tag(x_64) == 0) +x_65 = lean_apply_3(x_7, x_1, x_18, x_64); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 0); +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; +x_66 = lean_ctor_get(x_65, 1); lean_inc(x_66); -lean_dec(x_64); -x_67 = !lean_is_exclusive(x_65); -if (x_67 == 0) -{ -lean_object* x_68; -x_68 = lean_ctor_get(x_65, 2); -lean_dec(x_68); -lean_ctor_set(x_65, 2, x_62); -x_20 = x_66; -x_21 = x_65; -goto block_27; +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_68 = x_65; +} else { + lean_dec_ref(x_65); + x_68 = lean_box(0); } -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_65, 0); -x_70 = lean_ctor_get(x_65, 1); -lean_inc(x_70); +x_69 = lean_ctor_get(x_66, 0); lean_inc(x_69); -lean_dec(x_65); -x_71 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_71, 2, x_62); -x_20 = x_66; -x_21 = x_71; -goto block_27; +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + lean_ctor_release(x_66, 2); + x_71 = x_66; +} else { + lean_dec_ref(x_66); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(0, 3, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +lean_ctor_set(x_72, 2, x_62); +x_73 = lean_expr_abstract_range(x_67, x_2, x_1); +lean_dec(x_1); +lean_dec(x_67); +if (x_5 == 0) +{ +lean_object* x_74; lean_object* x_75; +x_74 = l_Lean_mkForall(x_17, x_19, x_73, x_6); +if (lean_is_scalar(x_68)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_68; +} +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = l_Lean_mkLambda(x_17, x_19, x_73, x_6); +if (lean_is_scalar(x_68)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_68; +} +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_72); +return x_77; } } else { -uint8_t x_72; +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_dec(x_62); lean_dec(x_17); lean_dec(x_6); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_64); -if (x_72 == 0) -{ -return x_64; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_64, 0); -x_74 = lean_ctor_get(x_64, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_64); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_76 = lean_ctor_get(x_8, 0); -x_77 = lean_ctor_get(x_8, 1); -x_78 = lean_ctor_get(x_8, 2); +x_78 = lean_ctor_get(x_65, 0); lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_8); -x_79 = l_HashMap_Inhabited___closed__1; -x_80 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_80, 0, x_76); -lean_ctor_set(x_80, 1, x_77); -lean_ctor_set(x_80, 2, x_79); -lean_inc(x_1); -x_81 = lean_apply_3(x_7, x_1, x_18, x_80); -if (lean_obj_tag(x_81) == 0) +x_79 = lean_ctor_get(x_65, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_80 = x_65; +} else { + lean_dec_ref(x_65); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +} +} +else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_82 = lean_ctor_get(x_81, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_148; uint8_t x_149; +x_82 = lean_ctor_get(x_16, 2); lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 0); +x_83 = lean_ctor_get(x_16, 3); lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_ctor_get(x_82, 0); +x_84 = lean_ctor_get(x_16, 4); lean_inc(x_84); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_82)) { - lean_ctor_release(x_82, 0); - lean_ctor_release(x_82, 1); - lean_ctor_release(x_82, 2); - x_86 = x_82; -} else { - lean_dec_ref(x_82); - x_86 = lean_box(0); -} -if (lean_is_scalar(x_86)) { - x_87 = lean_alloc_ctor(0, 3, 0); -} else { - x_87 = x_86; -} -lean_ctor_set(x_87, 0, x_84); -lean_ctor_set(x_87, 1, x_85); -lean_ctor_set(x_87, 2, x_78); -x_20 = x_83; -x_21 = x_87; -goto block_27; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_78); -lean_dec(x_17); -lean_dec(x_6); -lean_dec(x_1); -x_88 = lean_ctor_get(x_81, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_81, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_90 = x_81; -} else { - lean_dec_ref(x_81); - x_90 = lean_box(0); -} -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); -} else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; -} -} -} -block_27: -{ -lean_object* x_22; -x_22 = lean_expr_abstract_range(x_20, x_2, x_1); -lean_dec(x_1); -lean_dec(x_20); -if (x_5 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_expr_mk_forall(x_17, x_19, x_22, x_6); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_expr_mk_lambda(x_17, x_19, x_22, x_6); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_21); -return x_26; -} -} -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_204; uint8_t x_205; -x_92 = lean_ctor_get(x_16, 2); -lean_inc(x_92); -x_93 = lean_ctor_get(x_16, 3); -lean_inc(x_93); -x_94 = lean_ctor_get(x_16, 4); -lean_inc(x_94); lean_dec(x_16); -x_204 = lean_unsigned_to_nat(0u); -x_205 = lean_expr_has_loose_bvar(x_6, x_204); -if (x_205 == 0) +x_148 = lean_unsigned_to_nat(0u); +x_149 = lean_expr_has_loose_bvar(x_6, x_148); +if (x_149 == 0) { -lean_object* x_206; -lean_dec(x_94); -lean_dec(x_93); -lean_dec(x_92); +lean_object* x_150; +lean_dec(x_84); +lean_dec(x_83); +lean_dec(x_82); lean_dec(x_7); lean_dec(x_1); -x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_6); -lean_ctor_set(x_206, 1, x_8); -return x_206; +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_6); +lean_ctor_set(x_150, 1, x_8); +return x_150; } else { -uint8_t x_207; -x_207 = lean_expr_has_expr_mvar(x_93); -if (x_207 == 0) +uint8_t x_151; +x_151 = l_Lean_Expr_hasMVar(x_83); +if (x_151 == 0) { -uint8_t x_208; -x_208 = lean_expr_has_level_mvar(x_93); -if (x_208 == 0) -{ -x_95 = x_93; -x_96 = x_8; -goto block_203; +x_85 = x_83; +x_86 = x_8; +goto block_147; } else { -uint8_t x_209; -x_209 = !lean_is_exclusive(x_8); -if (x_209 == 0) +uint8_t x_152; +x_152 = !lean_is_exclusive(x_8); +if (x_152 == 0) { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_8, 2); -x_211 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_8, 2, x_211); +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_8, 2); +x_154 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_8, 2, x_154); lean_inc(x_7); lean_inc(x_1); -x_212 = lean_apply_3(x_7, x_1, x_93, x_8); -if (lean_obj_tag(x_212) == 0) +x_155 = lean_apply_3(x_7, x_1, x_83, x_8); +if (lean_obj_tag(x_155) == 0) { -lean_object* x_213; lean_object* x_214; uint8_t x_215; -x_213 = lean_ctor_get(x_212, 1); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 0); -lean_inc(x_214); -lean_dec(x_212); -x_215 = !lean_is_exclusive(x_213); -if (x_215 == 0) +lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 0); +lean_inc(x_157); +lean_dec(x_155); +x_158 = !lean_is_exclusive(x_156); +if (x_158 == 0) { -lean_object* x_216; -x_216 = lean_ctor_get(x_213, 2); -lean_dec(x_216); -lean_ctor_set(x_213, 2, x_210); -x_95 = x_214; -x_96 = x_213; -goto block_203; +lean_object* x_159; +x_159 = lean_ctor_get(x_156, 2); +lean_dec(x_159); +lean_ctor_set(x_156, 2, x_153); +x_85 = x_157; +x_86 = x_156; +goto block_147; } else { -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_213, 0); -x_218 = lean_ctor_get(x_213, 1); -lean_inc(x_218); -lean_inc(x_217); -lean_dec(x_213); -x_219 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -lean_ctor_set(x_219, 2, x_210); -x_95 = x_214; -x_96 = x_219; -goto block_203; -} -} -else -{ -uint8_t x_220; -lean_dec(x_210); -lean_dec(x_94); -lean_dec(x_92); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_220 = !lean_is_exclusive(x_212); -if (x_220 == 0) -{ -return x_212; -} -else -{ -lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_221 = lean_ctor_get(x_212, 0); -x_222 = lean_ctor_get(x_212, 1); -lean_inc(x_222); -lean_inc(x_221); -lean_dec(x_212); -x_223 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_223, 0, x_221); -lean_ctor_set(x_223, 1, x_222); -return x_223; -} -} -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_224 = lean_ctor_get(x_8, 0); -x_225 = lean_ctor_get(x_8, 1); -x_226 = lean_ctor_get(x_8, 2); -lean_inc(x_226); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_8); -x_227 = l_HashMap_Inhabited___closed__1; -x_228 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_228, 0, x_224); -lean_ctor_set(x_228, 1, x_225); -lean_ctor_set(x_228, 2, x_227); -lean_inc(x_7); -lean_inc(x_1); -x_229 = lean_apply_3(x_7, x_1, x_93, x_228); -if (lean_obj_tag(x_229) == 0) -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); -x_231 = lean_ctor_get(x_229, 0); -lean_inc(x_231); -lean_dec(x_229); -x_232 = lean_ctor_get(x_230, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_230, 1); -lean_inc(x_233); -if (lean_is_exclusive(x_230)) { - lean_ctor_release(x_230, 0); - lean_ctor_release(x_230, 1); - lean_ctor_release(x_230, 2); - x_234 = x_230; -} else { - lean_dec_ref(x_230); - x_234 = lean_box(0); -} -if (lean_is_scalar(x_234)) { - x_235 = lean_alloc_ctor(0, 3, 0); -} else { - x_235 = x_234; -} -lean_ctor_set(x_235, 0, x_232); -lean_ctor_set(x_235, 1, x_233); -lean_ctor_set(x_235, 2, x_226); -x_95 = x_231; -x_96 = x_235; -goto block_203; -} -else -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -lean_dec(x_226); -lean_dec(x_94); -lean_dec(x_92); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_236 = lean_ctor_get(x_229, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_229, 1); -lean_inc(x_237); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - x_238 = x_229; -} else { - lean_dec_ref(x_229); - x_238 = lean_box(0); -} -if (lean_is_scalar(x_238)) { - x_239 = lean_alloc_ctor(1, 2, 0); -} else { - x_239 = x_238; -} -lean_ctor_set(x_239, 0, x_236); -lean_ctor_set(x_239, 1, x_237); -return x_239; -} -} -} -} -else -{ -uint8_t x_240; -x_240 = !lean_is_exclusive(x_8); -if (x_240 == 0) -{ -lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_241 = lean_ctor_get(x_8, 2); -x_242 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_8, 2, x_242); -lean_inc(x_7); -lean_inc(x_1); -x_243 = lean_apply_3(x_7, x_1, x_93, x_8); -if (lean_obj_tag(x_243) == 0) -{ -lean_object* x_244; lean_object* x_245; uint8_t x_246; -x_244 = lean_ctor_get(x_243, 1); -lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 0); -lean_inc(x_245); -lean_dec(x_243); -x_246 = !lean_is_exclusive(x_244); -if (x_246 == 0) -{ -lean_object* x_247; -x_247 = lean_ctor_get(x_244, 2); -lean_dec(x_247); -lean_ctor_set(x_244, 2, x_241); -x_95 = x_245; -x_96 = x_244; -goto block_203; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_244, 0); -x_249 = lean_ctor_get(x_244, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_244); -x_250 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -lean_ctor_set(x_250, 2, x_241); -x_95 = x_245; -x_96 = x_250; -goto block_203; -} -} -else -{ -uint8_t x_251; -lean_dec(x_241); -lean_dec(x_94); -lean_dec(x_92); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_251 = !lean_is_exclusive(x_243); -if (x_251 == 0) -{ -return x_243; -} -else -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_243, 0); -x_253 = lean_ctor_get(x_243, 1); -lean_inc(x_253); -lean_inc(x_252); -lean_dec(x_243); -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_253); -return x_254; -} -} -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_255 = lean_ctor_get(x_8, 0); -x_256 = lean_ctor_get(x_8, 1); -x_257 = lean_ctor_get(x_8, 2); -lean_inc(x_257); -lean_inc(x_256); -lean_inc(x_255); -lean_dec(x_8); -x_258 = l_HashMap_Inhabited___closed__1; -x_259 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_259, 0, x_255); -lean_ctor_set(x_259, 1, x_256); -lean_ctor_set(x_259, 2, x_258); -lean_inc(x_7); -lean_inc(x_1); -x_260 = lean_apply_3(x_7, x_1, x_93, x_259); -if (lean_obj_tag(x_260) == 0) -{ -lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_261 = lean_ctor_get(x_260, 1); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_ctor_get(x_261, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_261, 1); -lean_inc(x_264); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - lean_ctor_release(x_261, 2); - x_265 = x_261; -} else { - lean_dec_ref(x_261); - x_265 = lean_box(0); -} -if (lean_is_scalar(x_265)) { - x_266 = lean_alloc_ctor(0, 3, 0); -} else { - x_266 = x_265; -} -lean_ctor_set(x_266, 0, x_263); -lean_ctor_set(x_266, 1, x_264); -lean_ctor_set(x_266, 2, x_257); -x_95 = x_262; -x_96 = x_266; -goto block_203; -} -else -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -lean_dec(x_257); -lean_dec(x_94); -lean_dec(x_92); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_267 = lean_ctor_get(x_260, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_260, 1); -lean_inc(x_268); -if (lean_is_exclusive(x_260)) { - lean_ctor_release(x_260, 0); - lean_ctor_release(x_260, 1); - x_269 = x_260; -} else { - lean_dec_ref(x_260); - x_269 = lean_box(0); -} -if (lean_is_scalar(x_269)) { - x_270 = lean_alloc_ctor(1, 2, 0); -} else { - x_270 = x_269; -} -lean_ctor_set(x_270, 0, x_267); -lean_ctor_set(x_270, 1, x_268); -return x_270; -} -} -} -} -block_203: -{ -lean_object* x_97; uint8_t x_98; -x_97 = lean_expr_abstract_range(x_95, x_2, x_1); -lean_dec(x_95); -x_98 = lean_expr_has_expr_mvar(x_94); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = lean_expr_has_level_mvar(x_94); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_7); -x_100 = lean_expr_abstract_range(x_94, x_2, x_1); -lean_dec(x_1); -lean_dec(x_94); -x_101 = lean_expr_mk_let(x_92, x_97, x_100, x_6); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_96); -return x_102; -} -else -{ -uint8_t x_103; -x_103 = !lean_is_exclusive(x_96); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_96, 2); -x_105 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_96, 2, x_105); -lean_inc(x_1); -x_106 = lean_apply_3(x_7, x_1, x_94, x_96); -if (lean_obj_tag(x_106) == 0) -{ -uint8_t x_107; -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) -{ -lean_object* x_108; uint8_t x_109; -x_108 = lean_ctor_get(x_106, 1); -x_109 = !lean_is_exclusive(x_108); -if (x_109 == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_110 = lean_ctor_get(x_106, 0); -x_111 = lean_ctor_get(x_108, 2); -lean_dec(x_111); -lean_ctor_set(x_108, 2, x_104); -x_112 = lean_expr_abstract_range(x_110, x_2, x_1); -lean_dec(x_1); -lean_dec(x_110); -x_113 = lean_expr_mk_let(x_92, x_97, x_112, x_6); -lean_ctor_set(x_106, 0, x_113); -return x_106; -} -else -{ -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_106, 0); -x_115 = lean_ctor_get(x_108, 0); -x_116 = lean_ctor_get(x_108, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_108); -x_117 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -lean_ctor_set(x_117, 2, x_104); -x_118 = lean_expr_abstract_range(x_114, x_2, x_1); -lean_dec(x_1); -lean_dec(x_114); -x_119 = lean_expr_mk_let(x_92, x_97, x_118, x_6); -lean_ctor_set(x_106, 1, x_117); -lean_ctor_set(x_106, 0, x_119); -return x_106; -} -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_120 = lean_ctor_get(x_106, 1); -x_121 = lean_ctor_get(x_106, 0); -lean_inc(x_120); -lean_inc(x_121); -lean_dec(x_106); -x_122 = lean_ctor_get(x_120, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - lean_ctor_release(x_120, 2); - x_124 = x_120; -} else { - lean_dec_ref(x_120); - x_124 = lean_box(0); -} -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 3, 0); -} else { - x_125 = x_124; -} -lean_ctor_set(x_125, 0, x_122); -lean_ctor_set(x_125, 1, x_123); -lean_ctor_set(x_125, 2, x_104); -x_126 = lean_expr_abstract_range(x_121, x_2, x_1); -lean_dec(x_1); -lean_dec(x_121); -x_127 = lean_expr_mk_let(x_92, x_97, x_126, x_6); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_125); -return x_128; -} -} -else -{ -uint8_t x_129; -lean_dec(x_104); -lean_dec(x_97); -lean_dec(x_92); -lean_dec(x_6); -lean_dec(x_1); -x_129 = !lean_is_exclusive(x_106); -if (x_129 == 0) -{ -return x_106; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_106, 0); -x_131 = lean_ctor_get(x_106, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_106); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -return x_132; -} -} -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_133 = lean_ctor_get(x_96, 0); -x_134 = lean_ctor_get(x_96, 1); -x_135 = lean_ctor_get(x_96, 2); -lean_inc(x_135); -lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_96); -x_136 = l_HashMap_Inhabited___closed__1; -x_137 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_137, 0, x_133); -lean_ctor_set(x_137, 1, x_134); -lean_ctor_set(x_137, 2, x_136); -lean_inc(x_1); -x_138 = lean_apply_3(x_7, x_1, x_94, x_137); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 0); -lean_inc(x_140); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_141 = x_138; -} else { - lean_dec_ref(x_138); - x_141 = lean_box(0); -} -x_142 = lean_ctor_get(x_139, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_139, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - lean_ctor_release(x_139, 2); - x_144 = x_139; -} else { - lean_dec_ref(x_139); - x_144 = lean_box(0); -} -if (lean_is_scalar(x_144)) { - x_145 = lean_alloc_ctor(0, 3, 0); -} else { - x_145 = x_144; -} -lean_ctor_set(x_145, 0, x_142); -lean_ctor_set(x_145, 1, x_143); -lean_ctor_set(x_145, 2, x_135); -x_146 = lean_expr_abstract_range(x_140, x_2, x_1); -lean_dec(x_1); -lean_dec(x_140); -x_147 = lean_expr_mk_let(x_92, x_97, x_146, x_6); -if (lean_is_scalar(x_141)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_141; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_145); -return x_148; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_dec(x_135); -lean_dec(x_97); -lean_dec(x_92); -lean_dec(x_6); -lean_dec(x_1); -x_149 = lean_ctor_get(x_138, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_138, 1); -lean_inc(x_150); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_151 = x_138; -} else { - lean_dec_ref(x_138); - x_151 = lean_box(0); -} -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(1, 2, 0); -} else { - x_152 = x_151; -} -lean_ctor_set(x_152, 0, x_149); -lean_ctor_set(x_152, 1, x_150); -return x_152; -} -} -} -} -else -{ -uint8_t x_153; -x_153 = !lean_is_exclusive(x_96); -if (x_153 == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_96, 2); -x_155 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_96, 2, x_155); -lean_inc(x_1); -x_156 = lean_apply_3(x_7, x_1, x_94, x_96); -if (lean_obj_tag(x_156) == 0) -{ -uint8_t x_157; -x_157 = !lean_is_exclusive(x_156); -if (x_157 == 0) -{ -lean_object* x_158; uint8_t x_159; -x_158 = lean_ctor_get(x_156, 1); -x_159 = !lean_is_exclusive(x_158); -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_object* x_160; lean_object* x_161; lean_object* x_162; x_160 = lean_ctor_get(x_156, 0); -x_161 = lean_ctor_get(x_158, 2); -lean_dec(x_161); -lean_ctor_set(x_158, 2, x_154); -x_162 = lean_expr_abstract_range(x_160, x_2, x_1); -lean_dec(x_1); -lean_dec(x_160); -x_163 = lean_expr_mk_let(x_92, x_97, x_162, x_6); -lean_ctor_set(x_156, 0, x_163); -return x_156; -} -else -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_164 = lean_ctor_get(x_156, 0); -x_165 = lean_ctor_get(x_158, 0); -x_166 = lean_ctor_get(x_158, 1); -lean_inc(x_166); -lean_inc(x_165); -lean_dec(x_158); -x_167 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -lean_ctor_set(x_167, 2, x_154); -x_168 = lean_expr_abstract_range(x_164, x_2, x_1); -lean_dec(x_1); -lean_dec(x_164); -x_169 = lean_expr_mk_let(x_92, x_97, x_168, x_6); -lean_ctor_set(x_156, 1, x_167); -lean_ctor_set(x_156, 0, x_169); -return x_156; -} -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_170 = lean_ctor_get(x_156, 1); -x_171 = lean_ctor_get(x_156, 0); -lean_inc(x_170); -lean_inc(x_171); +x_161 = lean_ctor_get(x_156, 1); +lean_inc(x_161); +lean_inc(x_160); lean_dec(x_156); -x_172 = lean_ctor_get(x_170, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_170, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - lean_ctor_release(x_170, 2); - x_174 = x_170; -} else { - lean_dec_ref(x_170); - x_174 = lean_box(0); -} -if (lean_is_scalar(x_174)) { - x_175 = lean_alloc_ctor(0, 3, 0); -} else { - x_175 = x_174; -} -lean_ctor_set(x_175, 0, x_172); -lean_ctor_set(x_175, 1, x_173); -lean_ctor_set(x_175, 2, x_154); -x_176 = lean_expr_abstract_range(x_171, x_2, x_1); -lean_dec(x_1); -lean_dec(x_171); -x_177 = lean_expr_mk_let(x_92, x_97, x_176, x_6); -x_178 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_175); -return x_178; +x_162 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +lean_ctor_set(x_162, 2, x_153); +x_85 = x_157; +x_86 = x_162; +goto block_147; } } else { -uint8_t x_179; -lean_dec(x_154); -lean_dec(x_97); -lean_dec(x_92); +uint8_t x_163; +lean_dec(x_153); +lean_dec(x_84); +lean_dec(x_82); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_179 = !lean_is_exclusive(x_156); -if (x_179 == 0) +x_163 = !lean_is_exclusive(x_155); +if (x_163 == 0) { -return x_156; +return x_155; } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_156, 0); -x_181 = lean_ctor_get(x_156, 1); -lean_inc(x_181); +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_155, 0); +x_165 = lean_ctor_get(x_155, 1); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_155); +x_166 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set(x_166, 1, x_165); +return x_166; +} +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_167 = lean_ctor_get(x_8, 0); +x_168 = lean_ctor_get(x_8, 1); +x_169 = lean_ctor_get(x_8, 2); +lean_inc(x_169); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_8); +x_170 = l_HashMap_Inhabited___closed__1; +x_171 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_171, 0, x_167); +lean_ctor_set(x_171, 1, x_168); +lean_ctor_set(x_171, 2, x_170); +lean_inc(x_7); +lean_inc(x_1); +x_172 = lean_apply_3(x_7, x_1, x_83, x_171); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 0); +lean_inc(x_174); +lean_dec(x_172); +x_175 = lean_ctor_get(x_173, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_173, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + lean_ctor_release(x_173, 2); + x_177 = x_173; +} else { + lean_dec_ref(x_173); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(0, 3, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +lean_ctor_set(x_178, 2, x_169); +x_85 = x_174; +x_86 = x_178; +goto block_147; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_169); +lean_dec(x_84); +lean_dec(x_82); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_179 = lean_ctor_get(x_172, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_172, 1); lean_inc(x_180); -lean_dec(x_156); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_181 = x_172; +} else { + lean_dec_ref(x_172); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); return x_182; } } } -else +} +block_147: { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_183 = lean_ctor_get(x_96, 0); -x_184 = lean_ctor_get(x_96, 1); -x_185 = lean_ctor_get(x_96, 2); -lean_inc(x_185); -lean_inc(x_184); -lean_inc(x_183); -lean_dec(x_96); -x_186 = l_HashMap_Inhabited___closed__1; -x_187 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_187, 0, x_183); -lean_ctor_set(x_187, 1, x_184); -lean_ctor_set(x_187, 2, x_186); -lean_inc(x_1); -x_188 = lean_apply_3(x_7, x_1, x_94, x_187); -if (lean_obj_tag(x_188) == 0) +lean_object* x_87; uint8_t x_88; +x_87 = lean_expr_abstract_range(x_85, x_2, x_1); +lean_dec(x_85); +x_88 = l_Lean_Expr_hasMVar(x_84); +if (x_88 == 0) { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_189 = lean_ctor_get(x_188, 1); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 0); -lean_inc(x_190); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_191 = x_188; -} else { - lean_dec_ref(x_188); - x_191 = lean_box(0); -} -x_192 = lean_ctor_get(x_189, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_189, 1); -lean_inc(x_193); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - lean_ctor_release(x_189, 2); - x_194 = x_189; -} else { - lean_dec_ref(x_189); - x_194 = lean_box(0); -} -if (lean_is_scalar(x_194)) { - x_195 = lean_alloc_ctor(0, 3, 0); -} else { - x_195 = x_194; -} -lean_ctor_set(x_195, 0, x_192); -lean_ctor_set(x_195, 1, x_193); -lean_ctor_set(x_195, 2, x_185); -x_196 = lean_expr_abstract_range(x_190, x_2, x_1); +lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_7); +x_89 = lean_expr_abstract_range(x_84, x_2, x_1); lean_dec(x_1); -lean_dec(x_190); -x_197 = lean_expr_mk_let(x_92, x_97, x_196, x_6); -if (lean_is_scalar(x_191)) { - x_198 = lean_alloc_ctor(0, 2, 0); -} else { - x_198 = x_191; -} -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_195); -return x_198; +lean_dec(x_84); +x_90 = 0; +x_91 = l_Lean_mkLet(x_82, x_87, x_89, x_6, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_86); +return x_92; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; -lean_dec(x_185); -lean_dec(x_97); -lean_dec(x_92); +uint8_t x_93; +x_93 = !lean_is_exclusive(x_86); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_86, 2); +x_95 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_86, 2, x_95); +lean_inc(x_1); +x_96 = lean_apply_3(x_7, x_1, x_84, x_86); +if (lean_obj_tag(x_96) == 0) +{ +uint8_t x_97; +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +lean_object* x_98; uint8_t x_99; +x_98 = lean_ctor_get(x_96, 1); +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; +x_100 = lean_ctor_get(x_96, 0); +x_101 = lean_ctor_get(x_98, 2); +lean_dec(x_101); +lean_ctor_set(x_98, 2, x_94); +x_102 = lean_expr_abstract_range(x_100, x_2, x_1); +lean_dec(x_1); +lean_dec(x_100); +x_103 = 0; +x_104 = l_Lean_mkLet(x_82, x_87, x_102, x_6, x_103); +lean_ctor_set(x_96, 0, x_104); +return x_96; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; +x_105 = lean_ctor_get(x_96, 0); +x_106 = lean_ctor_get(x_98, 0); +x_107 = lean_ctor_get(x_98, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_98); +x_108 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_108, 2, x_94); +x_109 = lean_expr_abstract_range(x_105, x_2, x_1); +lean_dec(x_1); +lean_dec(x_105); +x_110 = 0; +x_111 = l_Lean_mkLet(x_82, x_87, x_109, x_6, x_110); +lean_ctor_set(x_96, 1, x_108); +lean_ctor_set(x_96, 0, x_111); +return x_96; +} +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; +x_112 = lean_ctor_get(x_96, 1); +x_113 = lean_ctor_get(x_96, 0); +lean_inc(x_112); +lean_inc(x_113); +lean_dec(x_96); +x_114 = lean_ctor_get(x_112, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + lean_ctor_release(x_112, 2); + x_116 = x_112; +} else { + lean_dec_ref(x_112); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(0, 3, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +lean_ctor_set(x_117, 2, x_94); +x_118 = lean_expr_abstract_range(x_113, x_2, x_1); +lean_dec(x_1); +lean_dec(x_113); +x_119 = 0; +x_120 = l_Lean_mkLet(x_82, x_87, x_118, x_6, x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_117); +return x_121; +} +} +else +{ +uint8_t x_122; +lean_dec(x_94); +lean_dec(x_87); +lean_dec(x_82); lean_dec(x_6); lean_dec(x_1); -x_199 = lean_ctor_get(x_188, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_188, 1); -lean_inc(x_200); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_201 = x_188; -} else { - lean_dec_ref(x_188); - x_201 = lean_box(0); +x_122 = !lean_is_exclusive(x_96); +if (x_122 == 0) +{ +return x_96; } -if (lean_is_scalar(x_201)) { - x_202 = lean_alloc_ctor(1, 2, 0); -} else { - x_202 = x_201; +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_96, 0); +x_124 = lean_ctor_get(x_96, 1); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_96); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +return x_125; } -lean_ctor_set(x_202, 0, x_199); -lean_ctor_set(x_202, 1, x_200); -return x_202; +} +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_126 = lean_ctor_get(x_86, 0); +x_127 = lean_ctor_get(x_86, 1); +x_128 = lean_ctor_get(x_86, 2); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_86); +x_129 = l_HashMap_Inhabited___closed__1; +x_130 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_130, 0, x_126); +lean_ctor_set(x_130, 1, x_127); +lean_ctor_set(x_130, 2, x_129); +lean_inc(x_1); +x_131 = lean_apply_3(x_7, x_1, x_84, x_130); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; lean_object* x_142; +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_134 = x_131; +} else { + lean_dec_ref(x_131); + x_134 = lean_box(0); +} +x_135 = lean_ctor_get(x_132, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_132, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + lean_ctor_release(x_132, 2); + x_137 = x_132; +} else { + lean_dec_ref(x_132); + x_137 = lean_box(0); +} +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(0, 3, 0); +} else { + x_138 = x_137; +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +lean_ctor_set(x_138, 2, x_128); +x_139 = lean_expr_abstract_range(x_133, x_2, x_1); +lean_dec(x_1); +lean_dec(x_133); +x_140 = 0; +x_141 = l_Lean_mkLet(x_82, x_87, x_139, x_6, x_140); +if (lean_is_scalar(x_134)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_134; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_138); +return x_142; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_128); +lean_dec(x_87); +lean_dec(x_82); +lean_dec(x_6); +lean_dec(x_1); +x_143 = lean_ctor_get(x_131, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_131, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_145 = x_131; +} else { + lean_dec_ref(x_131); + x_145 = lean_box(0); +} +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_145; +} +lean_ctor_set(x_146, 0, x_143); +lean_ctor_set(x_146, 1, x_144); +return x_146; } } } @@ -32396,355 +25242,182 @@ _start: { lean_object* x_7; uint8_t x_8; x_7 = lean_array_get_size(x_4); -x_8 = lean_expr_has_expr_mvar(x_5); +x_8 = l_Lean_Expr_hasMVar(x_5); if (x_8 == 0) { -uint8_t x_9; -x_9 = lean_expr_has_level_mvar(x_5); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_expr_abstract_range(x_5, x_7, x_4); +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_expr_abstract_range(x_5, x_7, x_4); lean_dec(x_5); -x_11 = l_EIO_Monad___closed__1; -x_12 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_11, x_7, x_10, x_6); +x_10 = l_EIO_Monad___closed__1; +x_11 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_10, x_7, x_9, x_6); lean_dec(x_7); -return x_12; +return x_11; } else { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_6); -if (x_13 == 0) +uint8_t x_12; +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_6, 2); -x_15 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_6, 2, x_15); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_6, 2); +x_14 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_6, 2, x_14); lean_inc(x_1); lean_inc(x_4); -x_16 = lean_apply_3(x_1, x_4, x_5, x_6); -if (lean_obj_tag(x_16) == 0) +x_15 = lean_apply_3(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_16, 1); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 0); lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_17, 2); -lean_dec(x_20); -lean_ctor_set(x_17, 2, x_14); -x_21 = lean_expr_abstract_range(x_18, x_7, x_4); -lean_dec(x_18); -x_22 = l_EIO_Monad___closed__1; -x_23 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_22, x_7, x_21, x_17); -lean_dec(x_7); -return x_23; -} -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; -x_24 = lean_ctor_get(x_17, 0); -x_25 = lean_ctor_get(x_17, 1); -lean_inc(x_25); -lean_inc(x_24); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_16, 2); +lean_dec(x_19); +lean_ctor_set(x_16, 2, x_13); +x_20 = lean_expr_abstract_range(x_17, x_7, x_4); lean_dec(x_17); -x_26 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_26, 2, x_14); -x_27 = lean_expr_abstract_range(x_18, x_7, x_4); -lean_dec(x_18); -x_28 = l_EIO_Monad___closed__1; -x_29 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_28, x_7, x_27, x_26); +x_21 = l_EIO_Monad___closed__1; +x_22 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_21, x_7, x_20, x_16); lean_dec(x_7); -return x_29; +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_16); +x_25 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +lean_ctor_set(x_25, 2, x_13); +x_26 = lean_expr_abstract_range(x_17, x_7, x_4); +lean_dec(x_17); +x_27 = l_EIO_Monad___closed__1; +x_28 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_27, x_7, x_26, x_25); +lean_dec(x_7); +return x_28; } } else { -uint8_t x_30; -lean_dec(x_14); +uint8_t x_29; +lean_dec(x_13); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_30 = !lean_is_exclusive(x_16); -if (x_30 == 0) +x_29 = !lean_is_exclusive(x_15); +if (x_29 == 0) { -return x_16; +return x_15; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_16, 0); -x_32 = lean_ctor_get(x_16, 1); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_15, 0); +x_31 = lean_ctor_get(x_15, 1); lean_inc(x_31); -lean_dec(x_16); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; +lean_inc(x_30); +lean_dec(x_15); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_34 = lean_ctor_get(x_6, 0); -x_35 = lean_ctor_get(x_6, 1); -x_36 = lean_ctor_get(x_6, 2); -lean_inc(x_36); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_6, 0); +x_34 = lean_ctor_get(x_6, 1); +x_35 = lean_ctor_get(x_6, 2); lean_inc(x_35); lean_inc(x_34); +lean_inc(x_33); lean_dec(x_6); -x_37 = l_HashMap_Inhabited___closed__1; -x_38 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_38, 0, x_34); -lean_ctor_set(x_38, 1, x_35); -lean_ctor_set(x_38, 2, x_37); +x_36 = l_HashMap_Inhabited___closed__1; +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_34); +lean_ctor_set(x_37, 2, x_36); lean_inc(x_1); lean_inc(x_4); -x_39 = lean_apply_3(x_1, x_4, x_5, x_38); -if (lean_obj_tag(x_39) == 0) +x_38 = lean_apply_3(x_1, x_4, x_5, x_37); +if (lean_obj_tag(x_38) == 0) { -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; -x_40 = lean_ctor_get(x_39, 1); +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; +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 0); lean_inc(x_40); +lean_dec(x_38); x_41 = lean_ctor_get(x_39, 0); lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_ctor_get(x_40, 0); +x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_40)) { - lean_ctor_release(x_40, 0); - lean_ctor_release(x_40, 1); - lean_ctor_release(x_40, 2); - x_44 = x_40; -} else { - lean_dec_ref(x_40); - x_44 = lean_box(0); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 3, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -lean_ctor_set(x_45, 2, x_36); -x_46 = lean_expr_abstract_range(x_41, x_7, x_4); -lean_dec(x_41); -x_47 = l_EIO_Monad___closed__1; -x_48 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_47, x_7, x_46, x_45); -lean_dec(x_7); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_36); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_49 = lean_ctor_get(x_39, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_39, 1); -lean_inc(x_50); if (lean_is_exclusive(x_39)) { lean_ctor_release(x_39, 0); lean_ctor_release(x_39, 1); - x_51 = x_39; + lean_ctor_release(x_39, 2); + x_43 = x_39; } else { lean_dec_ref(x_39); - x_51 = lean_box(0); + x_43 = lean_box(0); } -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_43)) { + x_44 = lean_alloc_ctor(0, 3, 0); } else { - x_52 = x_51; + x_44 = x_43; } -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -} -} -} -else -{ -uint8_t x_53; -x_53 = !lean_is_exclusive(x_6); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_6, 2); -x_55 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_6, 2, x_55); -lean_inc(x_1); -lean_inc(x_4); -x_56 = lean_apply_3(x_1, x_4, x_5, x_6); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; lean_object* x_58; uint8_t x_59; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 0); -lean_inc(x_58); -lean_dec(x_56); -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_57, 2); -lean_dec(x_60); -lean_ctor_set(x_57, 2, x_54); -x_61 = lean_expr_abstract_range(x_58, x_7, x_4); -lean_dec(x_58); -x_62 = l_EIO_Monad___closed__1; -x_63 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_62, x_7, x_61, x_57); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +lean_ctor_set(x_44, 2, x_35); +x_45 = lean_expr_abstract_range(x_40, x_7, x_4); +lean_dec(x_40); +x_46 = l_EIO_Monad___closed__1; +x_47 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_46, x_7, x_45, x_44); lean_dec(x_7); -return x_63; +return x_47; } 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; -x_64 = lean_ctor_get(x_57, 0); -x_65 = lean_ctor_get(x_57, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_57); -x_66 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_54); -x_67 = lean_expr_abstract_range(x_58, x_7, x_4); -lean_dec(x_58); -x_68 = l_EIO_Monad___closed__1; -x_69 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_68, x_7, x_67, x_66); -lean_dec(x_7); -return x_69; -} -} -else -{ -uint8_t x_70; -lean_dec(x_54); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_35); lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_56); -if (x_70 == 0) -{ -return x_56; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_56, 0); -x_72 = lean_ctor_get(x_56, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_56); -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 -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_6, 0); -x_75 = lean_ctor_get(x_6, 1); -x_76 = lean_ctor_get(x_6, 2); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_6); -x_77 = l_HashMap_Inhabited___closed__1; -x_78 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_78, 0, x_74); -lean_ctor_set(x_78, 1, x_75); -lean_ctor_set(x_78, 2, x_77); -lean_inc(x_1); -lean_inc(x_4); -x_79 = lean_apply_3(x_1, x_4, x_5, x_78); -if (lean_obj_tag(x_79) == 0) -{ -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; -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 0); -lean_inc(x_81); -lean_dec(x_79); -x_82 = lean_ctor_get(x_80, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_80, 1); -lean_inc(x_83); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - lean_ctor_release(x_80, 2); - x_84 = x_80; +x_48 = lean_ctor_get(x_38, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_38, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_50 = x_38; } else { - lean_dec_ref(x_80); - x_84 = lean_box(0); + lean_dec_ref(x_38); + x_50 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(1, 2, 0); } else { - x_85 = x_84; + x_51 = x_50; } -lean_ctor_set(x_85, 0, x_82); -lean_ctor_set(x_85, 1, x_83); -lean_ctor_set(x_85, 2, x_76); -x_86 = lean_expr_abstract_range(x_81, x_7, x_4); -lean_dec(x_81); -x_87 = l_EIO_Monad___closed__1; -x_88 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_19__mkForallAux___spec__2(x_1, x_2, x_3, x_4, x_87, x_7, x_86, x_85); -lean_dec(x_7); -return x_88; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_76); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_89 = lean_ctor_get(x_79, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_79, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_91 = x_79; -} else { - lean_dec_ref(x_79); - x_91 = lean_box(0); -} -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); -} else { - x_92 = x_91; -} -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } } @@ -32824,7 +25497,7 @@ lean_dec(x_14); if (x_15 == 0) { lean_object* x_16; -x_16 = lean_expr_mk_app(x_5, x_8); +x_16 = l_Lean_mkApp(x_5, x_8); x_4 = x_11; x_5 = x_16; goto _start; @@ -32847,7 +25520,7 @@ lean_dec(x_19); if (x_20 == 0) { lean_object* x_21; -x_21 = lean_expr_mk_app(x_5, x_8); +x_21 = l_Lean_mkApp(x_5, x_8); x_4 = x_11; x_5 = x_21; goto _start; @@ -33014,7 +25687,7 @@ lean_object* l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22 _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Lean_Expr_inhabited; +x_8 = l_Lean_Expr_Inhabited; x_9 = lean_array_get(x_8, x_1, x_2); x_10 = l_Lean_LocalContext_findFVar(x_3, x_9); lean_dec(x_9); @@ -33037,1142 +25710,722 @@ lean_inc(x_15); lean_dec(x_10); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_27; +lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; x_16 = lean_ctor_get(x_15, 2); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 3); lean_inc(x_17); x_18 = lean_ctor_get_uint8(x_15, sizeof(void*)*4); lean_dec(x_15); -x_27 = lean_expr_has_expr_mvar(x_17); -if (x_27 == 0) +x_19 = l_Lean_Expr_hasMVar(x_17); +if (x_19 == 0) { -uint8_t x_28; -x_28 = lean_expr_has_level_mvar(x_17); -if (x_28 == 0) +lean_object* x_20; +x_20 = lean_expr_abstract_range(x_17, x_2, x_1); +lean_dec(x_17); +if (x_5 == 0) { -x_19 = x_17; -x_20 = x_7; -goto block_26; +lean_object* x_21; lean_object* x_22; +x_21 = l_Lean_mkForall(x_16, x_18, x_20, x_6); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_7); +return x_22; } else { +lean_object* x_23; lean_object* x_24; +x_23 = l_Lean_mkLambda(x_16, x_18, x_20, x_6); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_7); +return x_24; +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_7, 2); +x_27 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_27); +x_28 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_17, x_7); +if (lean_obj_tag(x_28) == 0) +{ uint8_t x_29; -x_29 = !lean_is_exclusive(x_7); +x_29 = !lean_is_exclusive(x_28); if (x_29 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_7, 2); -x_31 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_7, 2, x_31); -x_32 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_17, x_7); -if (lean_obj_tag(x_32) == 0) +lean_object* x_30; uint8_t x_31; +x_30 = lean_ctor_get(x_28, 1); +x_31 = !lean_is_exclusive(x_30); +if (x_31 == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 0); -lean_inc(x_34); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_30, 2); +lean_dec(x_33); +lean_ctor_set(x_30, 2, x_26); +x_34 = lean_expr_abstract_range(x_32, x_2, x_1); lean_dec(x_32); -x_35 = !lean_is_exclusive(x_33); -if (x_35 == 0) +if (x_5 == 0) +{ +lean_object* x_35; +x_35 = l_Lean_mkForall(x_16, x_18, x_34, x_6); +lean_ctor_set(x_28, 0, x_35); +return x_28; +} +else { lean_object* x_36; -x_36 = lean_ctor_get(x_33, 2); -lean_dec(x_36); -lean_ctor_set(x_33, 2, x_30); -x_19 = x_34; -x_20 = x_33; -goto block_26; +x_36 = l_Lean_mkLambda(x_16, x_18, x_34, x_6); +lean_ctor_set(x_28, 0, x_36); +return x_28; +} } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_37 = lean_ctor_get(x_28, 0); +x_38 = lean_ctor_get(x_30, 0); +x_39 = lean_ctor_get(x_30, 1); +lean_inc(x_39); lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -x_39 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -lean_ctor_set(x_39, 2, x_30); -x_19 = x_34; -x_20 = x_39; -goto block_26; -} -} -else -{ -uint8_t x_40; lean_dec(x_30); -lean_dec(x_16); -lean_dec(x_6); -x_40 = !lean_is_exclusive(x_32); -if (x_40 == 0) +x_40 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_40, 2, x_26); +x_41 = lean_expr_abstract_range(x_37, x_2, x_1); +lean_dec(x_37); +if (x_5 == 0) { -return x_32; +lean_object* x_42; +x_42 = l_Lean_mkForall(x_16, x_18, x_41, x_6); +lean_ctor_set(x_28, 1, x_40); +lean_ctor_set(x_28, 0, x_42); +return x_28; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_32, 0); -x_42 = lean_ctor_get(x_32, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_32); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_object* x_43; +x_43 = l_Lean_mkLambda(x_16, x_18, x_41, x_6); +lean_ctor_set(x_28, 1, x_40); +lean_ctor_set(x_28, 0, x_43); +return x_28; } } } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_7, 0); -x_45 = lean_ctor_get(x_7, 1); -x_46 = lean_ctor_get(x_7, 2); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_44 = lean_ctor_get(x_28, 1); +x_45 = lean_ctor_get(x_28, 0); lean_inc(x_44); -lean_dec(x_7); -x_47 = l_HashMap_Inhabited___closed__1; -x_48 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_48, 0, x_44); -lean_ctor_set(x_48, 1, x_45); -lean_ctor_set(x_48, 2, x_47); -x_49 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_17, x_48); -if (lean_obj_tag(x_49) == 0) +lean_inc(x_45); +lean_dec(x_28); +x_46 = lean_ctor_get(x_44, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + lean_ctor_release(x_44, 2); + x_48 = x_44; +} else { + lean_dec_ref(x_44); + x_48 = lean_box(0); +} +if (lean_is_scalar(x_48)) { + x_49 = lean_alloc_ctor(0, 3, 0); +} else { + x_49 = x_48; +} +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_47); +lean_ctor_set(x_49, 2, x_26); +x_50 = lean_expr_abstract_range(x_45, x_2, x_1); +lean_dec(x_45); +if (x_5 == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_50 = lean_ctor_get(x_49, 1); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 0); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_50, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - lean_ctor_release(x_50, 2); - x_54 = x_50; -} else { - lean_dec_ref(x_50); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(0, 3, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -lean_ctor_set(x_55, 2, x_46); -x_19 = x_51; -x_20 = x_55; -goto block_26; +lean_object* x_51; lean_object* x_52; +x_51 = l_Lean_mkForall(x_16, x_18, x_50, x_6); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_49); +return x_52; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_46); +lean_object* x_53; lean_object* x_54; +x_53 = l_Lean_mkLambda(x_16, x_18, x_50, x_6); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_49); +return x_54; +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_26); lean_dec(x_16); lean_dec(x_6); -x_56 = lean_ctor_get(x_49, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_49, 1); +x_55 = !lean_is_exclusive(x_28); +if (x_55 == 0) +{ +return x_28; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_28, 0); +x_57 = lean_ctor_get(x_28, 1); lean_inc(x_57); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_58 = x_49; -} else { - lean_dec_ref(x_49); - x_58 = lean_box(0); -} -if (lean_is_scalar(x_58)) { - x_59 = lean_alloc_ctor(1, 2, 0); -} else { - x_59 = x_58; -} -lean_ctor_set(x_59, 0, x_56); -lean_ctor_set(x_59, 1, x_57); -return x_59; -} +lean_inc(x_56); +lean_dec(x_28); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } else { -uint8_t x_60; -x_60 = !lean_is_exclusive(x_7); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; +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_59 = lean_ctor_get(x_7, 0); +x_60 = lean_ctor_get(x_7, 1); x_61 = lean_ctor_get(x_7, 2); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_7); x_62 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_7, 2, x_62); -x_63 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_17, x_7); -if (lean_obj_tag(x_63) == 0) +x_63 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_63, 0, x_59); +lean_ctor_set(x_63, 1, x_60); +lean_ctor_set(x_63, 2, x_62); +x_64 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_17, x_63); +if (lean_obj_tag(x_64) == 0) { -lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 0); +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; +x_65 = lean_ctor_get(x_64, 1); lean_inc(x_65); -lean_dec(x_63); -x_66 = !lean_is_exclusive(x_64); -if (x_66 == 0) -{ -lean_object* x_67; -x_67 = lean_ctor_get(x_64, 2); -lean_dec(x_67); -lean_ctor_set(x_64, 2, x_61); -x_19 = x_65; -x_20 = x_64; -goto block_26; +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_67 = x_64; +} else { + lean_dec_ref(x_64); + x_67 = lean_box(0); } -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_64, 0); -x_69 = lean_ctor_get(x_64, 1); -lean_inc(x_69); +x_68 = lean_ctor_get(x_65, 0); lean_inc(x_68); -lean_dec(x_64); -x_70 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -lean_ctor_set(x_70, 2, x_61); -x_19 = x_65; -x_20 = x_70; -goto block_26; +x_69 = lean_ctor_get(x_65, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + lean_ctor_release(x_65, 2); + x_70 = x_65; +} else { + lean_dec_ref(x_65); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(0, 3, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +lean_ctor_set(x_71, 2, x_61); +x_72 = lean_expr_abstract_range(x_66, x_2, x_1); +lean_dec(x_66); +if (x_5 == 0) +{ +lean_object* x_73; lean_object* x_74; +x_73 = l_Lean_mkForall(x_16, x_18, x_72, x_6); +if (lean_is_scalar(x_67)) { + x_74 = lean_alloc_ctor(0, 2, 0); +} else { + x_74 = x_67; +} +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_71); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; +x_75 = l_Lean_mkLambda(x_16, x_18, x_72, x_6); +if (lean_is_scalar(x_67)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_67; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_71); +return x_76; } } else { -uint8_t x_71; +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_dec(x_61); lean_dec(x_16); lean_dec(x_6); -x_71 = !lean_is_exclusive(x_63); -if (x_71 == 0) -{ -return x_63; -} -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_63, 0); -x_73 = lean_ctor_get(x_63, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_63); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; -} -} -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_75 = lean_ctor_get(x_7, 0); -x_76 = lean_ctor_get(x_7, 1); -x_77 = lean_ctor_get(x_7, 2); +x_77 = lean_ctor_get(x_64, 0); lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_7); -x_78 = l_HashMap_Inhabited___closed__1; -x_79 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_79, 0, x_75); -lean_ctor_set(x_79, 1, x_76); -lean_ctor_set(x_79, 2, x_78); -x_80 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_17, x_79); -if (lean_obj_tag(x_80) == 0) +x_78 = lean_ctor_get(x_64, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_79 = x_64; +} else { + lean_dec_ref(x_64); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +} +} +} +else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_81 = lean_ctor_get(x_80, 1); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_147; uint8_t x_148; +x_81 = lean_ctor_get(x_15, 2); lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 0); +x_82 = lean_ctor_get(x_15, 3); lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_ctor_get(x_81, 0); +x_83 = lean_ctor_get(x_15, 4); lean_inc(x_83); -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - lean_ctor_release(x_81, 2); - x_85 = x_81; -} else { - lean_dec_ref(x_81); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(0, 3, 0); -} else { - x_86 = x_85; -} -lean_ctor_set(x_86, 0, x_83); -lean_ctor_set(x_86, 1, x_84); -lean_ctor_set(x_86, 2, x_77); -x_19 = x_82; -x_20 = x_86; -goto block_26; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_77); -lean_dec(x_16); -lean_dec(x_6); -x_87 = lean_ctor_get(x_80, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_80, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_89 = x_80; -} else { - lean_dec_ref(x_80); - x_89 = lean_box(0); -} -if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); -} else { - x_90 = x_89; -} -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -return x_90; -} -} -} -block_26: -{ -lean_object* x_21; -x_21 = lean_expr_abstract_range(x_19, x_2, x_1); -lean_dec(x_19); -if (x_5 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_expr_mk_forall(x_16, x_18, x_21, x_6); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_expr_mk_lambda(x_16, x_18, x_21, x_6); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_20); -return x_25; -} -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_203; uint8_t x_204; -x_91 = lean_ctor_get(x_15, 2); -lean_inc(x_91); -x_92 = lean_ctor_get(x_15, 3); -lean_inc(x_92); -x_93 = lean_ctor_get(x_15, 4); -lean_inc(x_93); lean_dec(x_15); -x_203 = lean_unsigned_to_nat(0u); -x_204 = lean_expr_has_loose_bvar(x_6, x_203); -if (x_204 == 0) +x_147 = lean_unsigned_to_nat(0u); +x_148 = lean_expr_has_loose_bvar(x_6, x_147); +if (x_148 == 0) { -lean_object* x_205; -lean_dec(x_93); -lean_dec(x_92); -lean_dec(x_91); -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_6); -lean_ctor_set(x_205, 1, x_7); -return x_205; +lean_object* x_149; +lean_dec(x_83); +lean_dec(x_82); +lean_dec(x_81); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_6); +lean_ctor_set(x_149, 1, x_7); +return x_149; } else { -uint8_t x_206; -x_206 = lean_expr_has_expr_mvar(x_92); -if (x_206 == 0) +uint8_t x_150; +x_150 = l_Lean_Expr_hasMVar(x_82); +if (x_150 == 0) { -uint8_t x_207; -x_207 = lean_expr_has_level_mvar(x_92); -if (x_207 == 0) -{ -x_94 = x_92; -x_95 = x_7; -goto block_202; +x_84 = x_82; +x_85 = x_7; +goto block_146; } else { -uint8_t x_208; -x_208 = !lean_is_exclusive(x_7); -if (x_208 == 0) +uint8_t x_151; +x_151 = !lean_is_exclusive(x_7); +if (x_151 == 0) { -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_7, 2); -x_210 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_7, 2, x_210); -x_211 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_92, x_7); -if (lean_obj_tag(x_211) == 0) +lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_152 = lean_ctor_get(x_7, 2); +x_153 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_153); +x_154 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_82, x_7); +if (lean_obj_tag(x_154) == 0) { -lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 0); -lean_inc(x_213); -lean_dec(x_211); -x_214 = !lean_is_exclusive(x_212); -if (x_214 == 0) +lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 0); +lean_inc(x_156); +lean_dec(x_154); +x_157 = !lean_is_exclusive(x_155); +if (x_157 == 0) { -lean_object* x_215; -x_215 = lean_ctor_get(x_212, 2); -lean_dec(x_215); -lean_ctor_set(x_212, 2, x_209); -x_94 = x_213; -x_95 = x_212; -goto block_202; +lean_object* x_158; +x_158 = lean_ctor_get(x_155, 2); +lean_dec(x_158); +lean_ctor_set(x_155, 2, x_152); +x_84 = x_156; +x_85 = x_155; +goto block_146; } else { -lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_216 = lean_ctor_get(x_212, 0); -x_217 = lean_ctor_get(x_212, 1); -lean_inc(x_217); -lean_inc(x_216); -lean_dec(x_212); -x_218 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_218, 0, x_216); -lean_ctor_set(x_218, 1, x_217); -lean_ctor_set(x_218, 2, x_209); -x_94 = x_213; -x_95 = x_218; -goto block_202; -} -} -else -{ -uint8_t x_219; -lean_dec(x_209); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_6); -x_219 = !lean_is_exclusive(x_211); -if (x_219 == 0) -{ -return x_211; -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_211, 0); -x_221 = lean_ctor_get(x_211, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_211); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; -} -} -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_223 = lean_ctor_get(x_7, 0); -x_224 = lean_ctor_get(x_7, 1); -x_225 = lean_ctor_get(x_7, 2); -lean_inc(x_225); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_7); -x_226 = l_HashMap_Inhabited___closed__1; -x_227 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_227, 0, x_223); -lean_ctor_set(x_227, 1, x_224); -lean_ctor_set(x_227, 2, x_226); -x_228 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_92, x_227); -if (lean_obj_tag(x_228) == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_229 = lean_ctor_get(x_228, 1); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 0); -lean_inc(x_230); -lean_dec(x_228); -x_231 = lean_ctor_get(x_229, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_229, 1); -lean_inc(x_232); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - lean_ctor_release(x_229, 2); - x_233 = x_229; -} else { - lean_dec_ref(x_229); - x_233 = lean_box(0); -} -if (lean_is_scalar(x_233)) { - x_234 = lean_alloc_ctor(0, 3, 0); -} else { - x_234 = x_233; -} -lean_ctor_set(x_234, 0, x_231); -lean_ctor_set(x_234, 1, x_232); -lean_ctor_set(x_234, 2, x_225); -x_94 = x_230; -x_95 = x_234; -goto block_202; -} -else -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_225); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_6); -x_235 = lean_ctor_get(x_228, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_228, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_237 = x_228; -} else { - lean_dec_ref(x_228); - x_237 = lean_box(0); -} -if (lean_is_scalar(x_237)) { - x_238 = lean_alloc_ctor(1, 2, 0); -} else { - x_238 = x_237; -} -lean_ctor_set(x_238, 0, x_235); -lean_ctor_set(x_238, 1, x_236); -return x_238; -} -} -} -} -else -{ -uint8_t x_239; -x_239 = !lean_is_exclusive(x_7); -if (x_239 == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_7, 2); -x_241 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_7, 2, x_241); -x_242 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_92, x_7); -if (lean_obj_tag(x_242) == 0) -{ -lean_object* x_243; lean_object* x_244; uint8_t x_245; -x_243 = lean_ctor_get(x_242, 1); -lean_inc(x_243); -x_244 = lean_ctor_get(x_242, 0); -lean_inc(x_244); -lean_dec(x_242); -x_245 = !lean_is_exclusive(x_243); -if (x_245 == 0) -{ -lean_object* x_246; -x_246 = lean_ctor_get(x_243, 2); -lean_dec(x_246); -lean_ctor_set(x_243, 2, x_240); -x_94 = x_244; -x_95 = x_243; -goto block_202; -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_243, 0); -x_248 = lean_ctor_get(x_243, 1); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_243); -x_249 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -lean_ctor_set(x_249, 2, x_240); -x_94 = x_244; -x_95 = x_249; -goto block_202; -} -} -else -{ -uint8_t x_250; -lean_dec(x_240); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_6); -x_250 = !lean_is_exclusive(x_242); -if (x_250 == 0) -{ -return x_242; -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_251 = lean_ctor_get(x_242, 0); -x_252 = lean_ctor_get(x_242, 1); -lean_inc(x_252); -lean_inc(x_251); -lean_dec(x_242); -x_253 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_253, 0, x_251); -lean_ctor_set(x_253, 1, x_252); -return x_253; -} -} -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_254 = lean_ctor_get(x_7, 0); -x_255 = lean_ctor_get(x_7, 1); -x_256 = lean_ctor_get(x_7, 2); -lean_inc(x_256); -lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_7); -x_257 = l_HashMap_Inhabited___closed__1; -x_258 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_258, 0, x_254); -lean_ctor_set(x_258, 1, x_255); -lean_ctor_set(x_258, 2, x_257); -x_259 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_92, x_258); -if (lean_obj_tag(x_259) == 0) -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_260 = lean_ctor_get(x_259, 1); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 0); -lean_inc(x_261); -lean_dec(x_259); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_260, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_260)) { - lean_ctor_release(x_260, 0); - lean_ctor_release(x_260, 1); - lean_ctor_release(x_260, 2); - x_264 = x_260; -} else { - lean_dec_ref(x_260); - x_264 = lean_box(0); -} -if (lean_is_scalar(x_264)) { - x_265 = lean_alloc_ctor(0, 3, 0); -} else { - x_265 = x_264; -} -lean_ctor_set(x_265, 0, x_262); -lean_ctor_set(x_265, 1, x_263); -lean_ctor_set(x_265, 2, x_256); -x_94 = x_261; -x_95 = x_265; -goto block_202; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -lean_dec(x_256); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_6); -x_266 = lean_ctor_get(x_259, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_259, 1); -lean_inc(x_267); -if (lean_is_exclusive(x_259)) { - lean_ctor_release(x_259, 0); - lean_ctor_release(x_259, 1); - x_268 = x_259; -} else { - lean_dec_ref(x_259); - x_268 = lean_box(0); -} -if (lean_is_scalar(x_268)) { - x_269 = lean_alloc_ctor(1, 2, 0); -} else { - x_269 = x_268; -} -lean_ctor_set(x_269, 0, x_266); -lean_ctor_set(x_269, 1, x_267); -return x_269; -} -} -} -} -block_202: -{ -lean_object* x_96; uint8_t x_97; -x_96 = lean_expr_abstract_range(x_94, x_2, x_1); -lean_dec(x_94); -x_97 = lean_expr_has_expr_mvar(x_93); -if (x_97 == 0) -{ -uint8_t x_98; -x_98 = lean_expr_has_level_mvar(x_93); -if (x_98 == 0) -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_expr_abstract_range(x_93, x_2, x_1); -lean_dec(x_93); -x_100 = lean_expr_mk_let(x_91, x_96, x_99, x_6); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_95); -return x_101; -} -else -{ -uint8_t x_102; -x_102 = !lean_is_exclusive(x_95); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_95, 2); -x_104 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_95, 2, x_104); -x_105 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_93, x_95); -if (lean_obj_tag(x_105) == 0) -{ -uint8_t x_106; -x_106 = !lean_is_exclusive(x_105); -if (x_106 == 0) -{ -lean_object* x_107; uint8_t x_108; -x_107 = lean_ctor_get(x_105, 1); -x_108 = !lean_is_exclusive(x_107); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_109 = lean_ctor_get(x_105, 0); -x_110 = lean_ctor_get(x_107, 2); -lean_dec(x_110); -lean_ctor_set(x_107, 2, x_103); -x_111 = lean_expr_abstract_range(x_109, x_2, x_1); -lean_dec(x_109); -x_112 = lean_expr_mk_let(x_91, x_96, x_111, x_6); -lean_ctor_set(x_105, 0, x_112); -return x_105; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_113 = lean_ctor_get(x_105, 0); -x_114 = lean_ctor_get(x_107, 0); -x_115 = lean_ctor_get(x_107, 1); -lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_107); -x_116 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -lean_ctor_set(x_116, 2, x_103); -x_117 = lean_expr_abstract_range(x_113, x_2, x_1); -lean_dec(x_113); -x_118 = lean_expr_mk_let(x_91, x_96, x_117, x_6); -lean_ctor_set(x_105, 1, x_116); -lean_ctor_set(x_105, 0, x_118); -return x_105; -} -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_119 = lean_ctor_get(x_105, 1); -x_120 = lean_ctor_get(x_105, 0); -lean_inc(x_119); -lean_inc(x_120); -lean_dec(x_105); -x_121 = lean_ctor_get(x_119, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_119, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - lean_ctor_release(x_119, 2); - x_123 = x_119; -} else { - lean_dec_ref(x_119); - x_123 = lean_box(0); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(0, 3, 0); -} else { - x_124 = x_123; -} -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -lean_ctor_set(x_124, 2, x_103); -x_125 = lean_expr_abstract_range(x_120, x_2, x_1); -lean_dec(x_120); -x_126 = lean_expr_mk_let(x_91, x_96, x_125, x_6); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_124); -return x_127; -} -} -else -{ -uint8_t x_128; -lean_dec(x_103); -lean_dec(x_96); -lean_dec(x_91); -lean_dec(x_6); -x_128 = !lean_is_exclusive(x_105); -if (x_128 == 0) -{ -return x_105; -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_105, 0); -x_130 = lean_ctor_get(x_105, 1); -lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_105); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_132 = lean_ctor_get(x_95, 0); -x_133 = lean_ctor_get(x_95, 1); -x_134 = lean_ctor_get(x_95, 2); -lean_inc(x_134); -lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_95); -x_135 = l_HashMap_Inhabited___closed__1; -x_136 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_136, 0, x_132); -lean_ctor_set(x_136, 1, x_133); -lean_ctor_set(x_136, 2, x_135); -x_137 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_93, x_136); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 0); -lean_inc(x_139); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_140 = x_137; -} else { - lean_dec_ref(x_137); - x_140 = lean_box(0); -} -x_141 = lean_ctor_get(x_138, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_138, 1); -lean_inc(x_142); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - lean_ctor_release(x_138, 2); - x_143 = x_138; -} else { - lean_dec_ref(x_138); - x_143 = lean_box(0); -} -if (lean_is_scalar(x_143)) { - x_144 = lean_alloc_ctor(0, 3, 0); -} else { - x_144 = x_143; -} -lean_ctor_set(x_144, 0, x_141); -lean_ctor_set(x_144, 1, x_142); -lean_ctor_set(x_144, 2, x_134); -x_145 = lean_expr_abstract_range(x_139, x_2, x_1); -lean_dec(x_139); -x_146 = lean_expr_mk_let(x_91, x_96, x_145, x_6); -if (lean_is_scalar(x_140)) { - x_147 = lean_alloc_ctor(0, 2, 0); -} else { - x_147 = x_140; -} -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_144); -return x_147; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; -lean_dec(x_134); -lean_dec(x_96); -lean_dec(x_91); -lean_dec(x_6); -x_148 = lean_ctor_get(x_137, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_137, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_150 = x_137; -} else { - lean_dec_ref(x_137); - x_150 = lean_box(0); -} -if (lean_is_scalar(x_150)) { - x_151 = lean_alloc_ctor(1, 2, 0); -} else { - x_151 = x_150; -} -lean_ctor_set(x_151, 0, x_148); -lean_ctor_set(x_151, 1, x_149); -return x_151; -} -} -} -} -else -{ -uint8_t x_152; -x_152 = !lean_is_exclusive(x_95); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_153 = lean_ctor_get(x_95, 2); -x_154 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_95, 2, x_154); -x_155 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_93, x_95); -if (lean_obj_tag(x_155) == 0) -{ -uint8_t x_156; -x_156 = !lean_is_exclusive(x_155); -if (x_156 == 0) -{ -lean_object* x_157; uint8_t x_158; -x_157 = lean_ctor_get(x_155, 1); -x_158 = !lean_is_exclusive(x_157); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_object* x_159; lean_object* x_160; lean_object* x_161; x_159 = lean_ctor_get(x_155, 0); -x_160 = lean_ctor_get(x_157, 2); -lean_dec(x_160); -lean_ctor_set(x_157, 2, x_153); -x_161 = lean_expr_abstract_range(x_159, x_2, x_1); -lean_dec(x_159); -x_162 = lean_expr_mk_let(x_91, x_96, x_161, x_6); -lean_ctor_set(x_155, 0, x_162); -return x_155; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_163 = lean_ctor_get(x_155, 0); -x_164 = lean_ctor_get(x_157, 0); -x_165 = lean_ctor_get(x_157, 1); -lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_157); -x_166 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -lean_ctor_set(x_166, 2, x_153); -x_167 = lean_expr_abstract_range(x_163, x_2, x_1); -lean_dec(x_163); -x_168 = lean_expr_mk_let(x_91, x_96, x_167, x_6); -lean_ctor_set(x_155, 1, x_166); -lean_ctor_set(x_155, 0, x_168); -return x_155; -} -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_169 = lean_ctor_get(x_155, 1); -x_170 = lean_ctor_get(x_155, 0); -lean_inc(x_169); -lean_inc(x_170); +x_160 = lean_ctor_get(x_155, 1); +lean_inc(x_160); +lean_inc(x_159); lean_dec(x_155); -x_171 = lean_ctor_get(x_169, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_169, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - lean_ctor_release(x_169, 2); - x_173 = x_169; -} else { - lean_dec_ref(x_169); - x_173 = lean_box(0); -} -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(0, 3, 0); -} else { - x_174 = x_173; -} -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -lean_ctor_set(x_174, 2, x_153); -x_175 = lean_expr_abstract_range(x_170, x_2, x_1); -lean_dec(x_170); -x_176 = lean_expr_mk_let(x_91, x_96, x_175, x_6); -x_177 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_174); -return x_177; +x_161 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +lean_ctor_set(x_161, 2, x_152); +x_84 = x_156; +x_85 = x_161; +goto block_146; } } else { -uint8_t x_178; -lean_dec(x_153); -lean_dec(x_96); -lean_dec(x_91); +uint8_t x_162; +lean_dec(x_152); +lean_dec(x_83); +lean_dec(x_81); lean_dec(x_6); -x_178 = !lean_is_exclusive(x_155); -if (x_178 == 0) +x_162 = !lean_is_exclusive(x_154); +if (x_162 == 0) { -return x_155; +return x_154; } else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_155, 0); -x_180 = lean_ctor_get(x_155, 1); -lean_inc(x_180); +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_154, 0); +x_164 = lean_ctor_get(x_154, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_154); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; +} +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_166 = lean_ctor_get(x_7, 0); +x_167 = lean_ctor_get(x_7, 1); +x_168 = lean_ctor_get(x_7, 2); +lean_inc(x_168); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_7); +x_169 = l_HashMap_Inhabited___closed__1; +x_170 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_170, 0, x_166); +lean_ctor_set(x_170, 1, x_167); +lean_ctor_set(x_170, 2, x_169); +x_171 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_82, x_170); +if (lean_obj_tag(x_171) == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_172 = lean_ctor_get(x_171, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 0); +lean_inc(x_173); +lean_dec(x_171); +x_174 = lean_ctor_get(x_172, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_172, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + lean_ctor_release(x_172, 2); + x_176 = x_172; +} else { + lean_dec_ref(x_172); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 3, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +lean_ctor_set(x_177, 2, x_168); +x_84 = x_173; +x_85 = x_177; +goto block_146; +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +lean_dec(x_168); +lean_dec(x_83); +lean_dec(x_81); +lean_dec(x_6); +x_178 = lean_ctor_get(x_171, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_171, 1); lean_inc(x_179); -lean_dec(x_155); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + x_180 = x_171; +} else { + lean_dec_ref(x_171); + x_180 = lean_box(0); +} +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(1, 2, 0); +} else { + x_181 = x_180; +} +lean_ctor_set(x_181, 0, x_178); +lean_ctor_set(x_181, 1, x_179); return x_181; } } } +} +block_146: +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_expr_abstract_range(x_84, x_2, x_1); +lean_dec(x_84); +x_87 = l_Lean_Expr_hasMVar(x_83); +if (x_87 == 0) +{ +lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_expr_abstract_range(x_83, x_2, x_1); +lean_dec(x_83); +x_89 = 0; +x_90 = l_Lean_mkLet(x_81, x_86, x_88, x_6, x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_85); +return x_91; +} else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_182 = lean_ctor_get(x_95, 0); -x_183 = lean_ctor_get(x_95, 1); -x_184 = lean_ctor_get(x_95, 2); -lean_inc(x_184); -lean_inc(x_183); -lean_inc(x_182); +uint8_t x_92; +x_92 = !lean_is_exclusive(x_85); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_85, 2); +x_94 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_85, 2, x_94); +x_95 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_83, x_85); +if (lean_obj_tag(x_95) == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) +{ +lean_object* x_97; uint8_t x_98; +x_97 = lean_ctor_get(x_95, 1); +x_98 = !lean_is_exclusive(x_97); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; +x_99 = lean_ctor_get(x_95, 0); +x_100 = lean_ctor_get(x_97, 2); +lean_dec(x_100); +lean_ctor_set(x_97, 2, x_93); +x_101 = lean_expr_abstract_range(x_99, x_2, x_1); +lean_dec(x_99); +x_102 = 0; +x_103 = l_Lean_mkLet(x_81, x_86, x_101, x_6, x_102); +lean_ctor_set(x_95, 0, x_103); +return x_95; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; +x_104 = lean_ctor_get(x_95, 0); +x_105 = lean_ctor_get(x_97, 0); +x_106 = lean_ctor_get(x_97, 1); +lean_inc(x_106); +lean_inc(x_105); +lean_dec(x_97); +x_107 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +lean_ctor_set(x_107, 2, x_93); +x_108 = lean_expr_abstract_range(x_104, x_2, x_1); +lean_dec(x_104); +x_109 = 0; +x_110 = l_Lean_mkLet(x_81, x_86, x_108, x_6, x_109); +lean_ctor_set(x_95, 1, x_107); +lean_ctor_set(x_95, 0, x_110); +return x_95; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; +x_111 = lean_ctor_get(x_95, 1); +x_112 = lean_ctor_get(x_95, 0); +lean_inc(x_111); +lean_inc(x_112); lean_dec(x_95); -x_185 = l_HashMap_Inhabited___closed__1; -x_186 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_186, 0, x_182); -lean_ctor_set(x_186, 1, x_183); -lean_ctor_set(x_186, 2, x_185); -x_187 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_93, x_186); -if (lean_obj_tag(x_187) == 0) -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_188 = lean_ctor_get(x_187, 1); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 0); -lean_inc(x_189); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_190 = x_187; +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_111, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + lean_ctor_release(x_111, 2); + x_115 = x_111; } else { - lean_dec_ref(x_187); - x_190 = lean_box(0); + lean_dec_ref(x_111); + x_115 = lean_box(0); } -x_191 = lean_ctor_get(x_188, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_188, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - lean_ctor_release(x_188, 2); - x_193 = x_188; +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(0, 3, 0); } else { - lean_dec_ref(x_188); - x_193 = lean_box(0); + x_116 = x_115; } -if (lean_is_scalar(x_193)) { - x_194 = lean_alloc_ctor(0, 3, 0); -} else { - x_194 = x_193; +lean_ctor_set(x_116, 0, x_113); +lean_ctor_set(x_116, 1, x_114); +lean_ctor_set(x_116, 2, x_93); +x_117 = lean_expr_abstract_range(x_112, x_2, x_1); +lean_dec(x_112); +x_118 = 0; +x_119 = l_Lean_mkLet(x_81, x_86, x_117, x_6, x_118); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_116); +return x_120; } -lean_ctor_set(x_194, 0, x_191); -lean_ctor_set(x_194, 1, x_192); -lean_ctor_set(x_194, 2, x_184); -x_195 = lean_expr_abstract_range(x_189, x_2, x_1); -lean_dec(x_189); -x_196 = lean_expr_mk_let(x_91, x_96, x_195, x_6); -if (lean_is_scalar(x_190)) { - x_197 = lean_alloc_ctor(0, 2, 0); -} else { - x_197 = x_190; -} -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_194); -return x_197; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_184); -lean_dec(x_96); -lean_dec(x_91); +uint8_t x_121; +lean_dec(x_93); +lean_dec(x_86); +lean_dec(x_81); lean_dec(x_6); -x_198 = lean_ctor_get(x_187, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_187, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_200 = x_187; -} else { - lean_dec_ref(x_187); - x_200 = lean_box(0); +x_121 = !lean_is_exclusive(x_95); +if (x_121 == 0) +{ +return x_95; } -if (lean_is_scalar(x_200)) { - x_201 = lean_alloc_ctor(1, 2, 0); -} else { - x_201 = x_200; +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_95, 0); +x_123 = lean_ctor_get(x_95, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_95); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } -lean_ctor_set(x_201, 0, x_198); -lean_ctor_set(x_201, 1, x_199); -return x_201; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_125 = lean_ctor_get(x_85, 0); +x_126 = lean_ctor_get(x_85, 1); +x_127 = lean_ctor_get(x_85, 2); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_85); +x_128 = l_HashMap_Inhabited___closed__1; +x_129 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_129, 0, x_125); +lean_ctor_set(x_129, 1, x_126); +lean_ctor_set(x_129, 2, x_128); +x_130 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_83, x_129); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; +x_131 = lean_ctor_get(x_130, 1); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 0); +lean_inc(x_132); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_133 = x_130; +} else { + lean_dec_ref(x_130); + x_133 = lean_box(0); +} +x_134 = lean_ctor_get(x_131, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_131, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + lean_ctor_release(x_131, 2); + x_136 = x_131; +} else { + lean_dec_ref(x_131); + x_136 = lean_box(0); +} +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(0, 3, 0); +} else { + x_137 = x_136; +} +lean_ctor_set(x_137, 0, x_134); +lean_ctor_set(x_137, 1, x_135); +lean_ctor_set(x_137, 2, x_127); +x_138 = lean_expr_abstract_range(x_132, x_2, x_1); +lean_dec(x_132); +x_139 = 0; +x_140 = l_Lean_mkLet(x_81, x_86, x_138, x_6, x_139); +if (lean_is_scalar(x_133)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_133; +} +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_137); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_127); +lean_dec(x_86); +lean_dec(x_81); +lean_dec(x_6); +x_142 = lean_ctor_get(x_130, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_130, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_144 = x_130; +} else { + lean_dec_ref(x_130); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; } } } @@ -34237,343 +26490,176 @@ _start: { lean_object* x_6; uint8_t x_7; x_6 = lean_array_get_size(x_3); -x_7 = lean_expr_has_expr_mvar(x_4); +x_7 = l_Lean_Expr_hasMVar(x_4); if (x_7 == 0) { -uint8_t x_8; -x_8 = lean_expr_has_level_mvar(x_4); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_expr_abstract_range(x_4, x_6, x_3); +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_expr_abstract_range(x_4, x_6, x_3); lean_dec(x_4); -x_10 = l_EIO_Monad___closed__1; -x_11 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_10, x_6, x_9, x_5); +x_9 = l_EIO_Monad___closed__1; +x_10 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_9, x_6, x_8, x_5); lean_dec(x_6); -return x_11; +return x_10; } else { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_5); -if (x_12 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_5); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_5, 2); -x_14 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_5, 2, x_14); -x_15 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_3, x_4, x_5); -if (lean_obj_tag(x_15) == 0) +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_5, 2); +x_13 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_5, 2, x_13); +x_14 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_3, x_4, x_5); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_15, 1); +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -x_18 = !lean_is_exclusive(x_16); -if (x_18 == 0) +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_16, 2); -lean_dec(x_19); -lean_ctor_set(x_16, 2, x_13); -x_20 = lean_expr_abstract_range(x_17, x_6, x_3); -lean_dec(x_17); -x_21 = l_EIO_Monad___closed__1; -x_22 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_21, x_6, x_20, x_16); -lean_dec(x_6); -return x_22; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_23 = lean_ctor_get(x_16, 0); -x_24 = lean_ctor_get(x_16, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_15, 2); +lean_dec(x_18); +lean_ctor_set(x_15, 2, x_12); +x_19 = lean_expr_abstract_range(x_16, x_6, x_3); lean_dec(x_16); -x_25 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -lean_ctor_set(x_25, 2, x_13); -x_26 = lean_expr_abstract_range(x_17, x_6, x_3); -lean_dec(x_17); -x_27 = l_EIO_Monad___closed__1; -x_28 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_27, x_6, x_26, x_25); +x_20 = l_EIO_Monad___closed__1; +x_21 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_20, x_6, x_19, x_15); lean_dec(x_6); -return x_28; +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_15); +x_24 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_24, 2, x_12); +x_25 = lean_expr_abstract_range(x_16, x_6, x_3); +lean_dec(x_16); +x_26 = l_EIO_Monad___closed__1; +x_27 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_26, x_6, x_25, x_24); +lean_dec(x_6); +return x_27; } } else { -uint8_t x_29; -lean_dec(x_13); +uint8_t x_28; +lean_dec(x_12); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_29 = !lean_is_exclusive(x_15); -if (x_29 == 0) +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) { -return x_15; +return x_14; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_15, 0); -x_31 = lean_ctor_get(x_15, 1); -lean_inc(x_31); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); lean_inc(x_30); -lean_dec(x_15); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; +lean_inc(x_29); +lean_dec(x_14); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_33 = lean_ctor_get(x_5, 0); -x_34 = lean_ctor_get(x_5, 1); -x_35 = lean_ctor_get(x_5, 2); -lean_inc(x_35); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_5, 0); +x_33 = lean_ctor_get(x_5, 1); +x_34 = lean_ctor_get(x_5, 2); lean_inc(x_34); lean_inc(x_33); +lean_inc(x_32); lean_dec(x_5); -x_36 = l_HashMap_Inhabited___closed__1; -x_37 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_37, 0, x_33); -lean_ctor_set(x_37, 1, x_34); -lean_ctor_set(x_37, 2, x_36); -x_38 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_3, x_4, x_37); -if (lean_obj_tag(x_38) == 0) +x_35 = l_HashMap_Inhabited___closed__1; +x_36 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_36, 0, x_32); +lean_ctor_set(x_36, 1, x_33); +lean_ctor_set(x_36, 2, x_35); +x_37 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_3, x_4, x_36); +if (lean_obj_tag(x_37) == 0) { -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; -x_39 = lean_ctor_get(x_38, 1); +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; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 0); lean_inc(x_39); +lean_dec(x_37); x_40 = lean_ctor_get(x_38, 0); lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_ctor_get(x_39, 0); +x_41 = lean_ctor_get(x_38, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - lean_ctor_release(x_39, 2); - x_43 = x_39; -} else { - lean_dec_ref(x_39); - x_43 = lean_box(0); -} -if (lean_is_scalar(x_43)) { - x_44 = lean_alloc_ctor(0, 3, 0); -} else { - x_44 = x_43; -} -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_42); -lean_ctor_set(x_44, 2, x_35); -x_45 = lean_expr_abstract_range(x_40, x_6, x_3); -lean_dec(x_40); -x_46 = l_EIO_Monad___closed__1; -x_47 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_46, x_6, x_45, x_44); -lean_dec(x_6); -return x_47; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_35); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_48 = lean_ctor_get(x_38, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_38, 1); -lean_inc(x_49); if (lean_is_exclusive(x_38)) { lean_ctor_release(x_38, 0); lean_ctor_release(x_38, 1); - x_50 = x_38; + lean_ctor_release(x_38, 2); + x_42 = x_38; } else { lean_dec_ref(x_38); - x_50 = lean_box(0); + x_42 = lean_box(0); } -if (lean_is_scalar(x_50)) { - x_51 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_42)) { + x_43 = lean_alloc_ctor(0, 3, 0); } else { - x_51 = x_50; + x_43 = x_42; } -lean_ctor_set(x_51, 0, x_48); -lean_ctor_set(x_51, 1, x_49); -return x_51; -} -} -} -} -else -{ -uint8_t x_52; -x_52 = !lean_is_exclusive(x_5); -if (x_52 == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_5, 2); -x_54 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_5, 2, x_54); -x_55 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_3, x_4, x_5); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -lean_dec(x_55); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_59 = lean_ctor_get(x_56, 2); -lean_dec(x_59); -lean_ctor_set(x_56, 2, x_53); -x_60 = lean_expr_abstract_range(x_57, x_6, x_3); -lean_dec(x_57); -x_61 = l_EIO_Monad___closed__1; -x_62 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_61, x_6, x_60, x_56); +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_41); +lean_ctor_set(x_43, 2, x_34); +x_44 = lean_expr_abstract_range(x_39, x_6, x_3); +lean_dec(x_39); +x_45 = l_EIO_Monad___closed__1; +x_46 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_45, x_6, x_44, x_43); lean_dec(x_6); -return x_62; +return x_46; } else { -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_63 = lean_ctor_get(x_56, 0); -x_64 = lean_ctor_get(x_56, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_56); -x_65 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -lean_ctor_set(x_65, 2, x_53); -x_66 = lean_expr_abstract_range(x_57, x_6, x_3); -lean_dec(x_57); -x_67 = l_EIO_Monad___closed__1; -x_68 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_67, x_6, x_66, x_65); -lean_dec(x_6); -return x_68; -} -} -else -{ -uint8_t x_69; -lean_dec(x_53); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_34); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_69 = !lean_is_exclusive(x_55); -if (x_69 == 0) -{ -return x_55; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_55, 0); -x_71 = lean_ctor_get(x_55, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_55); -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; -} -} -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_5, 0); -x_74 = lean_ctor_get(x_5, 1); -x_75 = lean_ctor_get(x_5, 2); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_5); -x_76 = l_HashMap_Inhabited___closed__1; -x_77 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_77, 0, x_73); -lean_ctor_set(x_77, 1, x_74); -lean_ctor_set(x_77, 2, x_76); -x_78 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_3, x_4, x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 0); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_ctor_get(x_79, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - lean_ctor_release(x_79, 2); - x_83 = x_79; +x_47 = lean_ctor_get(x_37, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_37, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_49 = x_37; } else { - lean_dec_ref(x_79); - x_83 = lean_box(0); + lean_dec_ref(x_37); + x_49 = lean_box(0); } -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); } else { - x_84 = x_83; + x_50 = x_49; } -lean_ctor_set(x_84, 0, x_81); -lean_ctor_set(x_84, 1, x_82); -lean_ctor_set(x_84, 2, x_75); -x_85 = lean_expr_abstract_range(x_80, x_6, x_3); -lean_dec(x_80); -x_86 = l_EIO_Monad___closed__1; -x_87 = l_Nat_foldRevMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__2(x_1, x_2, x_3, x_86, x_6, x_85, x_84); -lean_dec(x_6); -return x_87; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -lean_dec(x_75); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -x_88 = lean_ctor_get(x_78, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_78, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_90 = x_78; -} else { - lean_dec_ref(x_78); - x_90 = lean_box(0); -} -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(1, 2, 0); -} else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } } @@ -34599,420 +26685,238 @@ return x_9; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_22; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; x_10 = lean_array_fget(x_3, x_2); x_11 = lean_box(0); lean_inc(x_10); x_12 = x_11; x_13 = lean_array_fset(x_3, x_2, x_12); -x_22 = lean_expr_has_expr_mvar(x_10); -if (x_22 == 0) -{ -uint8_t x_23; -x_23 = lean_expr_has_level_mvar(x_10); -if (x_23 == 0) +x_14 = l_Lean_Expr_hasMVar(x_10); +if (x_14 == 0) { +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_2, x_15); lean_inc(x_10); -x_14 = x_10; -x_15 = x_4; -goto block_21; +x_17 = x_10; +x_18 = lean_array_fset(x_13, x_2, x_17); +lean_dec(x_2); +x_2 = x_16; +x_3 = x_18; +goto _start; } else { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_4, 2); +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_4, 2); +lean_inc(x_20); +x_21 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_20, x_10); +lean_dec(x_20); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +lean_inc(x_10); +x_22 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_10, x_4); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 0); lean_inc(x_24); -x_25 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_24, x_10); -lean_dec(x_24); -if (lean_obj_tag(x_25) == 0) +lean_dec(x_22); +x_25 = !lean_is_exclusive(x_23); +if (x_25 == 0) { -lean_object* x_26; +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_26 = lean_ctor_get(x_23, 2); +lean_inc(x_24); lean_inc(x_10); -x_26 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_10, x_4); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 0); -lean_inc(x_28); -lean_dec(x_26); -x_29 = !lean_is_exclusive(x_27); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_27, 2); -lean_inc(x_28); -lean_inc(x_10); -x_31 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_30, x_10, x_28); -lean_ctor_set(x_27, 2, x_31); -x_14 = x_28; -x_15 = x_27; -goto block_21; +x_27 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_26, x_10, x_24); +lean_ctor_set(x_23, 2, x_27); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_add(x_2, x_28); +x_30 = x_24; +x_31 = lean_array_fset(x_13, x_2, x_30); +lean_dec(x_2); +x_2 = x_29; +x_3 = x_31; +x_4 = x_23; +goto _start; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = lean_ctor_get(x_27, 0); -x_33 = lean_ctor_get(x_27, 1); -x_34 = lean_ctor_get(x_27, 2); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_33 = lean_ctor_get(x_23, 0); +x_34 = lean_ctor_get(x_23, 1); +x_35 = lean_ctor_get(x_23, 2); +lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_27); -lean_inc(x_28); +lean_dec(x_23); +lean_inc(x_24); lean_inc(x_10); -x_35 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_34, x_10, x_28); -x_36 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_36, 0, x_32); -lean_ctor_set(x_36, 1, x_33); -lean_ctor_set(x_36, 2, x_35); -x_14 = x_28; -x_15 = x_36; -goto block_21; +x_36 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_35, x_10, x_24); +x_37 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_37, 0, x_33); +lean_ctor_set(x_37, 1, x_34); +lean_ctor_set(x_37, 2, x_36); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_2, x_38); +x_40 = x_24; +x_41 = lean_array_fset(x_13, x_2, x_40); +lean_dec(x_2); +x_2 = x_39; +x_3 = x_41; +x_4 = x_37; +goto _start; } } else { -uint8_t x_37; +uint8_t x_43; lean_dec(x_13); lean_dec(x_10); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_26); -if (x_37 == 0) +x_43 = !lean_is_exclusive(x_22); +if (x_43 == 0) { -return x_26; +return x_22; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_26, 0); -x_39 = lean_ctor_get(x_26, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_26); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; -x_41 = lean_ctor_get(x_25, 0); -lean_inc(x_41); -lean_dec(x_25); -x_14 = x_41; -x_15 = x_4; -goto block_21; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_4, 2); -lean_inc(x_42); -x_43 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_42, x_10); -lean_dec(x_42); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; -lean_inc(x_10); -x_44 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_10, x_4); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = lean_ctor_get(x_44, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_22, 0); +x_45 = lean_ctor_get(x_22, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 0); -lean_inc(x_46); -lean_dec(x_44); -x_47 = !lean_is_exclusive(x_45); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_45, 2); -lean_inc(x_46); -lean_inc(x_10); -x_49 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_48, x_10, x_46); -lean_ctor_set(x_45, 2, x_49); -x_14 = x_46; -x_15 = x_45; -goto block_21; +lean_inc(x_44); +lean_dec(x_22); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_50 = lean_ctor_get(x_45, 0); -x_51 = lean_ctor_get(x_45, 1); -x_52 = lean_ctor_get(x_45, 2); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_45); -lean_inc(x_46); -lean_inc(x_10); -x_53 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_52, x_10, x_46); -x_54 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_54, 0, x_50); -lean_ctor_set(x_54, 1, x_51); -lean_ctor_set(x_54, 2, x_53); -x_14 = x_46; -x_15 = x_54; -goto block_21; } } else { -uint8_t x_55; -lean_dec(x_13); -lean_dec(x_10); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_47 = lean_ctor_get(x_21, 0); +lean_inc(x_47); +lean_dec(x_21); +x_48 = lean_unsigned_to_nat(1u); +x_49 = lean_nat_add(x_2, x_48); +x_50 = x_47; +x_51 = lean_array_fset(x_13, x_2, x_50); lean_dec(x_2); -x_55 = !lean_is_exclusive(x_44); -if (x_55 == 0) -{ -return x_44; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_44, 0); -x_57 = lean_ctor_get(x_44, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_44); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -lean_object* x_59; -x_59 = lean_ctor_get(x_43, 0); -lean_inc(x_59); -lean_dec(x_43); -x_14 = x_59; -x_15 = x_4; -goto block_21; -} -} -block_21: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_2, x_16); -x_18 = x_14; -x_19 = lean_array_fset(x_13, x_2, x_18); -lean_dec(x_2); -x_2 = x_17; -x_3 = x_19; -x_4 = x_15; +x_2 = x_49; +x_3 = x_51; goto _start; } } } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { switch (lean_obj_tag(x_2)) { case 0: { lean_object* x_5; lean_object* x_6; uint8_t x_21; -x_21 = lean_expr_has_expr_mvar(x_2); +x_21 = l_Lean_Expr_hasMVar(x_2); if (x_21 == 0) { -uint8_t x_22; -x_22 = lean_expr_has_level_mvar(x_2); -if (x_22 == 0) -{ x_5 = x_2; x_6 = x_4; goto block_20; } else { -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_4, 2); -lean_inc(x_23); -x_24 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_23, x_2); -lean_dec(x_23); +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_4, 2); +lean_inc(x_22); +x_23 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_22, x_2); +lean_dec(x_22); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; +lean_inc(x_2); +x_24 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; -lean_inc(x_2); -x_25 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_25, 1); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 0); -lean_inc(x_27); -lean_dec(x_25); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) +lean_dec(x_24); +x_27 = !lean_is_exclusive(x_25); +if (x_27 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 2); -lean_inc(x_27); -x_30 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_29, x_2, x_27); -lean_ctor_set(x_26, 2, x_30); -x_5 = x_27; -x_6 = x_26; +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 2); +lean_inc(x_26); +x_29 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_28, x_2, x_26); +lean_ctor_set(x_25, 2, x_29); +x_5 = x_26; +x_6 = x_25; goto block_20; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_26, 0); -x_32 = lean_ctor_get(x_26, 1); -x_33 = lean_ctor_get(x_26, 2); -lean_inc(x_33); +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_25, 0); +x_31 = lean_ctor_get(x_25, 1); +x_32 = lean_ctor_get(x_25, 2); lean_inc(x_32); lean_inc(x_31); -lean_dec(x_26); -lean_inc(x_27); -x_34 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_33, x_2, x_27); -x_35 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_35, 0, x_31); -lean_ctor_set(x_35, 1, x_32); -lean_ctor_set(x_35, 2, x_34); -x_5 = x_27; -x_6 = x_35; -goto block_20; -} -} -else -{ -uint8_t x_36; -lean_dec(x_3); -lean_dec(x_2); -x_36 = !lean_is_exclusive(x_25); -if (x_36 == 0) -{ -return x_25; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_25, 0); -x_38 = lean_ctor_get(x_25, 1); -lean_inc(x_38); -lean_inc(x_37); +lean_inc(x_30); lean_dec(x_25); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} -else -{ -lean_object* x_40; -lean_dec(x_2); -x_40 = lean_ctor_get(x_24, 0); -lean_inc(x_40); -lean_dec(x_24); -x_5 = x_40; -x_6 = x_4; -goto block_20; -} -} -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_4, 2); -lean_inc(x_41); -x_42 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_41, x_2); -lean_dec(x_41); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; -lean_inc(x_2); -x_43 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 0); -lean_inc(x_45); -lean_dec(x_43); -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 2); -lean_inc(x_45); -x_48 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_47, x_2, x_45); -lean_ctor_set(x_44, 2, x_48); -x_5 = x_45; -x_6 = x_44; -goto block_20; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_49 = lean_ctor_get(x_44, 0); -x_50 = lean_ctor_get(x_44, 1); -x_51 = lean_ctor_get(x_44, 2); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_44); -lean_inc(x_45); -x_52 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_51, x_2, x_45); -x_53 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_50); -lean_ctor_set(x_53, 2, x_52); -x_5 = x_45; -x_6 = x_53; +lean_inc(x_26); +x_33 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_32, x_2, x_26); +x_34 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_34, 0, x_30); +lean_ctor_set(x_34, 1, x_31); +lean_ctor_set(x_34, 2, x_33); +x_5 = x_26; +x_6 = x_34; goto block_20; } } else { -uint8_t x_54; +uint8_t x_35; lean_dec(x_3); lean_dec(x_2); -x_54 = !lean_is_exclusive(x_43); -if (x_54 == 0) +x_35 = !lean_is_exclusive(x_24); +if (x_35 == 0) { -return x_43; +return x_24; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_43, 0); -x_56 = lean_ctor_get(x_43, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_43); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_24, 0); +x_37 = lean_ctor_get(x_24, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_24); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -lean_object* x_58; +lean_object* x_39; lean_dec(x_2); -x_58 = lean_ctor_get(x_42, 0); -lean_inc(x_58); -lean_dec(x_42); -x_5 = x_58; +x_39 = lean_ctor_get(x_23, 0); +lean_inc(x_39); +lean_dec(x_23); +x_5 = x_39; x_6 = x_4; goto block_20; } @@ -35078,250 +26982,85 @@ return x_19; } case 1: { -lean_object* x_59; lean_object* x_60; uint8_t x_75; -x_75 = lean_expr_has_expr_mvar(x_2); -if (x_75 == 0) +lean_object* x_40; lean_object* x_41; uint8_t x_56; +x_56 = l_Lean_Expr_hasMVar(x_2); +if (x_56 == 0) { -uint8_t x_76; -x_76 = lean_expr_has_level_mvar(x_2); -if (x_76 == 0) -{ -x_59 = x_2; -x_60 = x_4; -goto block_74; +x_40 = x_2; +x_41 = x_4; +goto block_55; } else { -lean_object* x_77; lean_object* x_78; -x_77 = lean_ctor_get(x_4, 2); -lean_inc(x_77); -x_78 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_77, x_2); -lean_dec(x_77); -if (lean_obj_tag(x_78) == 0) +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_4, 2); +lean_inc(x_57); +x_58 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_57, x_2); +lean_dec(x_57); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_79; +lean_object* x_59; lean_inc(x_2); -x_79 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_79) == 0) +x_59 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 0); -lean_inc(x_81); -lean_dec(x_79); -x_82 = !lean_is_exclusive(x_80); -if (x_82 == 0) +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 0); +lean_inc(x_61); +lean_dec(x_59); +x_62 = !lean_is_exclusive(x_60); +if (x_62 == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_80, 2); -lean_inc(x_81); -x_84 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_83, x_2, x_81); -lean_ctor_set(x_80, 2, x_84); -x_59 = x_81; -x_60 = x_80; -goto block_74; +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_60, 2); +lean_inc(x_61); +x_64 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_63, x_2, x_61); +lean_ctor_set(x_60, 2, x_64); +x_40 = x_61; +x_41 = x_60; +goto block_55; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_85 = lean_ctor_get(x_80, 0); -x_86 = lean_ctor_get(x_80, 1); -x_87 = lean_ctor_get(x_80, 2); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_80); -lean_inc(x_81); -x_88 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_87, x_2, x_81); -x_89 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_89, 0, x_85); -lean_ctor_set(x_89, 1, x_86); -lean_ctor_set(x_89, 2, x_88); -x_59 = x_81; -x_60 = x_89; -goto block_74; -} -} -else -{ -uint8_t x_90; -lean_dec(x_3); -lean_dec(x_2); -x_90 = !lean_is_exclusive(x_79); -if (x_90 == 0) -{ -return x_79; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_79, 0); -x_92 = lean_ctor_get(x_79, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_79); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; -} -} -} -else -{ -lean_object* x_94; -lean_dec(x_2); -x_94 = lean_ctor_get(x_78, 0); -lean_inc(x_94); -lean_dec(x_78); -x_59 = x_94; -x_60 = x_4; -goto block_74; -} -} -} -else -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_4, 2); -lean_inc(x_95); -x_96 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_95, x_2); -lean_dec(x_95); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; -lean_inc(x_2); -x_97 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 0); -lean_inc(x_99); -lean_dec(x_97); -x_100 = !lean_is_exclusive(x_98); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; -x_101 = lean_ctor_get(x_98, 2); -lean_inc(x_99); -x_102 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_101, x_2, x_99); -lean_ctor_set(x_98, 2, x_102); -x_59 = x_99; -x_60 = x_98; -goto block_74; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_103 = lean_ctor_get(x_98, 0); -x_104 = lean_ctor_get(x_98, 1); -x_105 = lean_ctor_get(x_98, 2); -lean_inc(x_105); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_98); -lean_inc(x_99); -x_106 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_105, x_2, x_99); -x_107 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_107, 0, x_103); -lean_ctor_set(x_107, 1, x_104); -lean_ctor_set(x_107, 2, x_106); -x_59 = x_99; -x_60 = x_107; -goto block_74; -} -} -else -{ -uint8_t x_108; -lean_dec(x_3); -lean_dec(x_2); -x_108 = !lean_is_exclusive(x_97); -if (x_108 == 0) -{ -return x_97; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_97, 0); -x_110 = lean_ctor_get(x_97, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_97); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -} -else -{ -lean_object* x_112; -lean_dec(x_2); -x_112 = lean_ctor_get(x_96, 0); -lean_inc(x_112); -lean_dec(x_96); -x_59 = x_112; -x_60 = x_4; -goto block_74; -} -} -block_74: -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_unsigned_to_nat(0u); -x_62 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_61, x_3, x_60); -if (lean_obj_tag(x_62) == 0) -{ -uint8_t x_63; -x_63 = !lean_is_exclusive(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_62, 0); -x_65 = l_Lean_mkAppRev(x_59, x_64); -lean_dec(x_64); -lean_ctor_set(x_62, 0, x_65); -return x_62; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_66 = lean_ctor_get(x_62, 0); -x_67 = lean_ctor_get(x_62, 1); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_65 = lean_ctor_get(x_60, 0); +x_66 = lean_ctor_get(x_60, 1); +x_67 = lean_ctor_get(x_60, 2); lean_inc(x_67); lean_inc(x_66); -lean_dec(x_62); -x_68 = l_Lean_mkAppRev(x_59, x_66); -lean_dec(x_66); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_inc(x_65); +lean_dec(x_60); +lean_inc(x_61); +x_68 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_67, x_2, x_61); +x_69 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_69, 0, x_65); +lean_ctor_set(x_69, 1, x_66); +lean_ctor_set(x_69, 2, x_68); +x_40 = x_61; +x_41 = x_69; +goto block_55; } } else { uint8_t x_70; -lean_dec(x_59); -x_70 = !lean_is_exclusive(x_62); +lean_dec(x_3); +lean_dec(x_2); +x_70 = !lean_is_exclusive(x_59); if (x_70 == 0) { -return x_62; +return x_59; } else { lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_62, 0); -x_72 = lean_ctor_get(x_62, 1); +x_71 = lean_ctor_get(x_59, 0); +x_72 = lean_ctor_get(x_59, 1); lean_inc(x_72); lean_inc(x_71); -lean_dec(x_62); +lean_dec(x_59); x_73 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_73, 0, x_71); lean_ctor_set(x_73, 1, x_72); @@ -35329,2302 +27068,1676 @@ return x_73; } } } +else +{ +lean_object* x_74; +lean_dec(x_2); +x_74 = lean_ctor_get(x_58, 0); +lean_inc(x_74); +lean_dec(x_58); +x_40 = x_74; +x_41 = x_4; +goto block_55; +} +} +block_55: +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_unsigned_to_nat(0u); +x_43 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_42, x_3, x_41); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_43, 0); +x_46 = l_Lean_mkAppRev(x_40, x_45); +lean_dec(x_45); +lean_ctor_set(x_43, 0, x_46); +return x_43; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_43, 0); +x_48 = lean_ctor_get(x_43, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_43); +x_49 = l_Lean_mkAppRev(x_40, x_47); +lean_dec(x_47); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +else +{ +uint8_t x_51; +lean_dec(x_40); +x_51 = !lean_is_exclusive(x_43); +if (x_51 == 0) +{ +return x_43; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_43, 0); +x_53 = lean_ctor_get(x_43, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_43); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} } case 2: { -lean_object* x_113; lean_object* x_114; uint8_t x_129; -x_129 = lean_expr_has_expr_mvar(x_2); -if (x_129 == 0) +lean_object* x_75; lean_object* x_76; uint8_t x_91; +x_91 = l_Lean_Expr_hasMVar(x_2); +if (x_91 == 0) { -uint8_t x_130; -x_130 = lean_expr_has_level_mvar(x_2); -if (x_130 == 0) -{ -x_113 = x_2; -x_114 = x_4; -goto block_128; +x_75 = x_2; +x_76 = x_4; +goto block_90; } else { -lean_object* x_131; lean_object* x_132; -x_131 = lean_ctor_get(x_4, 2); -lean_inc(x_131); -x_132 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_131, x_2); -lean_dec(x_131); -if (lean_obj_tag(x_132) == 0) +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_4, 2); +lean_inc(x_92); +x_93 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_92, x_2); +lean_dec(x_92); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_133; +lean_object* x_94; lean_inc(x_2); -x_133 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_133) == 0) +x_94 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_94) == 0) { -lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_134 = lean_ctor_get(x_133, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 0); -lean_inc(x_135); -lean_dec(x_133); -x_136 = !lean_is_exclusive(x_134); -if (x_136 == 0) +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 0); +lean_inc(x_96); +lean_dec(x_94); +x_97 = !lean_is_exclusive(x_95); +if (x_97 == 0) { -lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_134, 2); -lean_inc(x_135); -x_138 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_137, x_2, x_135); -lean_ctor_set(x_134, 2, x_138); -x_113 = x_135; -x_114 = x_134; -goto block_128; +lean_object* x_98; lean_object* x_99; +x_98 = lean_ctor_get(x_95, 2); +lean_inc(x_96); +x_99 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_98, x_2, x_96); +lean_ctor_set(x_95, 2, x_99); +x_75 = x_96; +x_76 = x_95; +goto block_90; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_139 = lean_ctor_get(x_134, 0); -x_140 = lean_ctor_get(x_134, 1); -x_141 = lean_ctor_get(x_134, 2); -lean_inc(x_141); -lean_inc(x_140); -lean_inc(x_139); -lean_dec(x_134); -lean_inc(x_135); -x_142 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_141, x_2, x_135); -x_143 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_143, 0, x_139); -lean_ctor_set(x_143, 1, x_140); -lean_ctor_set(x_143, 2, x_142); -x_113 = x_135; -x_114 = x_143; -goto block_128; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_100 = lean_ctor_get(x_95, 0); +x_101 = lean_ctor_get(x_95, 1); +x_102 = lean_ctor_get(x_95, 2); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_95); +lean_inc(x_96); +x_103 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_102, x_2, x_96); +x_104 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_104, 0, x_100); +lean_ctor_set(x_104, 1, x_101); +lean_ctor_set(x_104, 2, x_103); +x_75 = x_96; +x_76 = x_104; +goto block_90; } } else { -uint8_t x_144; +uint8_t x_105; lean_dec(x_3); lean_dec(x_2); -x_144 = !lean_is_exclusive(x_133); -if (x_144 == 0) +x_105 = !lean_is_exclusive(x_94); +if (x_105 == 0) { -return x_133; +return x_94; } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_133, 0); -x_146 = lean_ctor_get(x_133, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_133); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_94, 0); +x_107 = lean_ctor_get(x_94, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_94); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; } } } else { -lean_object* x_148; +lean_object* x_109; lean_dec(x_2); -x_148 = lean_ctor_get(x_132, 0); -lean_inc(x_148); -lean_dec(x_132); -x_113 = x_148; -x_114 = x_4; -goto block_128; +x_109 = lean_ctor_get(x_93, 0); +lean_inc(x_109); +lean_dec(x_93); +x_75 = x_109; +x_76 = x_4; +goto block_90; } } +block_90: +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_unsigned_to_nat(0u); +x_78 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_77, x_3, x_76); +if (lean_obj_tag(x_78) == 0) +{ +uint8_t x_79; +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_78, 0); +x_81 = l_Lean_mkAppRev(x_75, x_80); +lean_dec(x_80); +lean_ctor_set(x_78, 0, x_81); +return x_78; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_78, 0); +x_83 = lean_ctor_get(x_78, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_78); +x_84 = l_Lean_mkAppRev(x_75, x_82); +lean_dec(x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} } else { -lean_object* x_149; lean_object* x_150; -x_149 = lean_ctor_get(x_4, 2); -lean_inc(x_149); -x_150 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_149, x_2); -lean_dec(x_149); -if (lean_obj_tag(x_150) == 0) +uint8_t x_86; +lean_dec(x_75); +x_86 = !lean_is_exclusive(x_78); +if (x_86 == 0) { -lean_object* x_151; -lean_inc(x_2); -x_151 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_151) == 0) -{ -lean_object* x_152; lean_object* x_153; uint8_t x_154; -x_152 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 0); -lean_inc(x_153); -lean_dec(x_151); -x_154 = !lean_is_exclusive(x_152); -if (x_154 == 0) -{ -lean_object* x_155; lean_object* x_156; -x_155 = lean_ctor_get(x_152, 2); -lean_inc(x_153); -x_156 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_155, x_2, x_153); -lean_ctor_set(x_152, 2, x_156); -x_113 = x_153; -x_114 = x_152; -goto block_128; +return x_78; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_157 = lean_ctor_get(x_152, 0); -x_158 = lean_ctor_get(x_152, 1); -x_159 = lean_ctor_get(x_152, 2); -lean_inc(x_159); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_152); -lean_inc(x_153); -x_160 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_159, x_2, x_153); -x_161 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_161, 0, x_157); -lean_ctor_set(x_161, 1, x_158); -lean_ctor_set(x_161, 2, x_160); -x_113 = x_153; -x_114 = x_161; -goto block_128; -} -} -else -{ -uint8_t x_162; -lean_dec(x_3); -lean_dec(x_2); -x_162 = !lean_is_exclusive(x_151); -if (x_162 == 0) -{ -return x_151; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_151, 0); -x_164 = lean_ctor_get(x_151, 1); -lean_inc(x_164); -lean_inc(x_163); -lean_dec(x_151); -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_163); -lean_ctor_set(x_165, 1, x_164); -return x_165; -} -} -} -else -{ -lean_object* x_166; -lean_dec(x_2); -x_166 = lean_ctor_get(x_150, 0); -lean_inc(x_166); -lean_dec(x_150); -x_113 = x_166; -x_114 = x_4; -goto block_128; -} -} -block_128: -{ -lean_object* x_115; lean_object* x_116; -x_115 = lean_unsigned_to_nat(0u); -x_116 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_115, x_3, x_114); -if (lean_obj_tag(x_116) == 0) -{ -uint8_t x_117; -x_117 = !lean_is_exclusive(x_116); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_116, 0); -x_119 = l_Lean_mkAppRev(x_113, x_118); -lean_dec(x_118); -lean_ctor_set(x_116, 0, x_119); -return x_116; -} -else -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_ctor_get(x_116, 0); -x_121 = lean_ctor_get(x_116, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_116); -x_122 = l_Lean_mkAppRev(x_113, x_120); -lean_dec(x_120); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_121); -return x_123; -} -} -else -{ -uint8_t x_124; -lean_dec(x_113); -x_124 = !lean_is_exclusive(x_116); -if (x_124 == 0) -{ -return x_116; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_116, 0); -x_126 = lean_ctor_get(x_116, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_116); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_78, 0); +x_88 = lean_ctor_get(x_78, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_78); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } } case 3: { -lean_object* x_167; lean_object* x_168; uint8_t x_183; -x_183 = lean_expr_has_expr_mvar(x_2); -if (x_183 == 0) +lean_object* x_110; lean_object* x_111; uint8_t x_126; +x_126 = l_Lean_Expr_hasMVar(x_2); +if (x_126 == 0) { -uint8_t x_184; -x_184 = lean_expr_has_level_mvar(x_2); -if (x_184 == 0) -{ -x_167 = x_2; -x_168 = x_4; -goto block_182; +x_110 = x_2; +x_111 = x_4; +goto block_125; } else { -lean_object* x_185; lean_object* x_186; -x_185 = lean_ctor_get(x_4, 2); -lean_inc(x_185); -x_186 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_185, x_2); -lean_dec(x_185); -if (lean_obj_tag(x_186) == 0) +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +x_128 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_127, x_2); +lean_dec(x_127); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_187; +lean_object* x_129; lean_inc(x_2); -x_187 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_187) == 0) +x_129 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_129) == 0) { -lean_object* x_188; lean_object* x_189; uint8_t x_190; -x_188 = lean_ctor_get(x_187, 1); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 0); -lean_inc(x_189); -lean_dec(x_187); -x_190 = !lean_is_exclusive(x_188); -if (x_190 == 0) +lean_object* x_130; lean_object* x_131; uint8_t x_132; +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +x_131 = lean_ctor_get(x_129, 0); +lean_inc(x_131); +lean_dec(x_129); +x_132 = !lean_is_exclusive(x_130); +if (x_132 == 0) { -lean_object* x_191; lean_object* x_192; -x_191 = lean_ctor_get(x_188, 2); -lean_inc(x_189); -x_192 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_191, x_2, x_189); -lean_ctor_set(x_188, 2, x_192); -x_167 = x_189; -x_168 = x_188; -goto block_182; +lean_object* x_133; lean_object* x_134; +x_133 = lean_ctor_get(x_130, 2); +lean_inc(x_131); +x_134 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_133, x_2, x_131); +lean_ctor_set(x_130, 2, x_134); +x_110 = x_131; +x_111 = x_130; +goto block_125; } else { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_193 = lean_ctor_get(x_188, 0); -x_194 = lean_ctor_get(x_188, 1); -x_195 = lean_ctor_get(x_188, 2); -lean_inc(x_195); -lean_inc(x_194); -lean_inc(x_193); -lean_dec(x_188); -lean_inc(x_189); -x_196 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_195, x_2, x_189); -x_197 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_197, 0, x_193); -lean_ctor_set(x_197, 1, x_194); -lean_ctor_set(x_197, 2, x_196); -x_167 = x_189; -x_168 = x_197; -goto block_182; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_135 = lean_ctor_get(x_130, 0); +x_136 = lean_ctor_get(x_130, 1); +x_137 = lean_ctor_get(x_130, 2); +lean_inc(x_137); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_130); +lean_inc(x_131); +x_138 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_137, x_2, x_131); +x_139 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_139, 0, x_135); +lean_ctor_set(x_139, 1, x_136); +lean_ctor_set(x_139, 2, x_138); +x_110 = x_131; +x_111 = x_139; +goto block_125; } } else { -uint8_t x_198; +uint8_t x_140; lean_dec(x_3); lean_dec(x_2); -x_198 = !lean_is_exclusive(x_187); -if (x_198 == 0) +x_140 = !lean_is_exclusive(x_129); +if (x_140 == 0) { -return x_187; +return x_129; } else { -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_187, 0); -x_200 = lean_ctor_get(x_187, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_187); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -return x_201; +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_129, 0); +x_142 = lean_ctor_get(x_129, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_129); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } } else { -lean_object* x_202; +lean_object* x_144; lean_dec(x_2); -x_202 = lean_ctor_get(x_186, 0); -lean_inc(x_202); -lean_dec(x_186); -x_167 = x_202; -x_168 = x_4; -goto block_182; +x_144 = lean_ctor_get(x_128, 0); +lean_inc(x_144); +lean_dec(x_128); +x_110 = x_144; +x_111 = x_4; +goto block_125; } } +block_125: +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_unsigned_to_nat(0u); +x_113 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_112, x_3, x_111); +if (lean_obj_tag(x_113) == 0) +{ +uint8_t x_114; +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +x_115 = lean_ctor_get(x_113, 0); +x_116 = l_Lean_mkAppRev(x_110, x_115); +lean_dec(x_115); +lean_ctor_set(x_113, 0, x_116); +return x_113; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_117 = lean_ctor_get(x_113, 0); +x_118 = lean_ctor_get(x_113, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_113); +x_119 = l_Lean_mkAppRev(x_110, x_117); +lean_dec(x_117); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +return x_120; +} } else { -lean_object* x_203; lean_object* x_204; -x_203 = lean_ctor_get(x_4, 2); -lean_inc(x_203); -x_204 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_203, x_2); -lean_dec(x_203); -if (lean_obj_tag(x_204) == 0) +uint8_t x_121; +lean_dec(x_110); +x_121 = !lean_is_exclusive(x_113); +if (x_121 == 0) { -lean_object* x_205; -lean_inc(x_2); -x_205 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_205) == 0) -{ -lean_object* x_206; lean_object* x_207; uint8_t x_208; -x_206 = lean_ctor_get(x_205, 1); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 0); -lean_inc(x_207); -lean_dec(x_205); -x_208 = !lean_is_exclusive(x_206); -if (x_208 == 0) -{ -lean_object* x_209; lean_object* x_210; -x_209 = lean_ctor_get(x_206, 2); -lean_inc(x_207); -x_210 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_209, x_2, x_207); -lean_ctor_set(x_206, 2, x_210); -x_167 = x_207; -x_168 = x_206; -goto block_182; +return x_113; } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_211 = lean_ctor_get(x_206, 0); -x_212 = lean_ctor_get(x_206, 1); -x_213 = lean_ctor_get(x_206, 2); -lean_inc(x_213); -lean_inc(x_212); -lean_inc(x_211); -lean_dec(x_206); -lean_inc(x_207); -x_214 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_213, x_2, x_207); -x_215 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_215, 0, x_211); -lean_ctor_set(x_215, 1, x_212); -lean_ctor_set(x_215, 2, x_214); -x_167 = x_207; -x_168 = x_215; -goto block_182; -} -} -else -{ -uint8_t x_216; -lean_dec(x_3); -lean_dec(x_2); -x_216 = !lean_is_exclusive(x_205); -if (x_216 == 0) -{ -return x_205; -} -else -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_205, 0); -x_218 = lean_ctor_get(x_205, 1); -lean_inc(x_218); -lean_inc(x_217); -lean_dec(x_205); -x_219 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -return x_219; -} -} -} -else -{ -lean_object* x_220; -lean_dec(x_2); -x_220 = lean_ctor_get(x_204, 0); -lean_inc(x_220); -lean_dec(x_204); -x_167 = x_220; -x_168 = x_4; -goto block_182; -} -} -block_182: -{ -lean_object* x_169; lean_object* x_170; -x_169 = lean_unsigned_to_nat(0u); -x_170 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_169, x_3, x_168); -if (lean_obj_tag(x_170) == 0) -{ -uint8_t x_171; -x_171 = !lean_is_exclusive(x_170); -if (x_171 == 0) -{ -lean_object* x_172; lean_object* x_173; -x_172 = lean_ctor_get(x_170, 0); -x_173 = l_Lean_mkAppRev(x_167, x_172); -lean_dec(x_172); -lean_ctor_set(x_170, 0, x_173); -return x_170; -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_174 = lean_ctor_get(x_170, 0); -x_175 = lean_ctor_get(x_170, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_170); -x_176 = l_Lean_mkAppRev(x_167, x_174); -lean_dec(x_174); -x_177 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_175); -return x_177; -} -} -else -{ -uint8_t x_178; -lean_dec(x_167); -x_178 = !lean_is_exclusive(x_170); -if (x_178 == 0) -{ -return x_170; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_170, 0); -x_180 = lean_ctor_get(x_170, 1); -lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_170); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -return x_181; +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_113, 0); +x_123 = lean_ctor_get(x_113, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_113); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } } case 4: { -lean_object* x_221; lean_object* x_222; uint8_t x_237; -x_237 = lean_expr_has_expr_mvar(x_2); -if (x_237 == 0) +lean_object* x_145; lean_object* x_146; uint8_t x_161; +x_161 = l_Lean_Expr_hasMVar(x_2); +if (x_161 == 0) { -uint8_t x_238; -x_238 = lean_expr_has_level_mvar(x_2); -if (x_238 == 0) -{ -x_221 = x_2; -x_222 = x_4; -goto block_236; +x_145 = x_2; +x_146 = x_4; +goto block_160; } else { -lean_object* x_239; lean_object* x_240; -x_239 = lean_ctor_get(x_4, 2); -lean_inc(x_239); -x_240 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_239, x_2); -lean_dec(x_239); -if (lean_obj_tag(x_240) == 0) +lean_object* x_162; lean_object* x_163; +x_162 = lean_ctor_get(x_4, 2); +lean_inc(x_162); +x_163 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_162, x_2); +lean_dec(x_162); +if (lean_obj_tag(x_163) == 0) { -lean_object* x_241; +lean_object* x_164; lean_inc(x_2); -x_241 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_241) == 0) +x_164 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_242; lean_object* x_243; uint8_t x_244; -x_242 = lean_ctor_get(x_241, 1); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 0); -lean_inc(x_243); -lean_dec(x_241); -x_244 = !lean_is_exclusive(x_242); -if (x_244 == 0) +lean_object* x_165; lean_object* x_166; uint8_t x_167; +x_165 = lean_ctor_get(x_164, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 0); +lean_inc(x_166); +lean_dec(x_164); +x_167 = !lean_is_exclusive(x_165); +if (x_167 == 0) { -lean_object* x_245; lean_object* x_246; -x_245 = lean_ctor_get(x_242, 2); -lean_inc(x_243); -x_246 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_245, x_2, x_243); -lean_ctor_set(x_242, 2, x_246); -x_221 = x_243; -x_222 = x_242; -goto block_236; +lean_object* x_168; lean_object* x_169; +x_168 = lean_ctor_get(x_165, 2); +lean_inc(x_166); +x_169 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_168, x_2, x_166); +lean_ctor_set(x_165, 2, x_169); +x_145 = x_166; +x_146 = x_165; +goto block_160; } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_247 = lean_ctor_get(x_242, 0); -x_248 = lean_ctor_get(x_242, 1); -x_249 = lean_ctor_get(x_242, 2); -lean_inc(x_249); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_242); -lean_inc(x_243); -x_250 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_249, x_2, x_243); -x_251 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_251, 0, x_247); -lean_ctor_set(x_251, 1, x_248); -lean_ctor_set(x_251, 2, x_250); -x_221 = x_243; -x_222 = x_251; -goto block_236; +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_170 = lean_ctor_get(x_165, 0); +x_171 = lean_ctor_get(x_165, 1); +x_172 = lean_ctor_get(x_165, 2); +lean_inc(x_172); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_165); +lean_inc(x_166); +x_173 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_172, x_2, x_166); +x_174 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_174, 0, x_170); +lean_ctor_set(x_174, 1, x_171); +lean_ctor_set(x_174, 2, x_173); +x_145 = x_166; +x_146 = x_174; +goto block_160; } } else { -uint8_t x_252; +uint8_t x_175; lean_dec(x_3); lean_dec(x_2); -x_252 = !lean_is_exclusive(x_241); -if (x_252 == 0) +x_175 = !lean_is_exclusive(x_164); +if (x_175 == 0) { -return x_241; +return x_164; } else { -lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_253 = lean_ctor_get(x_241, 0); -x_254 = lean_ctor_get(x_241, 1); -lean_inc(x_254); -lean_inc(x_253); -lean_dec(x_241); -x_255 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_255, 0, x_253); -lean_ctor_set(x_255, 1, x_254); -return x_255; +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_164, 0); +x_177 = lean_ctor_get(x_164, 1); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_164); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_176); +lean_ctor_set(x_178, 1, x_177); +return x_178; } } } else { -lean_object* x_256; +lean_object* x_179; lean_dec(x_2); -x_256 = lean_ctor_get(x_240, 0); -lean_inc(x_256); -lean_dec(x_240); -x_221 = x_256; -x_222 = x_4; -goto block_236; +x_179 = lean_ctor_get(x_163, 0); +lean_inc(x_179); +lean_dec(x_163); +x_145 = x_179; +x_146 = x_4; +goto block_160; } } +block_160: +{ +lean_object* x_147; lean_object* x_148; +x_147 = lean_unsigned_to_nat(0u); +x_148 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_147, x_3, x_146); +if (lean_obj_tag(x_148) == 0) +{ +uint8_t x_149; +x_149 = !lean_is_exclusive(x_148); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_148, 0); +x_151 = l_Lean_mkAppRev(x_145, x_150); +lean_dec(x_150); +lean_ctor_set(x_148, 0, x_151); +return x_148; +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_152 = lean_ctor_get(x_148, 0); +x_153 = lean_ctor_get(x_148, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_148); +x_154 = l_Lean_mkAppRev(x_145, x_152); +lean_dec(x_152); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +return x_155; +} } else { -lean_object* x_257; lean_object* x_258; -x_257 = lean_ctor_get(x_4, 2); -lean_inc(x_257); -x_258 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_257, x_2); -lean_dec(x_257); -if (lean_obj_tag(x_258) == 0) +uint8_t x_156; +lean_dec(x_145); +x_156 = !lean_is_exclusive(x_148); +if (x_156 == 0) { -lean_object* x_259; -lean_inc(x_2); -x_259 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_259) == 0) -{ -lean_object* x_260; lean_object* x_261; uint8_t x_262; -x_260 = lean_ctor_get(x_259, 1); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 0); -lean_inc(x_261); -lean_dec(x_259); -x_262 = !lean_is_exclusive(x_260); -if (x_262 == 0) -{ -lean_object* x_263; lean_object* x_264; -x_263 = lean_ctor_get(x_260, 2); -lean_inc(x_261); -x_264 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_263, x_2, x_261); -lean_ctor_set(x_260, 2, x_264); -x_221 = x_261; -x_222 = x_260; -goto block_236; +return x_148; } else { -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_265 = lean_ctor_get(x_260, 0); -x_266 = lean_ctor_get(x_260, 1); -x_267 = lean_ctor_get(x_260, 2); -lean_inc(x_267); -lean_inc(x_266); -lean_inc(x_265); -lean_dec(x_260); -lean_inc(x_261); -x_268 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_267, x_2, x_261); -x_269 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_269, 0, x_265); -lean_ctor_set(x_269, 1, x_266); -lean_ctor_set(x_269, 2, x_268); -x_221 = x_261; -x_222 = x_269; -goto block_236; -} -} -else -{ -uint8_t x_270; -lean_dec(x_3); -lean_dec(x_2); -x_270 = !lean_is_exclusive(x_259); -if (x_270 == 0) -{ -return x_259; -} -else -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_271 = lean_ctor_get(x_259, 0); -x_272 = lean_ctor_get(x_259, 1); -lean_inc(x_272); -lean_inc(x_271); -lean_dec(x_259); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_271); -lean_ctor_set(x_273, 1, x_272); -return x_273; -} -} -} -else -{ -lean_object* x_274; -lean_dec(x_2); -x_274 = lean_ctor_get(x_258, 0); -lean_inc(x_274); -lean_dec(x_258); -x_221 = x_274; -x_222 = x_4; -goto block_236; -} -} -block_236: -{ -lean_object* x_223; lean_object* x_224; -x_223 = lean_unsigned_to_nat(0u); -x_224 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_223, x_3, x_222); -if (lean_obj_tag(x_224) == 0) -{ -uint8_t x_225; -x_225 = !lean_is_exclusive(x_224); -if (x_225 == 0) -{ -lean_object* x_226; lean_object* x_227; -x_226 = lean_ctor_get(x_224, 0); -x_227 = l_Lean_mkAppRev(x_221, x_226); -lean_dec(x_226); -lean_ctor_set(x_224, 0, x_227); -return x_224; -} -else -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_228 = lean_ctor_get(x_224, 0); -x_229 = lean_ctor_get(x_224, 1); -lean_inc(x_229); -lean_inc(x_228); -lean_dec(x_224); -x_230 = l_Lean_mkAppRev(x_221, x_228); -lean_dec(x_228); -x_231 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_229); -return x_231; -} -} -else -{ -uint8_t x_232; -lean_dec(x_221); -x_232 = !lean_is_exclusive(x_224); -if (x_232 == 0) -{ -return x_224; -} -else -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_233 = lean_ctor_get(x_224, 0); -x_234 = lean_ctor_get(x_224, 1); -lean_inc(x_234); -lean_inc(x_233); -lean_dec(x_224); -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_233); -lean_ctor_set(x_235, 1, x_234); -return x_235; +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_148, 0); +x_158 = lean_ctor_get(x_148, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_148); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; } } } } case 5: { -lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_275 = lean_ctor_get(x_2, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_2, 1); -lean_inc(x_276); +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_2, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_2, 1); +lean_inc(x_181); lean_dec(x_2); -x_277 = lean_array_push(x_3, x_276); -x_2 = x_275; -x_3 = x_277; +x_182 = lean_array_push(x_3, x_181); +x_2 = x_180; +x_3 = x_182; goto _start; } case 6: { -lean_object* x_279; lean_object* x_280; uint8_t x_295; -x_295 = lean_expr_has_expr_mvar(x_2); -if (x_295 == 0) +lean_object* x_184; lean_object* x_185; uint8_t x_200; +x_200 = l_Lean_Expr_hasMVar(x_2); +if (x_200 == 0) { -uint8_t x_296; -x_296 = lean_expr_has_level_mvar(x_2); -if (x_296 == 0) -{ -x_279 = x_2; -x_280 = x_4; -goto block_294; +x_184 = x_2; +x_185 = x_4; +goto block_199; } else { -lean_object* x_297; lean_object* x_298; -x_297 = lean_ctor_get(x_4, 2); -lean_inc(x_297); -x_298 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_297, x_2); -lean_dec(x_297); -if (lean_obj_tag(x_298) == 0) +lean_object* x_201; lean_object* x_202; +x_201 = lean_ctor_get(x_4, 2); +lean_inc(x_201); +x_202 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_201, x_2); +lean_dec(x_201); +if (lean_obj_tag(x_202) == 0) { -lean_object* x_299; +lean_object* x_203; lean_inc(x_2); -x_299 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_299) == 0) +x_203 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_203) == 0) { -lean_object* x_300; lean_object* x_301; uint8_t x_302; -x_300 = lean_ctor_get(x_299, 1); -lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 0); -lean_inc(x_301); -lean_dec(x_299); -x_302 = !lean_is_exclusive(x_300); -if (x_302 == 0) +lean_object* x_204; lean_object* x_205; uint8_t x_206; +x_204 = lean_ctor_get(x_203, 1); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 0); +lean_inc(x_205); +lean_dec(x_203); +x_206 = !lean_is_exclusive(x_204); +if (x_206 == 0) { -lean_object* x_303; lean_object* x_304; -x_303 = lean_ctor_get(x_300, 2); -lean_inc(x_301); -x_304 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_303, x_2, x_301); -lean_ctor_set(x_300, 2, x_304); -x_279 = x_301; -x_280 = x_300; -goto block_294; +lean_object* x_207; lean_object* x_208; +x_207 = lean_ctor_get(x_204, 2); +lean_inc(x_205); +x_208 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_207, x_2, x_205); +lean_ctor_set(x_204, 2, x_208); +x_184 = x_205; +x_185 = x_204; +goto block_199; } else { -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_305 = lean_ctor_get(x_300, 0); -x_306 = lean_ctor_get(x_300, 1); -x_307 = lean_ctor_get(x_300, 2); -lean_inc(x_307); -lean_inc(x_306); -lean_inc(x_305); -lean_dec(x_300); -lean_inc(x_301); -x_308 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_307, x_2, x_301); -x_309 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_309, 0, x_305); -lean_ctor_set(x_309, 1, x_306); -lean_ctor_set(x_309, 2, x_308); -x_279 = x_301; -x_280 = x_309; -goto block_294; +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_209 = lean_ctor_get(x_204, 0); +x_210 = lean_ctor_get(x_204, 1); +x_211 = lean_ctor_get(x_204, 2); +lean_inc(x_211); +lean_inc(x_210); +lean_inc(x_209); +lean_dec(x_204); +lean_inc(x_205); +x_212 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_211, x_2, x_205); +x_213 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_213, 0, x_209); +lean_ctor_set(x_213, 1, x_210); +lean_ctor_set(x_213, 2, x_212); +x_184 = x_205; +x_185 = x_213; +goto block_199; } } else { -uint8_t x_310; +uint8_t x_214; lean_dec(x_3); lean_dec(x_2); -x_310 = !lean_is_exclusive(x_299); -if (x_310 == 0) +x_214 = !lean_is_exclusive(x_203); +if (x_214 == 0) { -return x_299; +return x_203; } else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; -x_311 = lean_ctor_get(x_299, 0); -x_312 = lean_ctor_get(x_299, 1); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_299); -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_311); -lean_ctor_set(x_313, 1, x_312); -return x_313; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_203, 0); +x_216 = lean_ctor_get(x_203, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_203); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; } } } else { -lean_object* x_314; +lean_object* x_218; lean_dec(x_2); -x_314 = lean_ctor_get(x_298, 0); -lean_inc(x_314); -lean_dec(x_298); -x_279 = x_314; -x_280 = x_4; -goto block_294; +x_218 = lean_ctor_get(x_202, 0); +lean_inc(x_218); +lean_dec(x_202); +x_184 = x_218; +x_185 = x_4; +goto block_199; } } +block_199: +{ +lean_object* x_186; lean_object* x_187; +x_186 = lean_unsigned_to_nat(0u); +x_187 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_186, x_3, x_185); +if (lean_obj_tag(x_187) == 0) +{ +uint8_t x_188; +x_188 = !lean_is_exclusive(x_187); +if (x_188 == 0) +{ +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_187, 0); +x_190 = l_Lean_mkAppRev(x_184, x_189); +lean_dec(x_189); +lean_ctor_set(x_187, 0, x_190); +return x_187; +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_191 = lean_ctor_get(x_187, 0); +x_192 = lean_ctor_get(x_187, 1); +lean_inc(x_192); +lean_inc(x_191); +lean_dec(x_187); +x_193 = l_Lean_mkAppRev(x_184, x_191); +lean_dec(x_191); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_192); +return x_194; +} } else { -lean_object* x_315; lean_object* x_316; -x_315 = lean_ctor_get(x_4, 2); -lean_inc(x_315); -x_316 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_315, x_2); -lean_dec(x_315); -if (lean_obj_tag(x_316) == 0) +uint8_t x_195; +lean_dec(x_184); +x_195 = !lean_is_exclusive(x_187); +if (x_195 == 0) { -lean_object* x_317; -lean_inc(x_2); -x_317 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_317) == 0) -{ -lean_object* x_318; lean_object* x_319; uint8_t x_320; -x_318 = lean_ctor_get(x_317, 1); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 0); -lean_inc(x_319); -lean_dec(x_317); -x_320 = !lean_is_exclusive(x_318); -if (x_320 == 0) -{ -lean_object* x_321; lean_object* x_322; -x_321 = lean_ctor_get(x_318, 2); -lean_inc(x_319); -x_322 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_321, x_2, x_319); -lean_ctor_set(x_318, 2, x_322); -x_279 = x_319; -x_280 = x_318; -goto block_294; +return x_187; } else { -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; -x_323 = lean_ctor_get(x_318, 0); -x_324 = lean_ctor_get(x_318, 1); -x_325 = lean_ctor_get(x_318, 2); -lean_inc(x_325); -lean_inc(x_324); -lean_inc(x_323); -lean_dec(x_318); -lean_inc(x_319); -x_326 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_325, x_2, x_319); -x_327 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_327, 0, x_323); -lean_ctor_set(x_327, 1, x_324); -lean_ctor_set(x_327, 2, x_326); -x_279 = x_319; -x_280 = x_327; -goto block_294; -} -} -else -{ -uint8_t x_328; -lean_dec(x_3); -lean_dec(x_2); -x_328 = !lean_is_exclusive(x_317); -if (x_328 == 0) -{ -return x_317; -} -else -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; -x_329 = lean_ctor_get(x_317, 0); -x_330 = lean_ctor_get(x_317, 1); -lean_inc(x_330); -lean_inc(x_329); -lean_dec(x_317); -x_331 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_331, 0, x_329); -lean_ctor_set(x_331, 1, x_330); -return x_331; -} -} -} -else -{ -lean_object* x_332; -lean_dec(x_2); -x_332 = lean_ctor_get(x_316, 0); -lean_inc(x_332); -lean_dec(x_316); -x_279 = x_332; -x_280 = x_4; -goto block_294; -} -} -block_294: -{ -lean_object* x_281; lean_object* x_282; -x_281 = lean_unsigned_to_nat(0u); -x_282 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_281, x_3, x_280); -if (lean_obj_tag(x_282) == 0) -{ -uint8_t x_283; -x_283 = !lean_is_exclusive(x_282); -if (x_283 == 0) -{ -lean_object* x_284; lean_object* x_285; -x_284 = lean_ctor_get(x_282, 0); -x_285 = l_Lean_mkAppRev(x_279, x_284); -lean_dec(x_284); -lean_ctor_set(x_282, 0, x_285); -return x_282; -} -else -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_286 = lean_ctor_get(x_282, 0); -x_287 = lean_ctor_get(x_282, 1); -lean_inc(x_287); -lean_inc(x_286); -lean_dec(x_282); -x_288 = l_Lean_mkAppRev(x_279, x_286); -lean_dec(x_286); -x_289 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_287); -return x_289; -} -} -else -{ -uint8_t x_290; -lean_dec(x_279); -x_290 = !lean_is_exclusive(x_282); -if (x_290 == 0) -{ -return x_282; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_282, 0); -x_292 = lean_ctor_get(x_282, 1); -lean_inc(x_292); -lean_inc(x_291); -lean_dec(x_282); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -return x_293; +lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_196 = lean_ctor_get(x_187, 0); +x_197 = lean_ctor_get(x_187, 1); +lean_inc(x_197); +lean_inc(x_196); +lean_dec(x_187); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_196); +lean_ctor_set(x_198, 1, x_197); +return x_198; } } } } case 7: { -lean_object* x_333; lean_object* x_334; uint8_t x_349; -x_349 = lean_expr_has_expr_mvar(x_2); -if (x_349 == 0) +lean_object* x_219; lean_object* x_220; uint8_t x_235; +x_235 = l_Lean_Expr_hasMVar(x_2); +if (x_235 == 0) { -uint8_t x_350; -x_350 = lean_expr_has_level_mvar(x_2); -if (x_350 == 0) -{ -x_333 = x_2; -x_334 = x_4; -goto block_348; +x_219 = x_2; +x_220 = x_4; +goto block_234; } else { -lean_object* x_351; lean_object* x_352; -x_351 = lean_ctor_get(x_4, 2); -lean_inc(x_351); -x_352 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_351, x_2); -lean_dec(x_351); -if (lean_obj_tag(x_352) == 0) +lean_object* x_236; lean_object* x_237; +x_236 = lean_ctor_get(x_4, 2); +lean_inc(x_236); +x_237 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_236, x_2); +lean_dec(x_236); +if (lean_obj_tag(x_237) == 0) { -lean_object* x_353; +lean_object* x_238; lean_inc(x_2); -x_353 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_353) == 0) +x_238 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_238) == 0) { -lean_object* x_354; lean_object* x_355; uint8_t x_356; -x_354 = lean_ctor_get(x_353, 1); -lean_inc(x_354); -x_355 = lean_ctor_get(x_353, 0); -lean_inc(x_355); -lean_dec(x_353); -x_356 = !lean_is_exclusive(x_354); -if (x_356 == 0) +lean_object* x_239; lean_object* x_240; uint8_t x_241; +x_239 = lean_ctor_get(x_238, 1); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 0); +lean_inc(x_240); +lean_dec(x_238); +x_241 = !lean_is_exclusive(x_239); +if (x_241 == 0) { -lean_object* x_357; lean_object* x_358; -x_357 = lean_ctor_get(x_354, 2); -lean_inc(x_355); -x_358 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_357, x_2, x_355); -lean_ctor_set(x_354, 2, x_358); -x_333 = x_355; -x_334 = x_354; -goto block_348; +lean_object* x_242; lean_object* x_243; +x_242 = lean_ctor_get(x_239, 2); +lean_inc(x_240); +x_243 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_242, x_2, x_240); +lean_ctor_set(x_239, 2, x_243); +x_219 = x_240; +x_220 = x_239; +goto block_234; } else { -lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_359 = lean_ctor_get(x_354, 0); -x_360 = lean_ctor_get(x_354, 1); -x_361 = lean_ctor_get(x_354, 2); -lean_inc(x_361); -lean_inc(x_360); -lean_inc(x_359); -lean_dec(x_354); -lean_inc(x_355); -x_362 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_361, x_2, x_355); -x_363 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_363, 0, x_359); -lean_ctor_set(x_363, 1, x_360); -lean_ctor_set(x_363, 2, x_362); -x_333 = x_355; -x_334 = x_363; -goto block_348; +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_244 = lean_ctor_get(x_239, 0); +x_245 = lean_ctor_get(x_239, 1); +x_246 = lean_ctor_get(x_239, 2); +lean_inc(x_246); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_239); +lean_inc(x_240); +x_247 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_246, x_2, x_240); +x_248 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_248, 0, x_244); +lean_ctor_set(x_248, 1, x_245); +lean_ctor_set(x_248, 2, x_247); +x_219 = x_240; +x_220 = x_248; +goto block_234; } } else { -uint8_t x_364; +uint8_t x_249; lean_dec(x_3); lean_dec(x_2); -x_364 = !lean_is_exclusive(x_353); -if (x_364 == 0) +x_249 = !lean_is_exclusive(x_238); +if (x_249 == 0) { -return x_353; +return x_238; } else { -lean_object* x_365; lean_object* x_366; lean_object* x_367; -x_365 = lean_ctor_get(x_353, 0); -x_366 = lean_ctor_get(x_353, 1); -lean_inc(x_366); -lean_inc(x_365); -lean_dec(x_353); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_365); -lean_ctor_set(x_367, 1, x_366); -return x_367; +lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_250 = lean_ctor_get(x_238, 0); +x_251 = lean_ctor_get(x_238, 1); +lean_inc(x_251); +lean_inc(x_250); +lean_dec(x_238); +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); +return x_252; } } } else { -lean_object* x_368; +lean_object* x_253; lean_dec(x_2); -x_368 = lean_ctor_get(x_352, 0); -lean_inc(x_368); -lean_dec(x_352); -x_333 = x_368; -x_334 = x_4; -goto block_348; +x_253 = lean_ctor_get(x_237, 0); +lean_inc(x_253); +lean_dec(x_237); +x_219 = x_253; +x_220 = x_4; +goto block_234; } } +block_234: +{ +lean_object* x_221; lean_object* x_222; +x_221 = lean_unsigned_to_nat(0u); +x_222 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_221, x_3, x_220); +if (lean_obj_tag(x_222) == 0) +{ +uint8_t x_223; +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; +x_224 = lean_ctor_get(x_222, 0); +x_225 = l_Lean_mkAppRev(x_219, x_224); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_225); +return x_222; +} +else +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_226 = lean_ctor_get(x_222, 0); +x_227 = lean_ctor_get(x_222, 1); +lean_inc(x_227); +lean_inc(x_226); +lean_dec(x_222); +x_228 = l_Lean_mkAppRev(x_219, x_226); +lean_dec(x_226); +x_229 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_227); +return x_229; +} } else { -lean_object* x_369; lean_object* x_370; -x_369 = lean_ctor_get(x_4, 2); -lean_inc(x_369); -x_370 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_369, x_2); -lean_dec(x_369); -if (lean_obj_tag(x_370) == 0) +uint8_t x_230; +lean_dec(x_219); +x_230 = !lean_is_exclusive(x_222); +if (x_230 == 0) { -lean_object* x_371; -lean_inc(x_2); -x_371 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_371) == 0) -{ -lean_object* x_372; lean_object* x_373; uint8_t x_374; -x_372 = lean_ctor_get(x_371, 1); -lean_inc(x_372); -x_373 = lean_ctor_get(x_371, 0); -lean_inc(x_373); -lean_dec(x_371); -x_374 = !lean_is_exclusive(x_372); -if (x_374 == 0) -{ -lean_object* x_375; lean_object* x_376; -x_375 = lean_ctor_get(x_372, 2); -lean_inc(x_373); -x_376 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_375, x_2, x_373); -lean_ctor_set(x_372, 2, x_376); -x_333 = x_373; -x_334 = x_372; -goto block_348; +return x_222; } else { -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; -x_377 = lean_ctor_get(x_372, 0); -x_378 = lean_ctor_get(x_372, 1); -x_379 = lean_ctor_get(x_372, 2); -lean_inc(x_379); -lean_inc(x_378); -lean_inc(x_377); -lean_dec(x_372); -lean_inc(x_373); -x_380 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_379, x_2, x_373); -x_381 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_381, 0, x_377); -lean_ctor_set(x_381, 1, x_378); -lean_ctor_set(x_381, 2, x_380); -x_333 = x_373; -x_334 = x_381; -goto block_348; -} -} -else -{ -uint8_t x_382; -lean_dec(x_3); -lean_dec(x_2); -x_382 = !lean_is_exclusive(x_371); -if (x_382 == 0) -{ -return x_371; -} -else -{ -lean_object* x_383; lean_object* x_384; lean_object* x_385; -x_383 = lean_ctor_get(x_371, 0); -x_384 = lean_ctor_get(x_371, 1); -lean_inc(x_384); -lean_inc(x_383); -lean_dec(x_371); -x_385 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_385, 0, x_383); -lean_ctor_set(x_385, 1, x_384); -return x_385; -} -} -} -else -{ -lean_object* x_386; -lean_dec(x_2); -x_386 = lean_ctor_get(x_370, 0); -lean_inc(x_386); -lean_dec(x_370); -x_333 = x_386; -x_334 = x_4; -goto block_348; -} -} -block_348: -{ -lean_object* x_335; lean_object* x_336; -x_335 = lean_unsigned_to_nat(0u); -x_336 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_335, x_3, x_334); -if (lean_obj_tag(x_336) == 0) -{ -uint8_t x_337; -x_337 = !lean_is_exclusive(x_336); -if (x_337 == 0) -{ -lean_object* x_338; lean_object* x_339; -x_338 = lean_ctor_get(x_336, 0); -x_339 = l_Lean_mkAppRev(x_333, x_338); -lean_dec(x_338); -lean_ctor_set(x_336, 0, x_339); -return x_336; -} -else -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_340 = lean_ctor_get(x_336, 0); -x_341 = lean_ctor_get(x_336, 1); -lean_inc(x_341); -lean_inc(x_340); -lean_dec(x_336); -x_342 = l_Lean_mkAppRev(x_333, x_340); -lean_dec(x_340); -x_343 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_341); -return x_343; -} -} -else -{ -uint8_t x_344; -lean_dec(x_333); -x_344 = !lean_is_exclusive(x_336); -if (x_344 == 0) -{ -return x_336; -} -else -{ -lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_345 = lean_ctor_get(x_336, 0); -x_346 = lean_ctor_get(x_336, 1); -lean_inc(x_346); -lean_inc(x_345); -lean_dec(x_336); -x_347 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_347, 0, x_345); -lean_ctor_set(x_347, 1, x_346); -return x_347; +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_222, 0); +x_232 = lean_ctor_get(x_222, 1); +lean_inc(x_232); +lean_inc(x_231); +lean_dec(x_222); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +return x_233; } } } } case 8: { -lean_object* x_387; lean_object* x_388; uint8_t x_403; -x_403 = lean_expr_has_expr_mvar(x_2); -if (x_403 == 0) +lean_object* x_254; lean_object* x_255; uint8_t x_270; +x_270 = l_Lean_Expr_hasMVar(x_2); +if (x_270 == 0) { -uint8_t x_404; -x_404 = lean_expr_has_level_mvar(x_2); -if (x_404 == 0) -{ -x_387 = x_2; -x_388 = x_4; -goto block_402; +x_254 = x_2; +x_255 = x_4; +goto block_269; } else { -lean_object* x_405; lean_object* x_406; -x_405 = lean_ctor_get(x_4, 2); -lean_inc(x_405); -x_406 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_405, x_2); -lean_dec(x_405); -if (lean_obj_tag(x_406) == 0) +lean_object* x_271; lean_object* x_272; +x_271 = lean_ctor_get(x_4, 2); +lean_inc(x_271); +x_272 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_271, x_2); +lean_dec(x_271); +if (lean_obj_tag(x_272) == 0) { -lean_object* x_407; +lean_object* x_273; lean_inc(x_2); -x_407 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_407) == 0) +x_273 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_273) == 0) { -lean_object* x_408; lean_object* x_409; uint8_t x_410; -x_408 = lean_ctor_get(x_407, 1); -lean_inc(x_408); -x_409 = lean_ctor_get(x_407, 0); -lean_inc(x_409); -lean_dec(x_407); -x_410 = !lean_is_exclusive(x_408); -if (x_410 == 0) +lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_274 = lean_ctor_get(x_273, 1); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 0); +lean_inc(x_275); +lean_dec(x_273); +x_276 = !lean_is_exclusive(x_274); +if (x_276 == 0) { -lean_object* x_411; lean_object* x_412; -x_411 = lean_ctor_get(x_408, 2); -lean_inc(x_409); -x_412 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_411, x_2, x_409); -lean_ctor_set(x_408, 2, x_412); -x_387 = x_409; -x_388 = x_408; -goto block_402; +lean_object* x_277; lean_object* x_278; +x_277 = lean_ctor_get(x_274, 2); +lean_inc(x_275); +x_278 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_277, x_2, x_275); +lean_ctor_set(x_274, 2, x_278); +x_254 = x_275; +x_255 = x_274; +goto block_269; } else { -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; -x_413 = lean_ctor_get(x_408, 0); -x_414 = lean_ctor_get(x_408, 1); -x_415 = lean_ctor_get(x_408, 2); -lean_inc(x_415); -lean_inc(x_414); -lean_inc(x_413); -lean_dec(x_408); -lean_inc(x_409); -x_416 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_415, x_2, x_409); -x_417 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_417, 0, x_413); -lean_ctor_set(x_417, 1, x_414); -lean_ctor_set(x_417, 2, x_416); -x_387 = x_409; -x_388 = x_417; -goto block_402; +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +x_279 = lean_ctor_get(x_274, 0); +x_280 = lean_ctor_get(x_274, 1); +x_281 = lean_ctor_get(x_274, 2); +lean_inc(x_281); +lean_inc(x_280); +lean_inc(x_279); +lean_dec(x_274); +lean_inc(x_275); +x_282 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_281, x_2, x_275); +x_283 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_283, 0, x_279); +lean_ctor_set(x_283, 1, x_280); +lean_ctor_set(x_283, 2, x_282); +x_254 = x_275; +x_255 = x_283; +goto block_269; } } else { -uint8_t x_418; +uint8_t x_284; lean_dec(x_3); lean_dec(x_2); -x_418 = !lean_is_exclusive(x_407); -if (x_418 == 0) +x_284 = !lean_is_exclusive(x_273); +if (x_284 == 0) { -return x_407; +return x_273; } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_419 = lean_ctor_get(x_407, 0); -x_420 = lean_ctor_get(x_407, 1); -lean_inc(x_420); -lean_inc(x_419); -lean_dec(x_407); -x_421 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_421, 0, x_419); -lean_ctor_set(x_421, 1, x_420); -return x_421; +lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_285 = lean_ctor_get(x_273, 0); +x_286 = lean_ctor_get(x_273, 1); +lean_inc(x_286); +lean_inc(x_285); +lean_dec(x_273); +x_287 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_287, 0, x_285); +lean_ctor_set(x_287, 1, x_286); +return x_287; } } } else { -lean_object* x_422; +lean_object* x_288; lean_dec(x_2); -x_422 = lean_ctor_get(x_406, 0); -lean_inc(x_422); -lean_dec(x_406); -x_387 = x_422; -x_388 = x_4; -goto block_402; +x_288 = lean_ctor_get(x_272, 0); +lean_inc(x_288); +lean_dec(x_272); +x_254 = x_288; +x_255 = x_4; +goto block_269; } } +block_269: +{ +lean_object* x_256; lean_object* x_257; +x_256 = lean_unsigned_to_nat(0u); +x_257 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_256, x_3, x_255); +if (lean_obj_tag(x_257) == 0) +{ +uint8_t x_258; +x_258 = !lean_is_exclusive(x_257); +if (x_258 == 0) +{ +lean_object* x_259; lean_object* x_260; +x_259 = lean_ctor_get(x_257, 0); +x_260 = l_Lean_mkAppRev(x_254, x_259); +lean_dec(x_259); +lean_ctor_set(x_257, 0, x_260); +return x_257; +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_261 = lean_ctor_get(x_257, 0); +x_262 = lean_ctor_get(x_257, 1); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_257); +x_263 = l_Lean_mkAppRev(x_254, x_261); +lean_dec(x_261); +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +return x_264; +} } else { -lean_object* x_423; lean_object* x_424; -x_423 = lean_ctor_get(x_4, 2); -lean_inc(x_423); -x_424 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_423, x_2); -lean_dec(x_423); -if (lean_obj_tag(x_424) == 0) +uint8_t x_265; +lean_dec(x_254); +x_265 = !lean_is_exclusive(x_257); +if (x_265 == 0) { -lean_object* x_425; -lean_inc(x_2); -x_425 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_425) == 0) -{ -lean_object* x_426; lean_object* x_427; uint8_t x_428; -x_426 = lean_ctor_get(x_425, 1); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 0); -lean_inc(x_427); -lean_dec(x_425); -x_428 = !lean_is_exclusive(x_426); -if (x_428 == 0) -{ -lean_object* x_429; lean_object* x_430; -x_429 = lean_ctor_get(x_426, 2); -lean_inc(x_427); -x_430 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_429, x_2, x_427); -lean_ctor_set(x_426, 2, x_430); -x_387 = x_427; -x_388 = x_426; -goto block_402; +return x_257; } else { -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; -x_431 = lean_ctor_get(x_426, 0); -x_432 = lean_ctor_get(x_426, 1); -x_433 = lean_ctor_get(x_426, 2); -lean_inc(x_433); -lean_inc(x_432); -lean_inc(x_431); -lean_dec(x_426); -lean_inc(x_427); -x_434 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_433, x_2, x_427); -x_435 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_435, 0, x_431); -lean_ctor_set(x_435, 1, x_432); -lean_ctor_set(x_435, 2, x_434); -x_387 = x_427; -x_388 = x_435; -goto block_402; -} -} -else -{ -uint8_t x_436; -lean_dec(x_3); -lean_dec(x_2); -x_436 = !lean_is_exclusive(x_425); -if (x_436 == 0) -{ -return x_425; -} -else -{ -lean_object* x_437; lean_object* x_438; lean_object* x_439; -x_437 = lean_ctor_get(x_425, 0); -x_438 = lean_ctor_get(x_425, 1); -lean_inc(x_438); -lean_inc(x_437); -lean_dec(x_425); -x_439 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_439, 0, x_437); -lean_ctor_set(x_439, 1, x_438); -return x_439; -} -} -} -else -{ -lean_object* x_440; -lean_dec(x_2); -x_440 = lean_ctor_get(x_424, 0); -lean_inc(x_440); -lean_dec(x_424); -x_387 = x_440; -x_388 = x_4; -goto block_402; -} -} -block_402: -{ -lean_object* x_389; lean_object* x_390; -x_389 = lean_unsigned_to_nat(0u); -x_390 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_389, x_3, x_388); -if (lean_obj_tag(x_390) == 0) -{ -uint8_t x_391; -x_391 = !lean_is_exclusive(x_390); -if (x_391 == 0) -{ -lean_object* x_392; lean_object* x_393; -x_392 = lean_ctor_get(x_390, 0); -x_393 = l_Lean_mkAppRev(x_387, x_392); -lean_dec(x_392); -lean_ctor_set(x_390, 0, x_393); -return x_390; -} -else -{ -lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_394 = lean_ctor_get(x_390, 0); -x_395 = lean_ctor_get(x_390, 1); -lean_inc(x_395); -lean_inc(x_394); -lean_dec(x_390); -x_396 = l_Lean_mkAppRev(x_387, x_394); -lean_dec(x_394); -x_397 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_397, 0, x_396); -lean_ctor_set(x_397, 1, x_395); -return x_397; -} -} -else -{ -uint8_t x_398; -lean_dec(x_387); -x_398 = !lean_is_exclusive(x_390); -if (x_398 == 0) -{ -return x_390; -} -else -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_399 = lean_ctor_get(x_390, 0); -x_400 = lean_ctor_get(x_390, 1); -lean_inc(x_400); -lean_inc(x_399); -lean_dec(x_390); -x_401 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_401, 0, x_399); -lean_ctor_set(x_401, 1, x_400); -return x_401; +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_257, 0); +x_267 = lean_ctor_get(x_257, 1); +lean_inc(x_267); +lean_inc(x_266); +lean_dec(x_257); +x_268 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_267); +return x_268; } } } } case 9: { -lean_object* x_441; lean_object* x_442; uint8_t x_457; -x_457 = lean_expr_has_expr_mvar(x_2); -if (x_457 == 0) +lean_object* x_289; lean_object* x_290; uint8_t x_305; +x_305 = l_Lean_Expr_hasMVar(x_2); +if (x_305 == 0) { -uint8_t x_458; -x_458 = lean_expr_has_level_mvar(x_2); -if (x_458 == 0) -{ -x_441 = x_2; -x_442 = x_4; -goto block_456; +x_289 = x_2; +x_290 = x_4; +goto block_304; } else { -lean_object* x_459; lean_object* x_460; -x_459 = lean_ctor_get(x_4, 2); -lean_inc(x_459); -x_460 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_459, x_2); -lean_dec(x_459); -if (lean_obj_tag(x_460) == 0) +lean_object* x_306; lean_object* x_307; +x_306 = lean_ctor_get(x_4, 2); +lean_inc(x_306); +x_307 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_306, x_2); +lean_dec(x_306); +if (lean_obj_tag(x_307) == 0) { -lean_object* x_461; +lean_object* x_308; lean_inc(x_2); -x_461 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_461) == 0) +x_308 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_308) == 0) { -lean_object* x_462; lean_object* x_463; uint8_t x_464; -x_462 = lean_ctor_get(x_461, 1); -lean_inc(x_462); -x_463 = lean_ctor_get(x_461, 0); -lean_inc(x_463); -lean_dec(x_461); -x_464 = !lean_is_exclusive(x_462); -if (x_464 == 0) +lean_object* x_309; lean_object* x_310; uint8_t x_311; +x_309 = lean_ctor_get(x_308, 1); +lean_inc(x_309); +x_310 = lean_ctor_get(x_308, 0); +lean_inc(x_310); +lean_dec(x_308); +x_311 = !lean_is_exclusive(x_309); +if (x_311 == 0) { -lean_object* x_465; lean_object* x_466; -x_465 = lean_ctor_get(x_462, 2); -lean_inc(x_463); -x_466 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_465, x_2, x_463); -lean_ctor_set(x_462, 2, x_466); -x_441 = x_463; -x_442 = x_462; -goto block_456; +lean_object* x_312; lean_object* x_313; +x_312 = lean_ctor_get(x_309, 2); +lean_inc(x_310); +x_313 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_312, x_2, x_310); +lean_ctor_set(x_309, 2, x_313); +x_289 = x_310; +x_290 = x_309; +goto block_304; } else { -lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; -x_467 = lean_ctor_get(x_462, 0); -x_468 = lean_ctor_get(x_462, 1); -x_469 = lean_ctor_get(x_462, 2); -lean_inc(x_469); -lean_inc(x_468); -lean_inc(x_467); -lean_dec(x_462); -lean_inc(x_463); -x_470 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_469, x_2, x_463); -x_471 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_471, 0, x_467); -lean_ctor_set(x_471, 1, x_468); -lean_ctor_set(x_471, 2, x_470); -x_441 = x_463; -x_442 = x_471; -goto block_456; +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +x_314 = lean_ctor_get(x_309, 0); +x_315 = lean_ctor_get(x_309, 1); +x_316 = lean_ctor_get(x_309, 2); +lean_inc(x_316); +lean_inc(x_315); +lean_inc(x_314); +lean_dec(x_309); +lean_inc(x_310); +x_317 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_316, x_2, x_310); +x_318 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_318, 0, x_314); +lean_ctor_set(x_318, 1, x_315); +lean_ctor_set(x_318, 2, x_317); +x_289 = x_310; +x_290 = x_318; +goto block_304; } } else { -uint8_t x_472; +uint8_t x_319; lean_dec(x_3); lean_dec(x_2); -x_472 = !lean_is_exclusive(x_461); -if (x_472 == 0) +x_319 = !lean_is_exclusive(x_308); +if (x_319 == 0) { -return x_461; +return x_308; } else { -lean_object* x_473; lean_object* x_474; lean_object* x_475; -x_473 = lean_ctor_get(x_461, 0); -x_474 = lean_ctor_get(x_461, 1); -lean_inc(x_474); -lean_inc(x_473); -lean_dec(x_461); -x_475 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_475, 0, x_473); -lean_ctor_set(x_475, 1, x_474); -return x_475; +lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_320 = lean_ctor_get(x_308, 0); +x_321 = lean_ctor_get(x_308, 1); +lean_inc(x_321); +lean_inc(x_320); +lean_dec(x_308); +x_322 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_321); +return x_322; } } } else { -lean_object* x_476; +lean_object* x_323; lean_dec(x_2); -x_476 = lean_ctor_get(x_460, 0); -lean_inc(x_476); -lean_dec(x_460); -x_441 = x_476; -x_442 = x_4; -goto block_456; +x_323 = lean_ctor_get(x_307, 0); +lean_inc(x_323); +lean_dec(x_307); +x_289 = x_323; +x_290 = x_4; +goto block_304; } } +block_304: +{ +lean_object* x_291; lean_object* x_292; +x_291 = lean_unsigned_to_nat(0u); +x_292 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_291, x_3, x_290); +if (lean_obj_tag(x_292) == 0) +{ +uint8_t x_293; +x_293 = !lean_is_exclusive(x_292); +if (x_293 == 0) +{ +lean_object* x_294; lean_object* x_295; +x_294 = lean_ctor_get(x_292, 0); +x_295 = l_Lean_mkAppRev(x_289, x_294); +lean_dec(x_294); +lean_ctor_set(x_292, 0, x_295); +return x_292; +} +else +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_296 = lean_ctor_get(x_292, 0); +x_297 = lean_ctor_get(x_292, 1); +lean_inc(x_297); +lean_inc(x_296); +lean_dec(x_292); +x_298 = l_Lean_mkAppRev(x_289, x_296); +lean_dec(x_296); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_297); +return x_299; +} } else { -lean_object* x_477; lean_object* x_478; -x_477 = lean_ctor_get(x_4, 2); -lean_inc(x_477); -x_478 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_477, x_2); -lean_dec(x_477); -if (lean_obj_tag(x_478) == 0) +uint8_t x_300; +lean_dec(x_289); +x_300 = !lean_is_exclusive(x_292); +if (x_300 == 0) { -lean_object* x_479; -lean_inc(x_2); -x_479 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_479) == 0) -{ -lean_object* x_480; lean_object* x_481; uint8_t x_482; -x_480 = lean_ctor_get(x_479, 1); -lean_inc(x_480); -x_481 = lean_ctor_get(x_479, 0); -lean_inc(x_481); -lean_dec(x_479); -x_482 = !lean_is_exclusive(x_480); -if (x_482 == 0) -{ -lean_object* x_483; lean_object* x_484; -x_483 = lean_ctor_get(x_480, 2); -lean_inc(x_481); -x_484 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_483, x_2, x_481); -lean_ctor_set(x_480, 2, x_484); -x_441 = x_481; -x_442 = x_480; -goto block_456; +return x_292; } else { -lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -x_485 = lean_ctor_get(x_480, 0); -x_486 = lean_ctor_get(x_480, 1); -x_487 = lean_ctor_get(x_480, 2); -lean_inc(x_487); -lean_inc(x_486); -lean_inc(x_485); -lean_dec(x_480); -lean_inc(x_481); -x_488 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_487, x_2, x_481); -x_489 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_489, 0, x_485); -lean_ctor_set(x_489, 1, x_486); -lean_ctor_set(x_489, 2, x_488); -x_441 = x_481; -x_442 = x_489; -goto block_456; -} -} -else -{ -uint8_t x_490; -lean_dec(x_3); -lean_dec(x_2); -x_490 = !lean_is_exclusive(x_479); -if (x_490 == 0) -{ -return x_479; -} -else -{ -lean_object* x_491; lean_object* x_492; lean_object* x_493; -x_491 = lean_ctor_get(x_479, 0); -x_492 = lean_ctor_get(x_479, 1); -lean_inc(x_492); -lean_inc(x_491); -lean_dec(x_479); -x_493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_493, 0, x_491); -lean_ctor_set(x_493, 1, x_492); -return x_493; -} -} -} -else -{ -lean_object* x_494; -lean_dec(x_2); -x_494 = lean_ctor_get(x_478, 0); -lean_inc(x_494); -lean_dec(x_478); -x_441 = x_494; -x_442 = x_4; -goto block_456; -} -} -block_456: -{ -lean_object* x_443; lean_object* x_444; -x_443 = lean_unsigned_to_nat(0u); -x_444 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_443, x_3, x_442); -if (lean_obj_tag(x_444) == 0) -{ -uint8_t x_445; -x_445 = !lean_is_exclusive(x_444); -if (x_445 == 0) -{ -lean_object* x_446; lean_object* x_447; -x_446 = lean_ctor_get(x_444, 0); -x_447 = l_Lean_mkAppRev(x_441, x_446); -lean_dec(x_446); -lean_ctor_set(x_444, 0, x_447); -return x_444; -} -else -{ -lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_448 = lean_ctor_get(x_444, 0); -x_449 = lean_ctor_get(x_444, 1); -lean_inc(x_449); -lean_inc(x_448); -lean_dec(x_444); -x_450 = l_Lean_mkAppRev(x_441, x_448); -lean_dec(x_448); -x_451 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_451, 0, x_450); -lean_ctor_set(x_451, 1, x_449); -return x_451; -} -} -else -{ -uint8_t x_452; -lean_dec(x_441); -x_452 = !lean_is_exclusive(x_444); -if (x_452 == 0) -{ -return x_444; -} -else -{ -lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_453 = lean_ctor_get(x_444, 0); -x_454 = lean_ctor_get(x_444, 1); -lean_inc(x_454); -lean_inc(x_453); -lean_dec(x_444); -x_455 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_455, 0, x_453); -lean_ctor_set(x_455, 1, x_454); -return x_455; +lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_301 = lean_ctor_get(x_292, 0); +x_302 = lean_ctor_get(x_292, 1); +lean_inc(x_302); +lean_inc(x_301); +lean_dec(x_292); +x_303 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_303, 0, x_301); +lean_ctor_set(x_303, 1, x_302); +return x_303; } } } } case 10: { -lean_object* x_495; lean_object* x_496; uint8_t x_511; -x_511 = lean_expr_has_expr_mvar(x_2); -if (x_511 == 0) +lean_object* x_324; lean_object* x_325; uint8_t x_340; +x_340 = l_Lean_Expr_hasMVar(x_2); +if (x_340 == 0) { -uint8_t x_512; -x_512 = lean_expr_has_level_mvar(x_2); -if (x_512 == 0) -{ -x_495 = x_2; -x_496 = x_4; -goto block_510; +x_324 = x_2; +x_325 = x_4; +goto block_339; } else { -lean_object* x_513; lean_object* x_514; -x_513 = lean_ctor_get(x_4, 2); -lean_inc(x_513); -x_514 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_513, x_2); -lean_dec(x_513); -if (lean_obj_tag(x_514) == 0) +lean_object* x_341; lean_object* x_342; +x_341 = lean_ctor_get(x_4, 2); +lean_inc(x_341); +x_342 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_341, x_2); +lean_dec(x_341); +if (lean_obj_tag(x_342) == 0) { -lean_object* x_515; +lean_object* x_343; lean_inc(x_2); -x_515 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_515) == 0) +x_343 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_343) == 0) { -lean_object* x_516; lean_object* x_517; uint8_t x_518; -x_516 = lean_ctor_get(x_515, 1); -lean_inc(x_516); -x_517 = lean_ctor_get(x_515, 0); -lean_inc(x_517); -lean_dec(x_515); -x_518 = !lean_is_exclusive(x_516); -if (x_518 == 0) +lean_object* x_344; lean_object* x_345; uint8_t x_346; +x_344 = lean_ctor_get(x_343, 1); +lean_inc(x_344); +x_345 = lean_ctor_get(x_343, 0); +lean_inc(x_345); +lean_dec(x_343); +x_346 = !lean_is_exclusive(x_344); +if (x_346 == 0) { -lean_object* x_519; lean_object* x_520; -x_519 = lean_ctor_get(x_516, 2); -lean_inc(x_517); -x_520 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_519, x_2, x_517); -lean_ctor_set(x_516, 2, x_520); -x_495 = x_517; -x_496 = x_516; -goto block_510; +lean_object* x_347; lean_object* x_348; +x_347 = lean_ctor_get(x_344, 2); +lean_inc(x_345); +x_348 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_347, x_2, x_345); +lean_ctor_set(x_344, 2, x_348); +x_324 = x_345; +x_325 = x_344; +goto block_339; } else { -lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; -x_521 = lean_ctor_get(x_516, 0); -x_522 = lean_ctor_get(x_516, 1); -x_523 = lean_ctor_get(x_516, 2); -lean_inc(x_523); -lean_inc(x_522); -lean_inc(x_521); -lean_dec(x_516); -lean_inc(x_517); -x_524 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_523, x_2, x_517); -x_525 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_525, 0, x_521); -lean_ctor_set(x_525, 1, x_522); -lean_ctor_set(x_525, 2, x_524); -x_495 = x_517; -x_496 = x_525; -goto block_510; +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_349 = lean_ctor_get(x_344, 0); +x_350 = lean_ctor_get(x_344, 1); +x_351 = lean_ctor_get(x_344, 2); +lean_inc(x_351); +lean_inc(x_350); +lean_inc(x_349); +lean_dec(x_344); +lean_inc(x_345); +x_352 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_351, x_2, x_345); +x_353 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_353, 0, x_349); +lean_ctor_set(x_353, 1, x_350); +lean_ctor_set(x_353, 2, x_352); +x_324 = x_345; +x_325 = x_353; +goto block_339; } } else { -uint8_t x_526; +uint8_t x_354; lean_dec(x_3); lean_dec(x_2); -x_526 = !lean_is_exclusive(x_515); -if (x_526 == 0) +x_354 = !lean_is_exclusive(x_343); +if (x_354 == 0) { -return x_515; +return x_343; } else { -lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_515, 0); -x_528 = lean_ctor_get(x_515, 1); -lean_inc(x_528); -lean_inc(x_527); -lean_dec(x_515); -x_529 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_529, 0, x_527); -lean_ctor_set(x_529, 1, x_528); -return x_529; +lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_355 = lean_ctor_get(x_343, 0); +x_356 = lean_ctor_get(x_343, 1); +lean_inc(x_356); +lean_inc(x_355); +lean_dec(x_343); +x_357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_357, 0, x_355); +lean_ctor_set(x_357, 1, x_356); +return x_357; } } } else { -lean_object* x_530; +lean_object* x_358; lean_dec(x_2); -x_530 = lean_ctor_get(x_514, 0); -lean_inc(x_530); -lean_dec(x_514); -x_495 = x_530; -x_496 = x_4; -goto block_510; +x_358 = lean_ctor_get(x_342, 0); +lean_inc(x_358); +lean_dec(x_342); +x_324 = x_358; +x_325 = x_4; +goto block_339; } } +block_339: +{ +lean_object* x_326; lean_object* x_327; +x_326 = lean_unsigned_to_nat(0u); +x_327 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_326, x_3, x_325); +if (lean_obj_tag(x_327) == 0) +{ +uint8_t x_328; +x_328 = !lean_is_exclusive(x_327); +if (x_328 == 0) +{ +lean_object* x_329; lean_object* x_330; +x_329 = lean_ctor_get(x_327, 0); +x_330 = l_Lean_mkAppRev(x_324, x_329); +lean_dec(x_329); +lean_ctor_set(x_327, 0, x_330); +return x_327; +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_331 = lean_ctor_get(x_327, 0); +x_332 = lean_ctor_get(x_327, 1); +lean_inc(x_332); +lean_inc(x_331); +lean_dec(x_327); +x_333 = l_Lean_mkAppRev(x_324, x_331); +lean_dec(x_331); +x_334 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +return x_334; +} } else { -lean_object* x_531; lean_object* x_532; -x_531 = lean_ctor_get(x_4, 2); -lean_inc(x_531); -x_532 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_531, x_2); -lean_dec(x_531); -if (lean_obj_tag(x_532) == 0) +uint8_t x_335; +lean_dec(x_324); +x_335 = !lean_is_exclusive(x_327); +if (x_335 == 0) { -lean_object* x_533; +return x_327; +} +else +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_336 = lean_ctor_get(x_327, 0); +x_337 = lean_ctor_get(x_327, 1); +lean_inc(x_337); +lean_inc(x_336); +lean_dec(x_327); +x_338 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_338, 0, x_336); +lean_ctor_set(x_338, 1, x_337); +return x_338; +} +} +} +} +case 11: +{ +lean_object* x_359; lean_object* x_360; uint8_t x_375; +x_375 = l_Lean_Expr_hasMVar(x_2); +if (x_375 == 0) +{ +x_359 = x_2; +x_360 = x_4; +goto block_374; +} +else +{ +lean_object* x_376; lean_object* x_377; +x_376 = lean_ctor_get(x_4, 2); +lean_inc(x_376); +x_377 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_376, x_2); +lean_dec(x_376); +if (lean_obj_tag(x_377) == 0) +{ +lean_object* x_378; lean_inc(x_2); -x_533 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_533) == 0) +x_378 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_378) == 0) { -lean_object* x_534; lean_object* x_535; uint8_t x_536; -x_534 = lean_ctor_get(x_533, 1); -lean_inc(x_534); -x_535 = lean_ctor_get(x_533, 0); -lean_inc(x_535); -lean_dec(x_533); -x_536 = !lean_is_exclusive(x_534); -if (x_536 == 0) +lean_object* x_379; lean_object* x_380; uint8_t x_381; +x_379 = lean_ctor_get(x_378, 1); +lean_inc(x_379); +x_380 = lean_ctor_get(x_378, 0); +lean_inc(x_380); +lean_dec(x_378); +x_381 = !lean_is_exclusive(x_379); +if (x_381 == 0) { -lean_object* x_537; lean_object* x_538; -x_537 = lean_ctor_get(x_534, 2); -lean_inc(x_535); -x_538 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_537, x_2, x_535); -lean_ctor_set(x_534, 2, x_538); -x_495 = x_535; -x_496 = x_534; -goto block_510; +lean_object* x_382; lean_object* x_383; +x_382 = lean_ctor_get(x_379, 2); +lean_inc(x_380); +x_383 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_382, x_2, x_380); +lean_ctor_set(x_379, 2, x_383); +x_359 = x_380; +x_360 = x_379; +goto block_374; } else { -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; -x_539 = lean_ctor_get(x_534, 0); -x_540 = lean_ctor_get(x_534, 1); -x_541 = lean_ctor_get(x_534, 2); -lean_inc(x_541); -lean_inc(x_540); -lean_inc(x_539); -lean_dec(x_534); -lean_inc(x_535); -x_542 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_541, x_2, x_535); -x_543 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_543, 0, x_539); -lean_ctor_set(x_543, 1, x_540); -lean_ctor_set(x_543, 2, x_542); -x_495 = x_535; -x_496 = x_543; -goto block_510; +lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; +x_384 = lean_ctor_get(x_379, 0); +x_385 = lean_ctor_get(x_379, 1); +x_386 = lean_ctor_get(x_379, 2); +lean_inc(x_386); +lean_inc(x_385); +lean_inc(x_384); +lean_dec(x_379); +lean_inc(x_380); +x_387 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_386, x_2, x_380); +x_388 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_388, 0, x_384); +lean_ctor_set(x_388, 1, x_385); +lean_ctor_set(x_388, 2, x_387); +x_359 = x_380; +x_360 = x_388; +goto block_374; } } else { -uint8_t x_544; +uint8_t x_389; lean_dec(x_3); lean_dec(x_2); -x_544 = !lean_is_exclusive(x_533); -if (x_544 == 0) +x_389 = !lean_is_exclusive(x_378); +if (x_389 == 0) { -return x_533; +return x_378; } else { -lean_object* x_545; lean_object* x_546; lean_object* x_547; -x_545 = lean_ctor_get(x_533, 0); -x_546 = lean_ctor_get(x_533, 1); -lean_inc(x_546); -lean_inc(x_545); -lean_dec(x_533); -x_547 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_547, 0, x_545); -lean_ctor_set(x_547, 1, x_546); -return x_547; +lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_390 = lean_ctor_get(x_378, 0); +x_391 = lean_ctor_get(x_378, 1); +lean_inc(x_391); +lean_inc(x_390); +lean_dec(x_378); +x_392 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_392, 0, x_390); +lean_ctor_set(x_392, 1, x_391); +return x_392; } } } else { -lean_object* x_548; +lean_object* x_393; lean_dec(x_2); -x_548 = lean_ctor_get(x_532, 0); -lean_inc(x_548); -lean_dec(x_532); -x_495 = x_548; -x_496 = x_4; -goto block_510; +x_393 = lean_ctor_get(x_377, 0); +lean_inc(x_393); +lean_dec(x_377); +x_359 = x_393; +x_360 = x_4; +goto block_374; } } -block_510: +block_374: { -lean_object* x_497; lean_object* x_498; -x_497 = lean_unsigned_to_nat(0u); -x_498 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_497, x_3, x_496); -if (lean_obj_tag(x_498) == 0) +lean_object* x_361; lean_object* x_362; +x_361 = lean_unsigned_to_nat(0u); +x_362 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_361, x_3, x_360); +if (lean_obj_tag(x_362) == 0) { -uint8_t x_499; -x_499 = !lean_is_exclusive(x_498); -if (x_499 == 0) +uint8_t x_363; +x_363 = !lean_is_exclusive(x_362); +if (x_363 == 0) { -lean_object* x_500; lean_object* x_501; -x_500 = lean_ctor_get(x_498, 0); -x_501 = l_Lean_mkAppRev(x_495, x_500); -lean_dec(x_500); -lean_ctor_set(x_498, 0, x_501); -return x_498; +lean_object* x_364; lean_object* x_365; +x_364 = lean_ctor_get(x_362, 0); +x_365 = l_Lean_mkAppRev(x_359, x_364); +lean_dec(x_364); +lean_ctor_set(x_362, 0, x_365); +return x_362; } else { -lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; -x_502 = lean_ctor_get(x_498, 0); -x_503 = lean_ctor_get(x_498, 1); -lean_inc(x_503); -lean_inc(x_502); -lean_dec(x_498); -x_504 = l_Lean_mkAppRev(x_495, x_502); -lean_dec(x_502); -x_505 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_505, 0, x_504); -lean_ctor_set(x_505, 1, x_503); -return x_505; +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +x_366 = lean_ctor_get(x_362, 0); +x_367 = lean_ctor_get(x_362, 1); +lean_inc(x_367); +lean_inc(x_366); +lean_dec(x_362); +x_368 = l_Lean_mkAppRev(x_359, x_366); +lean_dec(x_366); +x_369 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_367); +return x_369; } } else { -uint8_t x_506; -lean_dec(x_495); -x_506 = !lean_is_exclusive(x_498); -if (x_506 == 0) +uint8_t x_370; +lean_dec(x_359); +x_370 = !lean_is_exclusive(x_362); +if (x_370 == 0) { -return x_498; +return x_362; } else { -lean_object* x_507; lean_object* x_508; lean_object* x_509; -x_507 = lean_ctor_get(x_498, 0); -x_508 = lean_ctor_get(x_498, 1); -lean_inc(x_508); -lean_inc(x_507); -lean_dec(x_498); -x_509 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_509, 0, x_507); -lean_ctor_set(x_509, 1, x_508); -return x_509; +lean_object* x_371; lean_object* x_372; lean_object* x_373; +x_371 = lean_ctor_get(x_362, 0); +x_372 = lean_ctor_get(x_362, 1); +lean_inc(x_372); +lean_inc(x_371); +lean_dec(x_362); +x_373 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set(x_373, 1, x_372); +return x_373; } } } } default: { -lean_object* x_549; lean_object* x_550; uint8_t x_565; -x_565 = lean_expr_has_expr_mvar(x_2); -if (x_565 == 0) +lean_object* x_394; lean_object* x_395; uint8_t x_410; +x_410 = l_Lean_Expr_hasMVar(x_2); +if (x_410 == 0) { -uint8_t x_566; -x_566 = lean_expr_has_level_mvar(x_2); -if (x_566 == 0) -{ -x_549 = x_2; -x_550 = x_4; -goto block_564; +x_394 = x_2; +x_395 = x_4; +goto block_409; } else { -lean_object* x_567; lean_object* x_568; -x_567 = lean_ctor_get(x_4, 2); -lean_inc(x_567); -x_568 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_567, x_2); -lean_dec(x_567); -if (lean_obj_tag(x_568) == 0) +lean_object* x_411; lean_object* x_412; +x_411 = lean_ctor_get(x_4, 2); +lean_inc(x_411); +x_412 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_411, x_2); +lean_dec(x_411); +if (lean_obj_tag(x_412) == 0) { -lean_object* x_569; +lean_object* x_413; lean_inc(x_2); -x_569 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_569) == 0) +x_413 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); +if (lean_obj_tag(x_413) == 0) { -lean_object* x_570; lean_object* x_571; uint8_t x_572; -x_570 = lean_ctor_get(x_569, 1); -lean_inc(x_570); -x_571 = lean_ctor_get(x_569, 0); -lean_inc(x_571); -lean_dec(x_569); -x_572 = !lean_is_exclusive(x_570); -if (x_572 == 0) +lean_object* x_414; lean_object* x_415; uint8_t x_416; +x_414 = lean_ctor_get(x_413, 1); +lean_inc(x_414); +x_415 = lean_ctor_get(x_413, 0); +lean_inc(x_415); +lean_dec(x_413); +x_416 = !lean_is_exclusive(x_414); +if (x_416 == 0) { -lean_object* x_573; lean_object* x_574; -x_573 = lean_ctor_get(x_570, 2); -lean_inc(x_571); -x_574 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_573, x_2, x_571); -lean_ctor_set(x_570, 2, x_574); -x_549 = x_571; -x_550 = x_570; -goto block_564; +lean_object* x_417; lean_object* x_418; +x_417 = lean_ctor_get(x_414, 2); +lean_inc(x_415); +x_418 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_417, x_2, x_415); +lean_ctor_set(x_414, 2, x_418); +x_394 = x_415; +x_395 = x_414; +goto block_409; } else { -lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; -x_575 = lean_ctor_get(x_570, 0); -x_576 = lean_ctor_get(x_570, 1); -x_577 = lean_ctor_get(x_570, 2); -lean_inc(x_577); -lean_inc(x_576); -lean_inc(x_575); -lean_dec(x_570); -lean_inc(x_571); -x_578 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_577, x_2, x_571); -x_579 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_579, 0, x_575); -lean_ctor_set(x_579, 1, x_576); -lean_ctor_set(x_579, 2, x_578); -x_549 = x_571; -x_550 = x_579; -goto block_564; +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; +x_419 = lean_ctor_get(x_414, 0); +x_420 = lean_ctor_get(x_414, 1); +x_421 = lean_ctor_get(x_414, 2); +lean_inc(x_421); +lean_inc(x_420); +lean_inc(x_419); +lean_dec(x_414); +lean_inc(x_415); +x_422 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_421, x_2, x_415); +x_423 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_423, 0, x_419); +lean_ctor_set(x_423, 1, x_420); +lean_ctor_set(x_423, 2, x_422); +x_394 = x_415; +x_395 = x_423; +goto block_409; } } else { -uint8_t x_580; +uint8_t x_424; lean_dec(x_3); lean_dec(x_2); -x_580 = !lean_is_exclusive(x_569); -if (x_580 == 0) +x_424 = !lean_is_exclusive(x_413); +if (x_424 == 0) { -return x_569; +return x_413; } else { -lean_object* x_581; lean_object* x_582; lean_object* x_583; -x_581 = lean_ctor_get(x_569, 0); -x_582 = lean_ctor_get(x_569, 1); -lean_inc(x_582); -lean_inc(x_581); -lean_dec(x_569); -x_583 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_583, 0, x_581); -lean_ctor_set(x_583, 1, x_582); -return x_583; +lean_object* x_425; lean_object* x_426; lean_object* x_427; +x_425 = lean_ctor_get(x_413, 0); +x_426 = lean_ctor_get(x_413, 1); +lean_inc(x_426); +lean_inc(x_425); +lean_dec(x_413); +x_427 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_427, 0, x_425); +lean_ctor_set(x_427, 1, x_426); +return x_427; } } } else { -lean_object* x_584; +lean_object* x_428; lean_dec(x_2); -x_584 = lean_ctor_get(x_568, 0); -lean_inc(x_584); -lean_dec(x_568); -x_549 = x_584; -x_550 = x_4; -goto block_564; +x_428 = lean_ctor_get(x_412, 0); +lean_inc(x_428); +lean_dec(x_412); +x_394 = x_428; +x_395 = x_4; +goto block_409; } } +block_409: +{ +lean_object* x_396; lean_object* x_397; +x_396 = lean_unsigned_to_nat(0u); +x_397 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_396, x_3, x_395); +if (lean_obj_tag(x_397) == 0) +{ +uint8_t x_398; +x_398 = !lean_is_exclusive(x_397); +if (x_398 == 0) +{ +lean_object* x_399; lean_object* x_400; +x_399 = lean_ctor_get(x_397, 0); +x_400 = l_Lean_mkAppRev(x_394, x_399); +lean_dec(x_399); +lean_ctor_set(x_397, 0, x_400); +return x_397; +} +else +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_401 = lean_ctor_get(x_397, 0); +x_402 = lean_ctor_get(x_397, 1); +lean_inc(x_402); +lean_inc(x_401); +lean_dec(x_397); +x_403 = l_Lean_mkAppRev(x_394, x_401); +lean_dec(x_401); +x_404 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_404, 0, x_403); +lean_ctor_set(x_404, 1, x_402); +return x_404; +} } else { -lean_object* x_585; lean_object* x_586; -x_585 = lean_ctor_get(x_4, 2); -lean_inc(x_585); -x_586 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_585, x_2); -lean_dec(x_585); -if (lean_obj_tag(x_586) == 0) +uint8_t x_405; +lean_dec(x_394); +x_405 = !lean_is_exclusive(x_397); +if (x_405 == 0) { -lean_object* x_587; -lean_inc(x_2); -x_587 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_4); -if (lean_obj_tag(x_587) == 0) -{ -lean_object* x_588; lean_object* x_589; uint8_t x_590; -x_588 = lean_ctor_get(x_587, 1); -lean_inc(x_588); -x_589 = lean_ctor_get(x_587, 0); -lean_inc(x_589); -lean_dec(x_587); -x_590 = !lean_is_exclusive(x_588); -if (x_590 == 0) -{ -lean_object* x_591; lean_object* x_592; -x_591 = lean_ctor_get(x_588, 2); -lean_inc(x_589); -x_592 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_591, x_2, x_589); -lean_ctor_set(x_588, 2, x_592); -x_549 = x_589; -x_550 = x_588; -goto block_564; +return x_397; } else { -lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; -x_593 = lean_ctor_get(x_588, 0); -x_594 = lean_ctor_get(x_588, 1); -x_595 = lean_ctor_get(x_588, 2); -lean_inc(x_595); -lean_inc(x_594); -lean_inc(x_593); -lean_dec(x_588); -lean_inc(x_589); -x_596 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_595, x_2, x_589); -x_597 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_597, 0, x_593); -lean_ctor_set(x_597, 1, x_594); -lean_ctor_set(x_597, 2, x_596); -x_549 = x_589; -x_550 = x_597; -goto block_564; -} -} -else -{ -uint8_t x_598; -lean_dec(x_3); -lean_dec(x_2); -x_598 = !lean_is_exclusive(x_587); -if (x_598 == 0) -{ -return x_587; -} -else -{ -lean_object* x_599; lean_object* x_600; lean_object* x_601; -x_599 = lean_ctor_get(x_587, 0); -x_600 = lean_ctor_get(x_587, 1); -lean_inc(x_600); -lean_inc(x_599); -lean_dec(x_587); -x_601 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_601, 0, x_599); -lean_ctor_set(x_601, 1, x_600); -return x_601; -} -} -} -else -{ -lean_object* x_602; -lean_dec(x_2); -x_602 = lean_ctor_get(x_586, 0); -lean_inc(x_602); -lean_dec(x_586); -x_549 = x_602; -x_550 = x_4; -goto block_564; -} -} -block_564: -{ -lean_object* x_551; lean_object* x_552; -x_551 = lean_unsigned_to_nat(0u); -x_552 = l_Array_umapMAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__3(x_1, x_551, x_3, x_550); -if (lean_obj_tag(x_552) == 0) -{ -uint8_t x_553; -x_553 = !lean_is_exclusive(x_552); -if (x_553 == 0) -{ -lean_object* x_554; lean_object* x_555; -x_554 = lean_ctor_get(x_552, 0); -x_555 = l_Lean_mkAppRev(x_549, x_554); -lean_dec(x_554); -lean_ctor_set(x_552, 0, x_555); -return x_552; -} -else -{ -lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_556 = lean_ctor_get(x_552, 0); -x_557 = lean_ctor_get(x_552, 1); -lean_inc(x_557); -lean_inc(x_556); -lean_dec(x_552); -x_558 = l_Lean_mkAppRev(x_549, x_556); -lean_dec(x_556); -x_559 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_557); -return x_559; -} -} -else -{ -uint8_t x_560; -lean_dec(x_549); -x_560 = !lean_is_exclusive(x_552); -if (x_560 == 0) -{ -return x_552; -} -else -{ -lean_object* x_561; lean_object* x_562; lean_object* x_563; -x_561 = lean_ctor_get(x_552, 0); -x_562 = lean_ctor_get(x_552, 1); -lean_inc(x_562); -lean_inc(x_561); -lean_dec(x_552); -x_563 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_563, 0, x_561); -lean_ctor_set(x_563, 1, x_562); -return x_563; +lean_object* x_406; lean_object* x_407; lean_object* x_408; +x_406 = lean_ctor_get(x_397, 0); +x_407 = lean_ctor_get(x_397, 1); +lean_inc(x_407); +lean_inc(x_406); +lean_dec(x_397); +x_408 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_408, 0, x_406); +lean_ctor_set(x_408, 1, x_407); +return x_408; } } } @@ -37732,7 +28845,7 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; x_48 = lean_ctor_get(x_46, 0); x_49 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_50 = lean_expr_mk_mvar(x_48); +x_50 = l_Lean_mkMVar(x_48); lean_inc(x_27); x_51 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_20__mkMVarApp___spec__1(x_27, x_38, x_38, x_30, x_50); if (x_45 == 0) @@ -37818,7 +28931,7 @@ lean_inc(x_69); lean_inc(x_68); lean_dec(x_46); lean_inc(x_68); -x_70 = lean_expr_mk_mvar(x_68); +x_70 = l_Lean_mkMVar(x_68); lean_inc(x_27); x_71 = l_Array_iterateMAux___main___at___private_Init_Lean_MetavarContext_20__mkMVarApp___spec__1(x_27, x_38, x_38, x_30, x_70); if (x_45 == 0) @@ -37947,1767 +29060,963 @@ lean_dec(x_2); x_91 = lean_ctor_get(x_25, 0); lean_inc(x_91); lean_dec(x_25); -x_92 = lean_expr_has_expr_mvar(x_91); +x_92 = l_Lean_Expr_hasMVar(x_91); if (x_92 == 0) { -uint8_t x_93; -x_93 = lean_expr_has_level_mvar(x_91); -if (x_93 == 0) +lean_object* x_93; +lean_dec(x_24); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_3); +return x_93; +} +else { lean_object* x_94; +x_94 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_24, x_91); lean_dec(x_24); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_3); -return x_94; -} -else +if (lean_obj_tag(x_94) == 0) { lean_object* x_95; -x_95 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_24, x_91); -lean_dec(x_24); +lean_inc(x_91); +x_95 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_91, x_3); if (lean_obj_tag(x_95) == 0) { -lean_object* x_96; -lean_inc(x_91); -x_96 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_91, x_3); -if (lean_obj_tag(x_96) == 0) +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) { -uint8_t x_97; -x_97 = !lean_is_exclusive(x_96); -if (x_97 == 0) +lean_object* x_97; uint8_t x_98; +x_97 = lean_ctor_get(x_95, 1); +x_98 = !lean_is_exclusive(x_97); +if (x_98 == 0) { -lean_object* x_98; uint8_t x_99; -x_98 = lean_ctor_get(x_96, 1); -x_99 = !lean_is_exclusive(x_98); -if (x_99 == 0) -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_96, 0); -x_101 = lean_ctor_get(x_98, 2); -lean_inc(x_100); -x_102 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_101, x_91, x_100); -lean_ctor_set(x_98, 2, x_102); -return x_96; +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_95, 0); +x_100 = lean_ctor_get(x_97, 2); +lean_inc(x_99); +x_101 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_100, x_91, x_99); +lean_ctor_set(x_97, 2, x_101); +return x_95; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_103 = lean_ctor_get(x_96, 0); -x_104 = lean_ctor_get(x_98, 0); -x_105 = lean_ctor_get(x_98, 1); -x_106 = lean_ctor_get(x_98, 2); -lean_inc(x_106); +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_102 = lean_ctor_get(x_95, 0); +x_103 = lean_ctor_get(x_97, 0); +x_104 = lean_ctor_get(x_97, 1); +x_105 = lean_ctor_get(x_97, 2); lean_inc(x_105); lean_inc(x_104); -lean_dec(x_98); lean_inc(x_103); -x_107 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_106, x_91, x_103); -x_108 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_108, 0, x_104); -lean_ctor_set(x_108, 1, x_105); -lean_ctor_set(x_108, 2, x_107); -lean_ctor_set(x_96, 1, x_108); -return x_96; +lean_dec(x_97); +lean_inc(x_102); +x_106 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_105, x_91, x_102); +x_107 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_107, 0, x_103); +lean_ctor_set(x_107, 1, x_104); +lean_ctor_set(x_107, 2, x_106); +lean_ctor_set(x_95, 1, x_107); +return x_95; } } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_109 = lean_ctor_get(x_96, 1); -x_110 = lean_ctor_get(x_96, 0); +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; lean_object* x_115; lean_object* x_116; +x_108 = lean_ctor_get(x_95, 1); +x_109 = lean_ctor_get(x_95, 0); +lean_inc(x_108); lean_inc(x_109); -lean_inc(x_110); -lean_dec(x_96); -x_111 = lean_ctor_get(x_109, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -x_113 = lean_ctor_get(x_109, 2); -lean_inc(x_113); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - lean_ctor_release(x_109, 2); - x_114 = x_109; -} else { - lean_dec_ref(x_109); - x_114 = lean_box(0); -} -lean_inc(x_110); -x_115 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_113, x_91, x_110); -if (lean_is_scalar(x_114)) { - x_116 = lean_alloc_ctor(0, 3, 0); -} else { - x_116 = x_114; -} -lean_ctor_set(x_116, 0, x_111); -lean_ctor_set(x_116, 1, x_112); -lean_ctor_set(x_116, 2, x_115); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_110); -lean_ctor_set(x_117, 1, x_116); -return x_117; -} -} -else -{ -uint8_t x_118; -lean_dec(x_91); -x_118 = !lean_is_exclusive(x_96); -if (x_118 == 0) -{ -return x_96; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_96, 0); -x_120 = lean_ctor_get(x_96, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_96); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -return x_121; -} -} -} -else -{ -lean_object* x_122; lean_object* x_123; -lean_dec(x_91); -x_122 = lean_ctor_get(x_95, 0); -lean_inc(x_122); lean_dec(x_95); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_3); -return x_123; -} -} -} -else -{ -lean_object* x_124; -x_124 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_24, x_91); -lean_dec(x_24); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; -lean_inc(x_91); -x_125 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_91, x_3); -if (lean_obj_tag(x_125) == 0) -{ -uint8_t x_126; -x_126 = !lean_is_exclusive(x_125); -if (x_126 == 0) -{ -lean_object* x_127; uint8_t x_128; -x_127 = lean_ctor_get(x_125, 1); -x_128 = !lean_is_exclusive(x_127); -if (x_128 == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_125, 0); -x_130 = lean_ctor_get(x_127, 2); -lean_inc(x_129); -x_131 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_130, x_91, x_129); -lean_ctor_set(x_127, 2, x_131); -return x_125; -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_132 = lean_ctor_get(x_125, 0); -x_133 = lean_ctor_get(x_127, 0); -x_134 = lean_ctor_get(x_127, 1); -x_135 = lean_ctor_get(x_127, 2); -lean_inc(x_135); -lean_inc(x_134); -lean_inc(x_133); -lean_dec(x_127); -lean_inc(x_132); -x_136 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_135, x_91, x_132); -x_137 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_137, 0, x_133); -lean_ctor_set(x_137, 1, x_134); -lean_ctor_set(x_137, 2, x_136); -lean_ctor_set(x_125, 1, x_137); -return x_125; -} -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_138 = lean_ctor_get(x_125, 1); -x_139 = lean_ctor_get(x_125, 0); -lean_inc(x_138); -lean_inc(x_139); -lean_dec(x_125); -x_140 = lean_ctor_get(x_138, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -x_142 = lean_ctor_get(x_138, 2); -lean_inc(x_142); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - lean_ctor_release(x_138, 2); - x_143 = x_138; +x_110 = lean_ctor_get(x_108, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +x_112 = lean_ctor_get(x_108, 2); +lean_inc(x_112); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + lean_ctor_release(x_108, 2); + x_113 = x_108; } else { - lean_dec_ref(x_138); - x_143 = lean_box(0); + lean_dec_ref(x_108); + x_113 = lean_box(0); } -lean_inc(x_139); -x_144 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_142, x_91, x_139); -if (lean_is_scalar(x_143)) { - x_145 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_109); +x_114 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_112, x_91, x_109); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 3, 0); } else { - x_145 = x_143; + x_115 = x_113; } -lean_ctor_set(x_145, 0, x_140); -lean_ctor_set(x_145, 1, x_141); -lean_ctor_set(x_145, 2, x_144); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_139); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_ctor_set(x_115, 0, x_110); +lean_ctor_set(x_115, 1, x_111); +lean_ctor_set(x_115, 2, x_114); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_109); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } else { -uint8_t x_147; +uint8_t x_117; lean_dec(x_91); -x_147 = !lean_is_exclusive(x_125); -if (x_147 == 0) +x_117 = !lean_is_exclusive(x_95); +if (x_117 == 0) { -return x_125; +return x_95; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_125, 0); -x_149 = lean_ctor_get(x_125, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_125); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -return x_150; +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_95, 0); +x_119 = lean_ctor_get(x_95, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_95); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } } else { -lean_object* x_151; lean_object* x_152; +lean_object* x_121; lean_object* x_122; lean_dec(x_91); -x_151 = lean_ctor_get(x_124, 0); -lean_inc(x_151); -lean_dec(x_124); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_3); -return x_152; +x_121 = lean_ctor_get(x_94, 0); +lean_inc(x_121); +lean_dec(x_94); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_3); +return x_122; } } } } case 5: { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_153 = lean_unsigned_to_nat(0u); -x_154 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_153); -x_155 = lean_mk_empty_array_with_capacity(x_154); -lean_dec(x_154); -x_156 = l___private_Init_Lean_Expr_6__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(x_1, x_2, x_155, x_3); -return x_156; +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_unsigned_to_nat(0u); +x_124 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_123); +x_125 = lean_mk_empty_array_with_capacity(x_124); +lean_dec(x_124); +x_126 = l___private_Init_Lean_Expr_5__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(x_1, x_2, x_125, x_3); +return x_126; } case 6: { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_210; -x_157 = lean_ctor_get(x_2, 1); -lean_inc(x_157); -x_158 = lean_ctor_get(x_2, 2); -lean_inc(x_158); -x_210 = lean_expr_has_expr_mvar(x_157); -if (x_210 == 0) +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_162; +x_127 = lean_ctor_get(x_2, 1); +lean_inc(x_127); +x_128 = lean_ctor_get(x_2, 2); +lean_inc(x_128); +x_162 = l_Lean_Expr_hasMVar(x_127); +if (x_162 == 0) { -uint8_t x_211; -x_211 = lean_expr_has_level_mvar(x_157); -if (x_211 == 0) -{ -x_159 = x_157; -x_160 = x_3; -goto block_209; +x_129 = x_127; +x_130 = x_3; +goto block_161; } else { -lean_object* x_212; lean_object* x_213; -x_212 = lean_ctor_get(x_3, 2); -lean_inc(x_212); -x_213 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_212, x_157); -lean_dec(x_212); -if (lean_obj_tag(x_213) == 0) +lean_object* x_163; lean_object* x_164; +x_163 = lean_ctor_get(x_3, 2); +lean_inc(x_163); +x_164 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_163, x_127); +lean_dec(x_163); +if (lean_obj_tag(x_164) == 0) { -lean_object* x_214; -lean_inc(x_157); -x_214 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_157, x_3); -if (lean_obj_tag(x_214) == 0) +lean_object* x_165; +lean_inc(x_127); +x_165 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_127, x_3); +if (lean_obj_tag(x_165) == 0) { -lean_object* x_215; lean_object* x_216; uint8_t x_217; -x_215 = lean_ctor_get(x_214, 1); -lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 0); -lean_inc(x_216); -lean_dec(x_214); -x_217 = !lean_is_exclusive(x_215); -if (x_217 == 0) +lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 0); +lean_inc(x_167); +lean_dec(x_165); +x_168 = !lean_is_exclusive(x_166); +if (x_168 == 0) { -lean_object* x_218; lean_object* x_219; -x_218 = lean_ctor_get(x_215, 2); -lean_inc(x_216); -x_219 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_218, x_157, x_216); -lean_ctor_set(x_215, 2, x_219); -x_159 = x_216; -x_160 = x_215; -goto block_209; +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_166, 2); +lean_inc(x_167); +x_170 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_169, x_127, x_167); +lean_ctor_set(x_166, 2, x_170); +x_129 = x_167; +x_130 = x_166; +goto block_161; } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_220 = lean_ctor_get(x_215, 0); -x_221 = lean_ctor_get(x_215, 1); -x_222 = lean_ctor_get(x_215, 2); -lean_inc(x_222); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_215); -lean_inc(x_216); -x_223 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_222, x_157, x_216); -x_224 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_224, 0, x_220); -lean_ctor_set(x_224, 1, x_221); -lean_ctor_set(x_224, 2, x_223); -x_159 = x_216; -x_160 = x_224; -goto block_209; -} -} -else -{ -uint8_t x_225; -lean_dec(x_158); -lean_dec(x_157); -lean_dec(x_2); -x_225 = !lean_is_exclusive(x_214); -if (x_225 == 0) -{ -return x_214; -} -else -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_214, 0); -x_227 = lean_ctor_get(x_214, 1); -lean_inc(x_227); -lean_inc(x_226); -lean_dec(x_214); -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -return x_228; -} -} -} -else -{ -lean_object* x_229; -lean_dec(x_157); -x_229 = lean_ctor_get(x_213, 0); -lean_inc(x_229); -lean_dec(x_213); -x_159 = x_229; -x_160 = x_3; -goto block_209; -} -} -} -else -{ -lean_object* x_230; lean_object* x_231; -x_230 = lean_ctor_get(x_3, 2); -lean_inc(x_230); -x_231 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_230, x_157); -lean_dec(x_230); -if (lean_obj_tag(x_231) == 0) -{ -lean_object* x_232; -lean_inc(x_157); -x_232 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_157, x_3); -if (lean_obj_tag(x_232) == 0) -{ -lean_object* x_233; lean_object* x_234; uint8_t x_235; -x_233 = lean_ctor_get(x_232, 1); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 0); -lean_inc(x_234); -lean_dec(x_232); -x_235 = !lean_is_exclusive(x_233); -if (x_235 == 0) -{ -lean_object* x_236; lean_object* x_237; -x_236 = lean_ctor_get(x_233, 2); -lean_inc(x_234); -x_237 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_236, x_157, x_234); -lean_ctor_set(x_233, 2, x_237); -x_159 = x_234; -x_160 = x_233; -goto block_209; -} -else -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_238 = lean_ctor_get(x_233, 0); -x_239 = lean_ctor_get(x_233, 1); -x_240 = lean_ctor_get(x_233, 2); -lean_inc(x_240); -lean_inc(x_239); -lean_inc(x_238); -lean_dec(x_233); -lean_inc(x_234); -x_241 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_240, x_157, x_234); -x_242 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_242, 0, x_238); -lean_ctor_set(x_242, 1, x_239); -lean_ctor_set(x_242, 2, x_241); -x_159 = x_234; -x_160 = x_242; -goto block_209; -} -} -else -{ -uint8_t x_243; -lean_dec(x_158); -lean_dec(x_157); -lean_dec(x_2); -x_243 = !lean_is_exclusive(x_232); -if (x_243 == 0) -{ -return x_232; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_232, 0); -x_245 = lean_ctor_get(x_232, 1); -lean_inc(x_245); -lean_inc(x_244); -lean_dec(x_232); -x_246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_246, 0, x_244); -lean_ctor_set(x_246, 1, x_245); -return x_246; -} -} -} -else -{ -lean_object* x_247; -lean_dec(x_157); -x_247 = lean_ctor_get(x_231, 0); -lean_inc(x_247); -lean_dec(x_231); -x_159 = x_247; -x_160 = x_3; -goto block_209; -} -} -block_209: -{ -lean_object* x_161; lean_object* x_162; uint8_t x_171; -x_171 = lean_expr_has_expr_mvar(x_158); -if (x_171 == 0) -{ -uint8_t x_172; -x_172 = lean_expr_has_level_mvar(x_158); -if (x_172 == 0) -{ -x_161 = x_158; -x_162 = x_160; -goto block_170; -} -else -{ -lean_object* x_173; lean_object* x_174; -x_173 = lean_ctor_get(x_160, 2); +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_171 = lean_ctor_get(x_166, 0); +x_172 = lean_ctor_get(x_166, 1); +x_173 = lean_ctor_get(x_166, 2); lean_inc(x_173); -x_174 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_173, x_158); -lean_dec(x_173); -if (lean_obj_tag(x_174) == 0) -{ -lean_object* x_175; -lean_inc(x_158); -x_175 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_158, x_160); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; uint8_t x_178; -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -x_177 = lean_ctor_get(x_175, 0); -lean_inc(x_177); -lean_dec(x_175); -x_178 = !lean_is_exclusive(x_176); -if (x_178 == 0) -{ -lean_object* x_179; lean_object* x_180; -x_179 = lean_ctor_get(x_176, 2); -lean_inc(x_177); -x_180 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_179, x_158, x_177); -lean_ctor_set(x_176, 2, x_180); -x_161 = x_177; -x_162 = x_176; -goto block_170; -} -else -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_181 = lean_ctor_get(x_176, 0); -x_182 = lean_ctor_get(x_176, 1); -x_183 = lean_ctor_get(x_176, 2); -lean_inc(x_183); -lean_inc(x_182); -lean_inc(x_181); -lean_dec(x_176); -lean_inc(x_177); -x_184 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_183, x_158, x_177); -x_185 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_185, 0, x_181); -lean_ctor_set(x_185, 1, x_182); -lean_ctor_set(x_185, 2, x_184); -x_161 = x_177; -x_162 = x_185; -goto block_170; +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_166); +lean_inc(x_167); +x_174 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_173, x_127, x_167); +x_175 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_175, 0, x_171); +lean_ctor_set(x_175, 1, x_172); +lean_ctor_set(x_175, 2, x_174); +x_129 = x_167; +x_130 = x_175; +goto block_161; } } else { -uint8_t x_186; -lean_dec(x_159); -lean_dec(x_158); +uint8_t x_176; +lean_dec(x_128); +lean_dec(x_127); lean_dec(x_2); -x_186 = !lean_is_exclusive(x_175); -if (x_186 == 0) +x_176 = !lean_is_exclusive(x_165); +if (x_176 == 0) { -return x_175; -} -else -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_175, 0); -x_188 = lean_ctor_get(x_175, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_175); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} -} -} -else -{ -lean_object* x_190; -lean_dec(x_158); -x_190 = lean_ctor_get(x_174, 0); -lean_inc(x_190); -lean_dec(x_174); -x_161 = x_190; -x_162 = x_160; -goto block_170; -} -} -} -else -{ -lean_object* x_191; lean_object* x_192; -x_191 = lean_ctor_get(x_160, 2); -lean_inc(x_191); -x_192 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_191, x_158); -lean_dec(x_191); -if (lean_obj_tag(x_192) == 0) -{ -lean_object* x_193; -lean_inc(x_158); -x_193 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_158, x_160); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; lean_object* x_195; uint8_t x_196; -x_194 = lean_ctor_get(x_193, 1); -lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 0); -lean_inc(x_195); -lean_dec(x_193); -x_196 = !lean_is_exclusive(x_194); -if (x_196 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_194, 2); -lean_inc(x_195); -x_198 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_197, x_158, x_195); -lean_ctor_set(x_194, 2, x_198); -x_161 = x_195; -x_162 = x_194; -goto block_170; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_199 = lean_ctor_get(x_194, 0); -x_200 = lean_ctor_get(x_194, 1); -x_201 = lean_ctor_get(x_194, 2); -lean_inc(x_201); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_194); -lean_inc(x_195); -x_202 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_201, x_158, x_195); -x_203 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_203, 0, x_199); -lean_ctor_set(x_203, 1, x_200); -lean_ctor_set(x_203, 2, x_202); -x_161 = x_195; -x_162 = x_203; -goto block_170; -} -} -else -{ -uint8_t x_204; -lean_dec(x_159); -lean_dec(x_158); -lean_dec(x_2); -x_204 = !lean_is_exclusive(x_193); -if (x_204 == 0) -{ -return x_193; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_193, 0); -x_206 = lean_ctor_get(x_193, 1); -lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_193); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; -} -} -} -else -{ -lean_object* x_208; -lean_dec(x_158); -x_208 = lean_ctor_get(x_192, 0); -lean_inc(x_208); -lean_dec(x_192); -x_161 = x_208; -x_162 = x_160; -goto block_170; -} -} -block_170: -{ -if (lean_obj_tag(x_2) == 6) -{ -uint8_t x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -x_164 = lean_expr_update_lambda(x_2, x_163, x_159, x_161); -x_165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_162); return x_165; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -lean_dec(x_161); -lean_dec(x_159); +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_165, 0); +x_178 = lean_ctor_get(x_165, 1); +lean_inc(x_178); +lean_inc(x_177); +lean_dec(x_165); +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +return x_179; +} +} +} +else +{ +lean_object* x_180; +lean_dec(x_127); +x_180 = lean_ctor_get(x_164, 0); +lean_inc(x_180); +lean_dec(x_164); +x_129 = x_180; +x_130 = x_3; +goto block_161; +} +} +block_161: +{ +lean_object* x_131; lean_object* x_132; uint8_t x_142; +x_142 = l_Lean_Expr_hasMVar(x_128); +if (x_142 == 0) +{ +x_131 = x_128; +x_132 = x_130; +goto block_141; +} +else +{ +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_130, 2); +lean_inc(x_143); +x_144 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_143, x_128); +lean_dec(x_143); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; +lean_inc(x_128); +x_145 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_128, x_130); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; uint8_t x_148; +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 0); +lean_inc(x_147); +lean_dec(x_145); +x_148 = !lean_is_exclusive(x_146); +if (x_148 == 0) +{ +lean_object* x_149; lean_object* x_150; +x_149 = lean_ctor_get(x_146, 2); +lean_inc(x_147); +x_150 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_149, x_128, x_147); +lean_ctor_set(x_146, 2, x_150); +x_131 = x_147; +x_132 = x_146; +goto block_141; +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_151 = lean_ctor_get(x_146, 0); +x_152 = lean_ctor_get(x_146, 1); +x_153 = lean_ctor_get(x_146, 2); +lean_inc(x_153); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_146); +lean_inc(x_147); +x_154 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_153, x_128, x_147); +x_155 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_155, 0, x_151); +lean_ctor_set(x_155, 1, x_152); +lean_ctor_set(x_155, 2, x_154); +x_131 = x_147; +x_132 = x_155; +goto block_141; +} +} +else +{ +uint8_t x_156; +lean_dec(x_129); +lean_dec(x_128); lean_dec(x_2); -x_166 = l_Lean_Expr_inhabited; -x_167 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_168 = lean_panic_fn(x_167); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_162); -return x_169; +x_156 = !lean_is_exclusive(x_145); +if (x_156 == 0) +{ +return x_145; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_145, 0); +x_158 = lean_ctor_get(x_145, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_145); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; +} +} +} +else +{ +lean_object* x_160; +lean_dec(x_128); +x_160 = lean_ctor_get(x_144, 0); +lean_inc(x_160); +lean_dec(x_144); +x_131 = x_160; +x_132 = x_130; +goto block_141; +} +} +block_141: +{ +if (lean_obj_tag(x_2) == 6) +{ +uint64_t x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; +x_133 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +x_134 = (uint8_t)((x_133 << 24) >> 61); +x_135 = lean_expr_update_lambda(x_2, x_134, x_129, x_131); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_132); +return x_136; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_131); +lean_dec(x_129); +lean_dec(x_2); +x_137 = l_Lean_Expr_Inhabited; +x_138 = l_Lean_Expr_updateLambdaE_x21___closed__1; +x_139 = lean_panic_fn(x_138); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_132); +return x_140; } } } } case 7: { -lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_301; -x_248 = lean_ctor_get(x_2, 1); -lean_inc(x_248); -x_249 = lean_ctor_get(x_2, 2); -lean_inc(x_249); -x_301 = lean_expr_has_expr_mvar(x_248); -if (x_301 == 0) +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_216; +x_181 = lean_ctor_get(x_2, 1); +lean_inc(x_181); +x_182 = lean_ctor_get(x_2, 2); +lean_inc(x_182); +x_216 = l_Lean_Expr_hasMVar(x_181); +if (x_216 == 0) { -uint8_t x_302; -x_302 = lean_expr_has_level_mvar(x_248); -if (x_302 == 0) -{ -x_250 = x_248; -x_251 = x_3; -goto block_300; +x_183 = x_181; +x_184 = x_3; +goto block_215; } else { -lean_object* x_303; lean_object* x_304; -x_303 = lean_ctor_get(x_3, 2); -lean_inc(x_303); -x_304 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_303, x_248); -lean_dec(x_303); -if (lean_obj_tag(x_304) == 0) +lean_object* x_217; lean_object* x_218; +x_217 = lean_ctor_get(x_3, 2); +lean_inc(x_217); +x_218 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_217, x_181); +lean_dec(x_217); +if (lean_obj_tag(x_218) == 0) { -lean_object* x_305; -lean_inc(x_248); -x_305 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_248, x_3); -if (lean_obj_tag(x_305) == 0) +lean_object* x_219; +lean_inc(x_181); +x_219 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_181, x_3); +if (lean_obj_tag(x_219) == 0) { -lean_object* x_306; lean_object* x_307; uint8_t x_308; -x_306 = lean_ctor_get(x_305, 1); -lean_inc(x_306); -x_307 = lean_ctor_get(x_305, 0); -lean_inc(x_307); -lean_dec(x_305); -x_308 = !lean_is_exclusive(x_306); -if (x_308 == 0) +lean_object* x_220; lean_object* x_221; uint8_t x_222; +x_220 = lean_ctor_get(x_219, 1); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 0); +lean_inc(x_221); +lean_dec(x_219); +x_222 = !lean_is_exclusive(x_220); +if (x_222 == 0) { -lean_object* x_309; lean_object* x_310; -x_309 = lean_ctor_get(x_306, 2); -lean_inc(x_307); -x_310 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_309, x_248, x_307); -lean_ctor_set(x_306, 2, x_310); -x_250 = x_307; -x_251 = x_306; -goto block_300; +lean_object* x_223; lean_object* x_224; +x_223 = lean_ctor_get(x_220, 2); +lean_inc(x_221); +x_224 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_223, x_181, x_221); +lean_ctor_set(x_220, 2, x_224); +x_183 = x_221; +x_184 = x_220; +goto block_215; } else { -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_311 = lean_ctor_get(x_306, 0); -x_312 = lean_ctor_get(x_306, 1); -x_313 = lean_ctor_get(x_306, 2); -lean_inc(x_313); -lean_inc(x_312); -lean_inc(x_311); -lean_dec(x_306); -lean_inc(x_307); -x_314 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_313, x_248, x_307); -x_315 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_315, 0, x_311); -lean_ctor_set(x_315, 1, x_312); -lean_ctor_set(x_315, 2, x_314); -x_250 = x_307; -x_251 = x_315; -goto block_300; +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_225 = lean_ctor_get(x_220, 0); +x_226 = lean_ctor_get(x_220, 1); +x_227 = lean_ctor_get(x_220, 2); +lean_inc(x_227); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_220); +lean_inc(x_221); +x_228 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_227, x_181, x_221); +x_229 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_229, 0, x_225); +lean_ctor_set(x_229, 1, x_226); +lean_ctor_set(x_229, 2, x_228); +x_183 = x_221; +x_184 = x_229; +goto block_215; } } else { -uint8_t x_316; -lean_dec(x_249); -lean_dec(x_248); +uint8_t x_230; +lean_dec(x_182); +lean_dec(x_181); lean_dec(x_2); -x_316 = !lean_is_exclusive(x_305); -if (x_316 == 0) +x_230 = !lean_is_exclusive(x_219); +if (x_230 == 0) { -return x_305; +return x_219; } else { -lean_object* x_317; lean_object* x_318; lean_object* x_319; -x_317 = lean_ctor_get(x_305, 0); -x_318 = lean_ctor_get(x_305, 1); -lean_inc(x_318); -lean_inc(x_317); -lean_dec(x_305); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_317); -lean_ctor_set(x_319, 1, x_318); -return x_319; +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_219, 0); +x_232 = lean_ctor_get(x_219, 1); +lean_inc(x_232); +lean_inc(x_231); +lean_dec(x_219); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +return x_233; } } } else { -lean_object* x_320; -lean_dec(x_248); -x_320 = lean_ctor_get(x_304, 0); -lean_inc(x_320); -lean_dec(x_304); -x_250 = x_320; -x_251 = x_3; -goto block_300; +lean_object* x_234; +lean_dec(x_181); +x_234 = lean_ctor_get(x_218, 0); +lean_inc(x_234); +lean_dec(x_218); +x_183 = x_234; +x_184 = x_3; +goto block_215; } } +block_215: +{ +lean_object* x_185; lean_object* x_186; uint8_t x_196; +x_196 = l_Lean_Expr_hasMVar(x_182); +if (x_196 == 0) +{ +x_185 = x_182; +x_186 = x_184; +goto block_195; +} +else +{ +lean_object* x_197; lean_object* x_198; +x_197 = lean_ctor_get(x_184, 2); +lean_inc(x_197); +x_198 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_197, x_182); +lean_dec(x_197); +if (lean_obj_tag(x_198) == 0) +{ +lean_object* x_199; +lean_inc(x_182); +x_199 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_182, x_184); +if (lean_obj_tag(x_199) == 0) +{ +lean_object* x_200; lean_object* x_201; uint8_t x_202; +x_200 = lean_ctor_get(x_199, 1); +lean_inc(x_200); +x_201 = lean_ctor_get(x_199, 0); +lean_inc(x_201); +lean_dec(x_199); +x_202 = !lean_is_exclusive(x_200); +if (x_202 == 0) +{ +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_200, 2); +lean_inc(x_201); +x_204 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_203, x_182, x_201); +lean_ctor_set(x_200, 2, x_204); +x_185 = x_201; +x_186 = x_200; +goto block_195; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_205 = lean_ctor_get(x_200, 0); +x_206 = lean_ctor_get(x_200, 1); +x_207 = lean_ctor_get(x_200, 2); +lean_inc(x_207); +lean_inc(x_206); +lean_inc(x_205); +lean_dec(x_200); +lean_inc(x_201); +x_208 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_207, x_182, x_201); +x_209 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_209, 0, x_205); +lean_ctor_set(x_209, 1, x_206); +lean_ctor_set(x_209, 2, x_208); +x_185 = x_201; +x_186 = x_209; +goto block_195; +} } else { -lean_object* x_321; lean_object* x_322; -x_321 = lean_ctor_get(x_3, 2); -lean_inc(x_321); -x_322 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_321, x_248); -lean_dec(x_321); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_323; -lean_inc(x_248); -x_323 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_248, x_3); -if (lean_obj_tag(x_323) == 0) -{ -lean_object* x_324; lean_object* x_325; uint8_t x_326; -x_324 = lean_ctor_get(x_323, 1); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 0); -lean_inc(x_325); -lean_dec(x_323); -x_326 = !lean_is_exclusive(x_324); -if (x_326 == 0) -{ -lean_object* x_327; lean_object* x_328; -x_327 = lean_ctor_get(x_324, 2); -lean_inc(x_325); -x_328 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_327, x_248, x_325); -lean_ctor_set(x_324, 2, x_328); -x_250 = x_325; -x_251 = x_324; -goto block_300; -} -else -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_329 = lean_ctor_get(x_324, 0); -x_330 = lean_ctor_get(x_324, 1); -x_331 = lean_ctor_get(x_324, 2); -lean_inc(x_331); -lean_inc(x_330); -lean_inc(x_329); -lean_dec(x_324); -lean_inc(x_325); -x_332 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_331, x_248, x_325); -x_333 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_333, 0, x_329); -lean_ctor_set(x_333, 1, x_330); -lean_ctor_set(x_333, 2, x_332); -x_250 = x_325; -x_251 = x_333; -goto block_300; -} -} -else -{ -uint8_t x_334; -lean_dec(x_249); -lean_dec(x_248); +uint8_t x_210; +lean_dec(x_183); +lean_dec(x_182); lean_dec(x_2); -x_334 = !lean_is_exclusive(x_323); -if (x_334 == 0) +x_210 = !lean_is_exclusive(x_199); +if (x_210 == 0) { -return x_323; +return x_199; } else { -lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_335 = lean_ctor_get(x_323, 0); -x_336 = lean_ctor_get(x_323, 1); -lean_inc(x_336); -lean_inc(x_335); -lean_dec(x_323); -x_337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_337, 0, x_335); -lean_ctor_set(x_337, 1, x_336); -return x_337; +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_199, 0); +x_212 = lean_ctor_get(x_199, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_199); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } else { -lean_object* x_338; -lean_dec(x_248); -x_338 = lean_ctor_get(x_322, 0); -lean_inc(x_338); -lean_dec(x_322); -x_250 = x_338; -x_251 = x_3; -goto block_300; +lean_object* x_214; +lean_dec(x_182); +x_214 = lean_ctor_get(x_198, 0); +lean_inc(x_214); +lean_dec(x_198); +x_185 = x_214; +x_186 = x_184; +goto block_195; } } -block_300: -{ -lean_object* x_252; lean_object* x_253; uint8_t x_262; -x_262 = lean_expr_has_expr_mvar(x_249); -if (x_262 == 0) -{ -uint8_t x_263; -x_263 = lean_expr_has_level_mvar(x_249); -if (x_263 == 0) -{ -x_252 = x_249; -x_253 = x_251; -goto block_261; -} -else -{ -lean_object* x_264; lean_object* x_265; -x_264 = lean_ctor_get(x_251, 2); -lean_inc(x_264); -x_265 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_264, x_249); -lean_dec(x_264); -if (lean_obj_tag(x_265) == 0) -{ -lean_object* x_266; -lean_inc(x_249); -x_266 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_249, x_251); -if (lean_obj_tag(x_266) == 0) -{ -lean_object* x_267; lean_object* x_268; uint8_t x_269; -x_267 = lean_ctor_get(x_266, 1); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 0); -lean_inc(x_268); -lean_dec(x_266); -x_269 = !lean_is_exclusive(x_267); -if (x_269 == 0) -{ -lean_object* x_270; lean_object* x_271; -x_270 = lean_ctor_get(x_267, 2); -lean_inc(x_268); -x_271 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_270, x_249, x_268); -lean_ctor_set(x_267, 2, x_271); -x_252 = x_268; -x_253 = x_267; -goto block_261; -} -else -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; -x_272 = lean_ctor_get(x_267, 0); -x_273 = lean_ctor_get(x_267, 1); -x_274 = lean_ctor_get(x_267, 2); -lean_inc(x_274); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_267); -lean_inc(x_268); -x_275 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_274, x_249, x_268); -x_276 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_276, 0, x_272); -lean_ctor_set(x_276, 1, x_273); -lean_ctor_set(x_276, 2, x_275); -x_252 = x_268; -x_253 = x_276; -goto block_261; -} -} -else -{ -uint8_t x_277; -lean_dec(x_250); -lean_dec(x_249); -lean_dec(x_2); -x_277 = !lean_is_exclusive(x_266); -if (x_277 == 0) -{ -return x_266; -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_278 = lean_ctor_get(x_266, 0); -x_279 = lean_ctor_get(x_266, 1); -lean_inc(x_279); -lean_inc(x_278); -lean_dec(x_266); -x_280 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_280, 0, x_278); -lean_ctor_set(x_280, 1, x_279); -return x_280; -} -} -} -else -{ -lean_object* x_281; -lean_dec(x_249); -x_281 = lean_ctor_get(x_265, 0); -lean_inc(x_281); -lean_dec(x_265); -x_252 = x_281; -x_253 = x_251; -goto block_261; -} -} -} -else -{ -lean_object* x_282; lean_object* x_283; -x_282 = lean_ctor_get(x_251, 2); -lean_inc(x_282); -x_283 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_282, x_249); -lean_dec(x_282); -if (lean_obj_tag(x_283) == 0) -{ -lean_object* x_284; -lean_inc(x_249); -x_284 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_249, x_251); -if (lean_obj_tag(x_284) == 0) -{ -lean_object* x_285; lean_object* x_286; uint8_t x_287; -x_285 = lean_ctor_get(x_284, 1); -lean_inc(x_285); -x_286 = lean_ctor_get(x_284, 0); -lean_inc(x_286); -lean_dec(x_284); -x_287 = !lean_is_exclusive(x_285); -if (x_287 == 0) -{ -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_285, 2); -lean_inc(x_286); -x_289 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_288, x_249, x_286); -lean_ctor_set(x_285, 2, x_289); -x_252 = x_286; -x_253 = x_285; -goto block_261; -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; -x_290 = lean_ctor_get(x_285, 0); -x_291 = lean_ctor_get(x_285, 1); -x_292 = lean_ctor_get(x_285, 2); -lean_inc(x_292); -lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_285); -lean_inc(x_286); -x_293 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_292, x_249, x_286); -x_294 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_294, 0, x_290); -lean_ctor_set(x_294, 1, x_291); -lean_ctor_set(x_294, 2, x_293); -x_252 = x_286; -x_253 = x_294; -goto block_261; -} -} -else -{ -uint8_t x_295; -lean_dec(x_250); -lean_dec(x_249); -lean_dec(x_2); -x_295 = !lean_is_exclusive(x_284); -if (x_295 == 0) -{ -return x_284; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_296 = lean_ctor_get(x_284, 0); -x_297 = lean_ctor_get(x_284, 1); -lean_inc(x_297); -lean_inc(x_296); -lean_dec(x_284); -x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_296); -lean_ctor_set(x_298, 1, x_297); -return x_298; -} -} -} -else -{ -lean_object* x_299; -lean_dec(x_249); -x_299 = lean_ctor_get(x_283, 0); -lean_inc(x_299); -lean_dec(x_283); -x_252 = x_299; -x_253 = x_251; -goto block_261; -} -} -block_261: +block_195: { if (lean_obj_tag(x_2) == 7) { -uint8_t x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -x_255 = lean_expr_update_forall(x_2, x_254, x_250, x_252); -x_256 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_256, 0, x_255); -lean_ctor_set(x_256, 1, x_253); -return x_256; +uint64_t x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +x_187 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +x_188 = (uint8_t)((x_187 << 24) >> 61); +x_189 = lean_expr_update_forall(x_2, x_188, x_183, x_185); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_186); +return x_190; } else { -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -lean_dec(x_252); -lean_dec(x_250); +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_185); +lean_dec(x_183); lean_dec(x_2); -x_257 = l_Lean_Expr_inhabited; -x_258 = l_Lean_Expr_updateForallE_x21___closed__1; -x_259 = lean_panic_fn(x_258); -x_260 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_253); -return x_260; +x_191 = l_Lean_Expr_Inhabited; +x_192 = l_Lean_Expr_updateForallE_x21___closed__1; +x_193 = lean_panic_fn(x_192); +x_194 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_186); +return x_194; } } } } case 8: { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_433; -x_339 = lean_ctor_get(x_2, 1); -lean_inc(x_339); -x_340 = lean_ctor_get(x_2, 2); -lean_inc(x_340); -x_341 = lean_ctor_get(x_2, 3); -lean_inc(x_341); -x_433 = lean_expr_has_expr_mvar(x_339); -if (x_433 == 0) +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_291; +x_235 = lean_ctor_get(x_2, 1); +lean_inc(x_235); +x_236 = lean_ctor_get(x_2, 2); +lean_inc(x_236); +x_237 = lean_ctor_get(x_2, 3); +lean_inc(x_237); +x_291 = l_Lean_Expr_hasMVar(x_235); +if (x_291 == 0) { -uint8_t x_434; -x_434 = lean_expr_has_level_mvar(x_339); -if (x_434 == 0) -{ -x_342 = x_339; -x_343 = x_3; -goto block_432; +x_238 = x_235; +x_239 = x_3; +goto block_290; } else { -lean_object* x_435; lean_object* x_436; -x_435 = lean_ctor_get(x_3, 2); -lean_inc(x_435); -x_436 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_435, x_339); -lean_dec(x_435); -if (lean_obj_tag(x_436) == 0) +lean_object* x_292; lean_object* x_293; +x_292 = lean_ctor_get(x_3, 2); +lean_inc(x_292); +x_293 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_292, x_235); +lean_dec(x_292); +if (lean_obj_tag(x_293) == 0) { -lean_object* x_437; -lean_inc(x_339); -x_437 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_339, x_3); -if (lean_obj_tag(x_437) == 0) +lean_object* x_294; +lean_inc(x_235); +x_294 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_235, x_3); +if (lean_obj_tag(x_294) == 0) { -lean_object* x_438; lean_object* x_439; uint8_t x_440; -x_438 = lean_ctor_get(x_437, 1); -lean_inc(x_438); -x_439 = lean_ctor_get(x_437, 0); -lean_inc(x_439); -lean_dec(x_437); -x_440 = !lean_is_exclusive(x_438); -if (x_440 == 0) +lean_object* x_295; lean_object* x_296; uint8_t x_297; +x_295 = lean_ctor_get(x_294, 1); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 0); +lean_inc(x_296); +lean_dec(x_294); +x_297 = !lean_is_exclusive(x_295); +if (x_297 == 0) { -lean_object* x_441; lean_object* x_442; -x_441 = lean_ctor_get(x_438, 2); -lean_inc(x_439); -x_442 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_441, x_339, x_439); -lean_ctor_set(x_438, 2, x_442); -x_342 = x_439; -x_343 = x_438; -goto block_432; +lean_object* x_298; lean_object* x_299; +x_298 = lean_ctor_get(x_295, 2); +lean_inc(x_296); +x_299 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_298, x_235, x_296); +lean_ctor_set(x_295, 2, x_299); +x_238 = x_296; +x_239 = x_295; +goto block_290; } else { -lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; -x_443 = lean_ctor_get(x_438, 0); -x_444 = lean_ctor_get(x_438, 1); -x_445 = lean_ctor_get(x_438, 2); -lean_inc(x_445); -lean_inc(x_444); -lean_inc(x_443); -lean_dec(x_438); -lean_inc(x_439); -x_446 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_445, x_339, x_439); -x_447 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_447, 0, x_443); -lean_ctor_set(x_447, 1, x_444); -lean_ctor_set(x_447, 2, x_446); -x_342 = x_439; -x_343 = x_447; -goto block_432; +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; +x_300 = lean_ctor_get(x_295, 0); +x_301 = lean_ctor_get(x_295, 1); +x_302 = lean_ctor_get(x_295, 2); +lean_inc(x_302); +lean_inc(x_301); +lean_inc(x_300); +lean_dec(x_295); +lean_inc(x_296); +x_303 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_302, x_235, x_296); +x_304 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_304, 0, x_300); +lean_ctor_set(x_304, 1, x_301); +lean_ctor_set(x_304, 2, x_303); +x_238 = x_296; +x_239 = x_304; +goto block_290; } } else { -uint8_t x_448; -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); +uint8_t x_305; +lean_dec(x_237); +lean_dec(x_236); +lean_dec(x_235); lean_dec(x_2); -x_448 = !lean_is_exclusive(x_437); -if (x_448 == 0) +x_305 = !lean_is_exclusive(x_294); +if (x_305 == 0) { -return x_437; +return x_294; } else { -lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_449 = lean_ctor_get(x_437, 0); -x_450 = lean_ctor_get(x_437, 1); -lean_inc(x_450); -lean_inc(x_449); -lean_dec(x_437); -x_451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_451, 0, x_449); -lean_ctor_set(x_451, 1, x_450); -return x_451; +lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_306 = lean_ctor_get(x_294, 0); +x_307 = lean_ctor_get(x_294, 1); +lean_inc(x_307); +lean_inc(x_306); +lean_dec(x_294); +x_308 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_308, 0, x_306); +lean_ctor_set(x_308, 1, x_307); +return x_308; } } } else { -lean_object* x_452; -lean_dec(x_339); -x_452 = lean_ctor_get(x_436, 0); -lean_inc(x_452); -lean_dec(x_436); -x_342 = x_452; -x_343 = x_3; -goto block_432; +lean_object* x_309; +lean_dec(x_235); +x_309 = lean_ctor_get(x_293, 0); +lean_inc(x_309); +lean_dec(x_293); +x_238 = x_309; +x_239 = x_3; +goto block_290; } } +block_290: +{ +lean_object* x_240; lean_object* x_241; uint8_t x_271; +x_271 = l_Lean_Expr_hasMVar(x_236); +if (x_271 == 0) +{ +x_240 = x_236; +x_241 = x_239; +goto block_270; +} +else +{ +lean_object* x_272; lean_object* x_273; +x_272 = lean_ctor_get(x_239, 2); +lean_inc(x_272); +x_273 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_272, x_236); +lean_dec(x_272); +if (lean_obj_tag(x_273) == 0) +{ +lean_object* x_274; +lean_inc(x_236); +x_274 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_236, x_239); +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; lean_object* x_276; uint8_t x_277; +x_275 = lean_ctor_get(x_274, 1); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 0); +lean_inc(x_276); +lean_dec(x_274); +x_277 = !lean_is_exclusive(x_275); +if (x_277 == 0) +{ +lean_object* x_278; lean_object* x_279; +x_278 = lean_ctor_get(x_275, 2); +lean_inc(x_276); +x_279 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_278, x_236, x_276); +lean_ctor_set(x_275, 2, x_279); +x_240 = x_276; +x_241 = x_275; +goto block_270; +} +else +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_280 = lean_ctor_get(x_275, 0); +x_281 = lean_ctor_get(x_275, 1); +x_282 = lean_ctor_get(x_275, 2); +lean_inc(x_282); +lean_inc(x_281); +lean_inc(x_280); +lean_dec(x_275); +lean_inc(x_276); +x_283 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_282, x_236, x_276); +x_284 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_284, 0, x_280); +lean_ctor_set(x_284, 1, x_281); +lean_ctor_set(x_284, 2, x_283); +x_240 = x_276; +x_241 = x_284; +goto block_270; +} } else { -lean_object* x_453; lean_object* x_454; -x_453 = lean_ctor_get(x_3, 2); -lean_inc(x_453); -x_454 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_453, x_339); -lean_dec(x_453); -if (lean_obj_tag(x_454) == 0) -{ -lean_object* x_455; -lean_inc(x_339); -x_455 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_339, x_3); -if (lean_obj_tag(x_455) == 0) -{ -lean_object* x_456; lean_object* x_457; uint8_t x_458; -x_456 = lean_ctor_get(x_455, 1); -lean_inc(x_456); -x_457 = lean_ctor_get(x_455, 0); -lean_inc(x_457); -lean_dec(x_455); -x_458 = !lean_is_exclusive(x_456); -if (x_458 == 0) -{ -lean_object* x_459; lean_object* x_460; -x_459 = lean_ctor_get(x_456, 2); -lean_inc(x_457); -x_460 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_459, x_339, x_457); -lean_ctor_set(x_456, 2, x_460); -x_342 = x_457; -x_343 = x_456; -goto block_432; -} -else -{ -lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; -x_461 = lean_ctor_get(x_456, 0); -x_462 = lean_ctor_get(x_456, 1); -x_463 = lean_ctor_get(x_456, 2); -lean_inc(x_463); -lean_inc(x_462); -lean_inc(x_461); -lean_dec(x_456); -lean_inc(x_457); -x_464 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_463, x_339, x_457); -x_465 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_465, 0, x_461); -lean_ctor_set(x_465, 1, x_462); -lean_ctor_set(x_465, 2, x_464); -x_342 = x_457; -x_343 = x_465; -goto block_432; -} -} -else -{ -uint8_t x_466; -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_339); +uint8_t x_285; +lean_dec(x_238); +lean_dec(x_237); +lean_dec(x_236); lean_dec(x_2); -x_466 = !lean_is_exclusive(x_455); -if (x_466 == 0) +x_285 = !lean_is_exclusive(x_274); +if (x_285 == 0) { -return x_455; +return x_274; } else { -lean_object* x_467; lean_object* x_468; lean_object* x_469; -x_467 = lean_ctor_get(x_455, 0); -x_468 = lean_ctor_get(x_455, 1); -lean_inc(x_468); -lean_inc(x_467); -lean_dec(x_455); -x_469 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_469, 0, x_467); -lean_ctor_set(x_469, 1, x_468); -return x_469; +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_274, 0); +x_287 = lean_ctor_get(x_274, 1); +lean_inc(x_287); +lean_inc(x_286); +lean_dec(x_274); +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_286); +lean_ctor_set(x_288, 1, x_287); +return x_288; } } } else { -lean_object* x_470; -lean_dec(x_339); -x_470 = lean_ctor_get(x_454, 0); -lean_inc(x_470); -lean_dec(x_454); -x_342 = x_470; -x_343 = x_3; -goto block_432; +lean_object* x_289; +lean_dec(x_236); +x_289 = lean_ctor_get(x_273, 0); +lean_inc(x_289); +lean_dec(x_273); +x_240 = x_289; +x_241 = x_239; +goto block_270; } } -block_432: +block_270: { -lean_object* x_344; lean_object* x_345; uint8_t x_394; -x_394 = lean_expr_has_expr_mvar(x_340); -if (x_394 == 0) +lean_object* x_242; lean_object* x_243; uint8_t x_251; +x_251 = l_Lean_Expr_hasMVar(x_237); +if (x_251 == 0) { -uint8_t x_395; -x_395 = lean_expr_has_level_mvar(x_340); -if (x_395 == 0) -{ -x_344 = x_340; -x_345 = x_343; -goto block_393; +x_242 = x_237; +x_243 = x_241; +goto block_250; } else { -lean_object* x_396; lean_object* x_397; -x_396 = lean_ctor_get(x_343, 2); -lean_inc(x_396); -x_397 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_396, x_340); -lean_dec(x_396); -if (lean_obj_tag(x_397) == 0) +lean_object* x_252; lean_object* x_253; +x_252 = lean_ctor_get(x_241, 2); +lean_inc(x_252); +x_253 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_252, x_237); +lean_dec(x_252); +if (lean_obj_tag(x_253) == 0) { -lean_object* x_398; -lean_inc(x_340); -x_398 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_340, x_343); -if (lean_obj_tag(x_398) == 0) +lean_object* x_254; +lean_inc(x_237); +x_254 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_237, x_241); +if (lean_obj_tag(x_254) == 0) { -lean_object* x_399; lean_object* x_400; uint8_t x_401; -x_399 = lean_ctor_get(x_398, 1); -lean_inc(x_399); -x_400 = lean_ctor_get(x_398, 0); -lean_inc(x_400); -lean_dec(x_398); -x_401 = !lean_is_exclusive(x_399); -if (x_401 == 0) +lean_object* x_255; lean_object* x_256; uint8_t x_257; +x_255 = lean_ctor_get(x_254, 1); +lean_inc(x_255); +x_256 = lean_ctor_get(x_254, 0); +lean_inc(x_256); +lean_dec(x_254); +x_257 = !lean_is_exclusive(x_255); +if (x_257 == 0) { -lean_object* x_402; lean_object* x_403; -x_402 = lean_ctor_get(x_399, 2); -lean_inc(x_400); -x_403 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_402, x_340, x_400); -lean_ctor_set(x_399, 2, x_403); -x_344 = x_400; -x_345 = x_399; -goto block_393; +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_255, 2); +lean_inc(x_256); +x_259 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_258, x_237, x_256); +lean_ctor_set(x_255, 2, x_259); +x_242 = x_256; +x_243 = x_255; +goto block_250; } else { -lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -x_404 = lean_ctor_get(x_399, 0); -x_405 = lean_ctor_get(x_399, 1); -x_406 = lean_ctor_get(x_399, 2); -lean_inc(x_406); -lean_inc(x_405); -lean_inc(x_404); -lean_dec(x_399); -lean_inc(x_400); -x_407 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_406, x_340, x_400); -x_408 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_408, 0, x_404); -lean_ctor_set(x_408, 1, x_405); -lean_ctor_set(x_408, 2, x_407); -x_344 = x_400; -x_345 = x_408; -goto block_393; +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_260 = lean_ctor_get(x_255, 0); +x_261 = lean_ctor_get(x_255, 1); +x_262 = lean_ctor_get(x_255, 2); +lean_inc(x_262); +lean_inc(x_261); +lean_inc(x_260); +lean_dec(x_255); +lean_inc(x_256); +x_263 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_262, x_237, x_256); +x_264 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_264, 0, x_260); +lean_ctor_set(x_264, 1, x_261); +lean_ctor_set(x_264, 2, x_263); +x_242 = x_256; +x_243 = x_264; +goto block_250; } } else { -uint8_t x_409; -lean_dec(x_342); -lean_dec(x_341); -lean_dec(x_340); +uint8_t x_265; +lean_dec(x_240); +lean_dec(x_238); +lean_dec(x_237); lean_dec(x_2); -x_409 = !lean_is_exclusive(x_398); -if (x_409 == 0) +x_265 = !lean_is_exclusive(x_254); +if (x_265 == 0) { -return x_398; +return x_254; } else { -lean_object* x_410; lean_object* x_411; lean_object* x_412; -x_410 = lean_ctor_get(x_398, 0); -x_411 = lean_ctor_get(x_398, 1); -lean_inc(x_411); -lean_inc(x_410); -lean_dec(x_398); -x_412 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_412, 0, x_410); -lean_ctor_set(x_412, 1, x_411); -return x_412; +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_254, 0); +x_267 = lean_ctor_get(x_254, 1); +lean_inc(x_267); +lean_inc(x_266); +lean_dec(x_254); +x_268 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_268, 0, x_266); +lean_ctor_set(x_268, 1, x_267); +return x_268; } } } else { -lean_object* x_413; -lean_dec(x_340); -x_413 = lean_ctor_get(x_397, 0); -lean_inc(x_413); -lean_dec(x_397); -x_344 = x_413; -x_345 = x_343; -goto block_393; +lean_object* x_269; +lean_dec(x_237); +x_269 = lean_ctor_get(x_253, 0); +lean_inc(x_269); +lean_dec(x_253); +x_242 = x_269; +x_243 = x_241; +goto block_250; } } -} -else -{ -lean_object* x_414; lean_object* x_415; -x_414 = lean_ctor_get(x_343, 2); -lean_inc(x_414); -x_415 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_414, x_340); -lean_dec(x_414); -if (lean_obj_tag(x_415) == 0) -{ -lean_object* x_416; -lean_inc(x_340); -x_416 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_340, x_343); -if (lean_obj_tag(x_416) == 0) -{ -lean_object* x_417; lean_object* x_418; uint8_t x_419; -x_417 = lean_ctor_get(x_416, 1); -lean_inc(x_417); -x_418 = lean_ctor_get(x_416, 0); -lean_inc(x_418); -lean_dec(x_416); -x_419 = !lean_is_exclusive(x_417); -if (x_419 == 0) -{ -lean_object* x_420; lean_object* x_421; -x_420 = lean_ctor_get(x_417, 2); -lean_inc(x_418); -x_421 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_420, x_340, x_418); -lean_ctor_set(x_417, 2, x_421); -x_344 = x_418; -x_345 = x_417; -goto block_393; -} -else -{ -lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; -x_422 = lean_ctor_get(x_417, 0); -x_423 = lean_ctor_get(x_417, 1); -x_424 = lean_ctor_get(x_417, 2); -lean_inc(x_424); -lean_inc(x_423); -lean_inc(x_422); -lean_dec(x_417); -lean_inc(x_418); -x_425 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_424, x_340, x_418); -x_426 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_426, 0, x_422); -lean_ctor_set(x_426, 1, x_423); -lean_ctor_set(x_426, 2, x_425); -x_344 = x_418; -x_345 = x_426; -goto block_393; -} -} -else -{ -uint8_t x_427; -lean_dec(x_342); -lean_dec(x_341); -lean_dec(x_340); -lean_dec(x_2); -x_427 = !lean_is_exclusive(x_416); -if (x_427 == 0) -{ -return x_416; -} -else -{ -lean_object* x_428; lean_object* x_429; lean_object* x_430; -x_428 = lean_ctor_get(x_416, 0); -x_429 = lean_ctor_get(x_416, 1); -lean_inc(x_429); -lean_inc(x_428); -lean_dec(x_416); -x_430 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_430, 0, x_428); -lean_ctor_set(x_430, 1, x_429); -return x_430; -} -} -} -else -{ -lean_object* x_431; -lean_dec(x_340); -x_431 = lean_ctor_get(x_415, 0); -lean_inc(x_431); -lean_dec(x_415); -x_344 = x_431; -x_345 = x_343; -goto block_393; -} -} -block_393: -{ -lean_object* x_346; lean_object* x_347; uint8_t x_355; -x_355 = lean_expr_has_expr_mvar(x_341); -if (x_355 == 0) -{ -uint8_t x_356; -x_356 = lean_expr_has_level_mvar(x_341); -if (x_356 == 0) -{ -x_346 = x_341; -x_347 = x_345; -goto block_354; -} -else -{ -lean_object* x_357; lean_object* x_358; -x_357 = lean_ctor_get(x_345, 2); -lean_inc(x_357); -x_358 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_357, x_341); -lean_dec(x_357); -if (lean_obj_tag(x_358) == 0) -{ -lean_object* x_359; -lean_inc(x_341); -x_359 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_341, x_345); -if (lean_obj_tag(x_359) == 0) -{ -lean_object* x_360; lean_object* x_361; uint8_t x_362; -x_360 = lean_ctor_get(x_359, 1); -lean_inc(x_360); -x_361 = lean_ctor_get(x_359, 0); -lean_inc(x_361); -lean_dec(x_359); -x_362 = !lean_is_exclusive(x_360); -if (x_362 == 0) -{ -lean_object* x_363; lean_object* x_364; -x_363 = lean_ctor_get(x_360, 2); -lean_inc(x_361); -x_364 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_363, x_341, x_361); -lean_ctor_set(x_360, 2, x_364); -x_346 = x_361; -x_347 = x_360; -goto block_354; -} -else -{ -lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_365 = lean_ctor_get(x_360, 0); -x_366 = lean_ctor_get(x_360, 1); -x_367 = lean_ctor_get(x_360, 2); -lean_inc(x_367); -lean_inc(x_366); -lean_inc(x_365); -lean_dec(x_360); -lean_inc(x_361); -x_368 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_367, x_341, x_361); -x_369 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_369, 0, x_365); -lean_ctor_set(x_369, 1, x_366); -lean_ctor_set(x_369, 2, x_368); -x_346 = x_361; -x_347 = x_369; -goto block_354; -} -} -else -{ -uint8_t x_370; -lean_dec(x_344); -lean_dec(x_342); -lean_dec(x_341); -lean_dec(x_2); -x_370 = !lean_is_exclusive(x_359); -if (x_370 == 0) -{ -return x_359; -} -else -{ -lean_object* x_371; lean_object* x_372; lean_object* x_373; -x_371 = lean_ctor_get(x_359, 0); -x_372 = lean_ctor_get(x_359, 1); -lean_inc(x_372); -lean_inc(x_371); -lean_dec(x_359); -x_373 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_373, 0, x_371); -lean_ctor_set(x_373, 1, x_372); -return x_373; -} -} -} -else -{ -lean_object* x_374; -lean_dec(x_341); -x_374 = lean_ctor_get(x_358, 0); -lean_inc(x_374); -lean_dec(x_358); -x_346 = x_374; -x_347 = x_345; -goto block_354; -} -} -} -else -{ -lean_object* x_375; lean_object* x_376; -x_375 = lean_ctor_get(x_345, 2); -lean_inc(x_375); -x_376 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_375, x_341); -lean_dec(x_375); -if (lean_obj_tag(x_376) == 0) -{ -lean_object* x_377; -lean_inc(x_341); -x_377 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_341, x_345); -if (lean_obj_tag(x_377) == 0) -{ -lean_object* x_378; lean_object* x_379; uint8_t x_380; -x_378 = lean_ctor_get(x_377, 1); -lean_inc(x_378); -x_379 = lean_ctor_get(x_377, 0); -lean_inc(x_379); -lean_dec(x_377); -x_380 = !lean_is_exclusive(x_378); -if (x_380 == 0) -{ -lean_object* x_381; lean_object* x_382; -x_381 = lean_ctor_get(x_378, 2); -lean_inc(x_379); -x_382 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_381, x_341, x_379); -lean_ctor_set(x_378, 2, x_382); -x_346 = x_379; -x_347 = x_378; -goto block_354; -} -else -{ -lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_383 = lean_ctor_get(x_378, 0); -x_384 = lean_ctor_get(x_378, 1); -x_385 = lean_ctor_get(x_378, 2); -lean_inc(x_385); -lean_inc(x_384); -lean_inc(x_383); -lean_dec(x_378); -lean_inc(x_379); -x_386 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_385, x_341, x_379); -x_387 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_387, 0, x_383); -lean_ctor_set(x_387, 1, x_384); -lean_ctor_set(x_387, 2, x_386); -x_346 = x_379; -x_347 = x_387; -goto block_354; -} -} -else -{ -uint8_t x_388; -lean_dec(x_344); -lean_dec(x_342); -lean_dec(x_341); -lean_dec(x_2); -x_388 = !lean_is_exclusive(x_377); -if (x_388 == 0) -{ -return x_377; -} -else -{ -lean_object* x_389; lean_object* x_390; lean_object* x_391; -x_389 = lean_ctor_get(x_377, 0); -x_390 = lean_ctor_get(x_377, 1); -lean_inc(x_390); -lean_inc(x_389); -lean_dec(x_377); -x_391 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_391, 0, x_389); -lean_ctor_set(x_391, 1, x_390); -return x_391; -} -} -} -else -{ -lean_object* x_392; -lean_dec(x_341); -x_392 = lean_ctor_get(x_376, 0); -lean_inc(x_392); -lean_dec(x_376); -x_346 = x_392; -x_347 = x_345; -goto block_354; -} -} -block_354: +block_250: { if (lean_obj_tag(x_2) == 8) { -lean_object* x_348; lean_object* x_349; -x_348 = lean_expr_update_let(x_2, x_342, x_344, x_346); -x_349 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_349, 0, x_348); -lean_ctor_set(x_349, 1, x_347); -return x_349; +lean_object* x_244; lean_object* x_245; +x_244 = lean_expr_update_let(x_2, x_238, x_240, x_242); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_243); +return x_245; } else { -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -lean_dec(x_346); -lean_dec(x_344); -lean_dec(x_342); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_242); +lean_dec(x_240); +lean_dec(x_238); lean_dec(x_2); -x_350 = l_Lean_Expr_inhabited; -x_351 = l_Lean_Expr_updateLet_x21___closed__1; -x_352 = lean_panic_fn(x_351); -x_353 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_353, 0, x_352); -lean_ctor_set(x_353, 1, x_347); -return x_353; +x_246 = l_Lean_Expr_Inhabited; +x_247 = l_Lean_Expr_updateLet_x21___closed__1; +x_248 = lean_panic_fn(x_247); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_243); +return x_249; } } } @@ -39715,197 +30024,102 @@ return x_353; } case 10: { -lean_object* x_471; uint8_t x_472; -x_471 = lean_ctor_get(x_2, 1); -lean_inc(x_471); -x_472 = lean_expr_has_expr_mvar(x_471); -if (x_472 == 0) +lean_object* x_310; uint8_t x_311; +x_310 = lean_ctor_get(x_2, 1); +lean_inc(x_310); +x_311 = l_Lean_Expr_hasMVar(x_310); +if (x_311 == 0) { -uint8_t x_473; -x_473 = lean_expr_has_level_mvar(x_471); -if (x_473 == 0) -{ -x_4 = x_471; +x_4 = x_310; x_5 = x_3; goto block_12; } else { -lean_object* x_474; lean_object* x_475; -x_474 = lean_ctor_get(x_3, 2); -lean_inc(x_474); -x_475 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_474, x_471); -lean_dec(x_474); -if (lean_obj_tag(x_475) == 0) +lean_object* x_312; lean_object* x_313; +x_312 = lean_ctor_get(x_3, 2); +lean_inc(x_312); +x_313 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_312, x_310); +lean_dec(x_312); +if (lean_obj_tag(x_313) == 0) { -lean_object* x_476; -lean_inc(x_471); -x_476 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_471, x_3); -if (lean_obj_tag(x_476) == 0) +lean_object* x_314; +lean_inc(x_310); +x_314 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_310, x_3); +if (lean_obj_tag(x_314) == 0) { -lean_object* x_477; lean_object* x_478; uint8_t x_479; -x_477 = lean_ctor_get(x_476, 1); -lean_inc(x_477); -x_478 = lean_ctor_get(x_476, 0); -lean_inc(x_478); -lean_dec(x_476); -x_479 = !lean_is_exclusive(x_477); -if (x_479 == 0) +lean_object* x_315; lean_object* x_316; uint8_t x_317; +x_315 = lean_ctor_get(x_314, 1); +lean_inc(x_315); +x_316 = lean_ctor_get(x_314, 0); +lean_inc(x_316); +lean_dec(x_314); +x_317 = !lean_is_exclusive(x_315); +if (x_317 == 0) { -lean_object* x_480; lean_object* x_481; -x_480 = lean_ctor_get(x_477, 2); -lean_inc(x_478); -x_481 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_480, x_471, x_478); -lean_ctor_set(x_477, 2, x_481); -x_4 = x_478; -x_5 = x_477; +lean_object* x_318; lean_object* x_319; +x_318 = lean_ctor_get(x_315, 2); +lean_inc(x_316); +x_319 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_318, x_310, x_316); +lean_ctor_set(x_315, 2, x_319); +x_4 = x_316; +x_5 = x_315; goto block_12; } else { -lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; -x_482 = lean_ctor_get(x_477, 0); -x_483 = lean_ctor_get(x_477, 1); -x_484 = lean_ctor_get(x_477, 2); -lean_inc(x_484); -lean_inc(x_483); -lean_inc(x_482); -lean_dec(x_477); -lean_inc(x_478); -x_485 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_484, x_471, x_478); -x_486 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_486, 0, x_482); -lean_ctor_set(x_486, 1, x_483); -lean_ctor_set(x_486, 2, x_485); -x_4 = x_478; -x_5 = x_486; +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_320 = lean_ctor_get(x_315, 0); +x_321 = lean_ctor_get(x_315, 1); +x_322 = lean_ctor_get(x_315, 2); +lean_inc(x_322); +lean_inc(x_321); +lean_inc(x_320); +lean_dec(x_315); +lean_inc(x_316); +x_323 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_322, x_310, x_316); +x_324 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_324, 0, x_320); +lean_ctor_set(x_324, 1, x_321); +lean_ctor_set(x_324, 2, x_323); +x_4 = x_316; +x_5 = x_324; goto block_12; } } else { -uint8_t x_487; -lean_dec(x_471); +uint8_t x_325; +lean_dec(x_310); lean_dec(x_2); -x_487 = !lean_is_exclusive(x_476); -if (x_487 == 0) +x_325 = !lean_is_exclusive(x_314); +if (x_325 == 0) { -return x_476; +return x_314; } else { -lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_488 = lean_ctor_get(x_476, 0); -x_489 = lean_ctor_get(x_476, 1); -lean_inc(x_489); -lean_inc(x_488); -lean_dec(x_476); -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_488); -lean_ctor_set(x_490, 1, x_489); -return x_490; +lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_326 = lean_ctor_get(x_314, 0); +x_327 = lean_ctor_get(x_314, 1); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_314); +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_327); +return x_328; } } } else { -lean_object* x_491; -lean_dec(x_471); -x_491 = lean_ctor_get(x_475, 0); -lean_inc(x_491); -lean_dec(x_475); -x_4 = x_491; -x_5 = x_3; -goto block_12; -} -} -} -else -{ -lean_object* x_492; lean_object* x_493; -x_492 = lean_ctor_get(x_3, 2); -lean_inc(x_492); -x_493 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_492, x_471); -lean_dec(x_492); -if (lean_obj_tag(x_493) == 0) -{ -lean_object* x_494; -lean_inc(x_471); -x_494 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_471, x_3); -if (lean_obj_tag(x_494) == 0) -{ -lean_object* x_495; lean_object* x_496; uint8_t x_497; -x_495 = lean_ctor_get(x_494, 1); -lean_inc(x_495); -x_496 = lean_ctor_get(x_494, 0); -lean_inc(x_496); -lean_dec(x_494); -x_497 = !lean_is_exclusive(x_495); -if (x_497 == 0) -{ -lean_object* x_498; lean_object* x_499; -x_498 = lean_ctor_get(x_495, 2); -lean_inc(x_496); -x_499 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_498, x_471, x_496); -lean_ctor_set(x_495, 2, x_499); -x_4 = x_496; -x_5 = x_495; -goto block_12; -} -else -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; -x_500 = lean_ctor_get(x_495, 0); -x_501 = lean_ctor_get(x_495, 1); -x_502 = lean_ctor_get(x_495, 2); -lean_inc(x_502); -lean_inc(x_501); -lean_inc(x_500); -lean_dec(x_495); -lean_inc(x_496); -x_503 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_502, x_471, x_496); -x_504 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_504, 0, x_500); -lean_ctor_set(x_504, 1, x_501); -lean_ctor_set(x_504, 2, x_503); -x_4 = x_496; -x_5 = x_504; -goto block_12; -} -} -else -{ -uint8_t x_505; -lean_dec(x_471); -lean_dec(x_2); -x_505 = !lean_is_exclusive(x_494); -if (x_505 == 0) -{ -return x_494; -} -else -{ -lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_506 = lean_ctor_get(x_494, 0); -x_507 = lean_ctor_get(x_494, 1); -lean_inc(x_507); -lean_inc(x_506); -lean_dec(x_494); -x_508 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_508, 0, x_506); -lean_ctor_set(x_508, 1, x_507); -return x_508; -} -} -} -else -{ -lean_object* x_509; -lean_dec(x_471); -x_509 = lean_ctor_get(x_493, 0); -lean_inc(x_509); -lean_dec(x_493); -x_4 = x_509; +lean_object* x_329; +lean_dec(x_310); +x_329 = lean_ctor_get(x_313, 0); +lean_inc(x_329); +lean_dec(x_313); +x_4 = x_329; x_5 = x_3; goto block_12; } @@ -39913,197 +30127,102 @@ goto block_12; } case 11: { -lean_object* x_510; uint8_t x_511; -x_510 = lean_ctor_get(x_2, 2); -lean_inc(x_510); -x_511 = lean_expr_has_expr_mvar(x_510); -if (x_511 == 0) +lean_object* x_330; uint8_t x_331; +x_330 = lean_ctor_get(x_2, 2); +lean_inc(x_330); +x_331 = l_Lean_Expr_hasMVar(x_330); +if (x_331 == 0) { -uint8_t x_512; -x_512 = lean_expr_has_level_mvar(x_510); -if (x_512 == 0) -{ -x_13 = x_510; +x_13 = x_330; x_14 = x_3; goto block_21; } else { -lean_object* x_513; lean_object* x_514; -x_513 = lean_ctor_get(x_3, 2); -lean_inc(x_513); -x_514 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_513, x_510); -lean_dec(x_513); -if (lean_obj_tag(x_514) == 0) +lean_object* x_332; lean_object* x_333; +x_332 = lean_ctor_get(x_3, 2); +lean_inc(x_332); +x_333 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_332, x_330); +lean_dec(x_332); +if (lean_obj_tag(x_333) == 0) { -lean_object* x_515; -lean_inc(x_510); -x_515 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_510, x_3); -if (lean_obj_tag(x_515) == 0) +lean_object* x_334; +lean_inc(x_330); +x_334 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_330, x_3); +if (lean_obj_tag(x_334) == 0) { -lean_object* x_516; lean_object* x_517; uint8_t x_518; -x_516 = lean_ctor_get(x_515, 1); -lean_inc(x_516); -x_517 = lean_ctor_get(x_515, 0); -lean_inc(x_517); -lean_dec(x_515); -x_518 = !lean_is_exclusive(x_516); -if (x_518 == 0) +lean_object* x_335; lean_object* x_336; uint8_t x_337; +x_335 = lean_ctor_get(x_334, 1); +lean_inc(x_335); +x_336 = lean_ctor_get(x_334, 0); +lean_inc(x_336); +lean_dec(x_334); +x_337 = !lean_is_exclusive(x_335); +if (x_337 == 0) { -lean_object* x_519; lean_object* x_520; -x_519 = lean_ctor_get(x_516, 2); -lean_inc(x_517); -x_520 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_519, x_510, x_517); -lean_ctor_set(x_516, 2, x_520); -x_13 = x_517; -x_14 = x_516; +lean_object* x_338; lean_object* x_339; +x_338 = lean_ctor_get(x_335, 2); +lean_inc(x_336); +x_339 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_338, x_330, x_336); +lean_ctor_set(x_335, 2, x_339); +x_13 = x_336; +x_14 = x_335; goto block_21; } else { -lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; -x_521 = lean_ctor_get(x_516, 0); -x_522 = lean_ctor_get(x_516, 1); -x_523 = lean_ctor_get(x_516, 2); -lean_inc(x_523); -lean_inc(x_522); -lean_inc(x_521); -lean_dec(x_516); -lean_inc(x_517); -x_524 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_523, x_510, x_517); -x_525 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_525, 0, x_521); -lean_ctor_set(x_525, 1, x_522); -lean_ctor_set(x_525, 2, x_524); -x_13 = x_517; -x_14 = x_525; +lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; +x_340 = lean_ctor_get(x_335, 0); +x_341 = lean_ctor_get(x_335, 1); +x_342 = lean_ctor_get(x_335, 2); +lean_inc(x_342); +lean_inc(x_341); +lean_inc(x_340); +lean_dec(x_335); +lean_inc(x_336); +x_343 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_342, x_330, x_336); +x_344 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_344, 0, x_340); +lean_ctor_set(x_344, 1, x_341); +lean_ctor_set(x_344, 2, x_343); +x_13 = x_336; +x_14 = x_344; goto block_21; } } else { -uint8_t x_526; -lean_dec(x_510); +uint8_t x_345; +lean_dec(x_330); lean_dec(x_2); -x_526 = !lean_is_exclusive(x_515); -if (x_526 == 0) +x_345 = !lean_is_exclusive(x_334); +if (x_345 == 0) { -return x_515; +return x_334; } else { -lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_515, 0); -x_528 = lean_ctor_get(x_515, 1); -lean_inc(x_528); -lean_inc(x_527); -lean_dec(x_515); -x_529 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_529, 0, x_527); -lean_ctor_set(x_529, 1, x_528); -return x_529; +lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_346 = lean_ctor_get(x_334, 0); +x_347 = lean_ctor_get(x_334, 1); +lean_inc(x_347); +lean_inc(x_346); +lean_dec(x_334); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_346); +lean_ctor_set(x_348, 1, x_347); +return x_348; } } } else { -lean_object* x_530; -lean_dec(x_510); -x_530 = lean_ctor_get(x_514, 0); -lean_inc(x_530); -lean_dec(x_514); -x_13 = x_530; -x_14 = x_3; -goto block_21; -} -} -} -else -{ -lean_object* x_531; lean_object* x_532; -x_531 = lean_ctor_get(x_3, 2); -lean_inc(x_531); -x_532 = l_HashMapImp_find___at___private_Init_Lean_MetavarContext_2__visit___spec__1(x_531, x_510); -lean_dec(x_531); -if (lean_obj_tag(x_532) == 0) -{ -lean_object* x_533; -lean_inc(x_510); -x_533 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_510, x_3); -if (lean_obj_tag(x_533) == 0) -{ -lean_object* x_534; lean_object* x_535; uint8_t x_536; -x_534 = lean_ctor_get(x_533, 1); -lean_inc(x_534); -x_535 = lean_ctor_get(x_533, 0); -lean_inc(x_535); -lean_dec(x_533); -x_536 = !lean_is_exclusive(x_534); -if (x_536 == 0) -{ -lean_object* x_537; lean_object* x_538; -x_537 = lean_ctor_get(x_534, 2); -lean_inc(x_535); -x_538 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_537, x_510, x_535); -lean_ctor_set(x_534, 2, x_538); -x_13 = x_535; -x_14 = x_534; -goto block_21; -} -else -{ -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; -x_539 = lean_ctor_get(x_534, 0); -x_540 = lean_ctor_get(x_534, 1); -x_541 = lean_ctor_get(x_534, 2); -lean_inc(x_541); -lean_inc(x_540); -lean_inc(x_539); -lean_dec(x_534); -lean_inc(x_535); -x_542 = l_HashMapImp_insert___at___private_Init_Lean_MetavarContext_2__visit___spec__3(x_541, x_510, x_535); -x_543 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_543, 0, x_539); -lean_ctor_set(x_543, 1, x_540); -lean_ctor_set(x_543, 2, x_542); -x_13 = x_535; -x_14 = x_543; -goto block_21; -} -} -else -{ -uint8_t x_544; -lean_dec(x_510); -lean_dec(x_2); -x_544 = !lean_is_exclusive(x_533); -if (x_544 == 0) -{ -return x_533; -} -else -{ -lean_object* x_545; lean_object* x_546; lean_object* x_547; -x_545 = lean_ctor_get(x_533, 0); -x_546 = lean_ctor_get(x_533, 1); -lean_inc(x_546); -lean_inc(x_545); -lean_dec(x_533); -x_547 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_547, 0, x_545); -lean_ctor_set(x_547, 1, x_546); -return x_547; -} -} -} -else -{ -lean_object* x_548; -lean_dec(x_510); -x_548 = lean_ctor_get(x_532, 0); -lean_inc(x_548); -lean_dec(x_532); -x_13 = x_548; +lean_object* x_349; +lean_dec(x_330); +x_349 = lean_ctor_get(x_333, 0); +lean_inc(x_349); +lean_dec(x_333); +x_13 = x_349; x_14 = x_3; goto block_21; } @@ -40111,11 +30230,11 @@ goto block_21; } default: { -lean_object* x_549; -x_549 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_549, 0, x_2); -lean_ctor_set(x_549, 1, x_3); -return x_549; +lean_object* x_350; +x_350 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_350, 0, x_2); +lean_ctor_set(x_350, 1, x_3); +return x_350; } } block_12: @@ -40134,7 +30253,7 @@ else lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_dec(x_4); lean_dec(x_2); -x_8 = l_Lean_Expr_inhabited; +x_8 = l_Lean_Expr_Inhabited; x_9 = l_Lean_Expr_updateMData_x21___closed__2; x_10 = lean_panic_fn(x_9); x_11 = lean_alloc_ctor(0, 2, 0); @@ -40159,7 +30278,7 @@ else lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_dec(x_13); lean_dec(x_2); -x_17 = l_Lean_Expr_inhabited; +x_17 = l_Lean_Expr_Inhabited; x_18 = l_Lean_Expr_updateProj_x21___closed__2; x_19 = lean_panic_fn(x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -40212,11 +30331,11 @@ lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_Lean_Expr_6__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Expr_6__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Expr_5__withAppRevAux___main___at___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } @@ -40251,399 +30370,203 @@ lean_object* l_Lean_MetavarContext_MkBinding_elimMVarDeps(lean_object* x_1, lean _start: { uint8_t x_4; -x_4 = lean_expr_has_expr_mvar(x_2); +x_4 = l_Lean_Expr_hasMVar(x_2); if (x_4 == 0) { -uint8_t x_5; -x_5 = lean_expr_has_level_mvar(x_2); -if (x_5 == 0) -{ -lean_object* x_6; -x_6 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_6, 0, x_2); -lean_ctor_set(x_6, 1, x_3); -return x_6; +lean_object* x_5; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_2); +lean_ctor_set(x_5, 1, x_3); +return x_5; } else { -uint8_t x_7; -x_7 = !lean_is_exclusive(x_3); -if (x_7 == 0) +uint8_t x_6; +x_6 = !lean_is_exclusive(x_3); +if (x_6 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_3, 2); -x_9 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_3, 2, x_9); -x_10 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_3); -if (lean_obj_tag(x_10) == 0) +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_3, 2); +x_8 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_3, 2, x_8); +x_9 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_3); +if (lean_obj_tag(x_9) == 0) { -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_10, 1); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_9, 1); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -lean_object* x_14; -x_14 = lean_ctor_get(x_12, 2); -lean_dec(x_14); -lean_ctor_set(x_12, 2, x_8); -return x_10; +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 2); +lean_dec(x_13); +lean_ctor_set(x_11, 2, x_7); +return x_9; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_12, 0); -x_16 = lean_ctor_get(x_12, 1); -lean_inc(x_16); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_ctor_get(x_11, 1); lean_inc(x_15); -lean_dec(x_12); -x_17 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -lean_ctor_set(x_17, 2, x_8); -lean_ctor_set(x_10, 1, x_17); -return x_10; +lean_inc(x_14); +lean_dec(x_11); +x_16 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set(x_16, 2, x_7); +lean_ctor_set(x_9, 1, x_16); +return x_9; } } 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; -x_18 = lean_ctor_get(x_10, 1); -x_19 = lean_ctor_get(x_10, 0); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_17 = lean_ctor_get(x_9, 1); +x_18 = lean_ctor_get(x_9, 0); +lean_inc(x_17); lean_inc(x_18); +lean_dec(x_9); +x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); -lean_dec(x_10); -x_20 = lean_ctor_get(x_18, 0); +x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - lean_ctor_release(x_18, 2); - x_22 = x_18; +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + lean_ctor_release(x_17, 2); + x_21 = x_17; } else { - lean_dec_ref(x_18); - x_22 = lean_box(0); + lean_dec_ref(x_17); + x_21 = lean_box(0); } -if (lean_is_scalar(x_22)) { - x_23 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_21)) { + x_22 = lean_alloc_ctor(0, 3, 0); } else { - x_23 = x_22; + x_22 = x_21; } -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_21); -lean_ctor_set(x_23, 2, x_8); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_19); -lean_ctor_set(x_24, 1, x_23); -return x_24; +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_20); +lean_ctor_set(x_22, 2, x_7); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_18); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } else { -uint8_t x_25; -lean_dec(x_8); -x_25 = !lean_is_exclusive(x_10); -if (x_25 == 0) +uint8_t x_24; +lean_dec(x_7); +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) { -return x_10; +return x_9; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_10, 0); -x_27 = lean_ctor_get(x_10, 1); -lean_inc(x_27); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); lean_inc(x_26); -lean_dec(x_10); -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_9); +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_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_29 = lean_ctor_get(x_3, 0); -x_30 = lean_ctor_get(x_3, 1); -x_31 = lean_ctor_get(x_3, 2); -lean_inc(x_31); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_28 = lean_ctor_get(x_3, 0); +x_29 = lean_ctor_get(x_3, 1); +x_30 = lean_ctor_get(x_3, 2); lean_inc(x_30); lean_inc(x_29); +lean_inc(x_28); lean_dec(x_3); -x_32 = l_HashMap_Inhabited___closed__1; -x_33 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_33, 0, x_29); -lean_ctor_set(x_33, 1, x_30); -lean_ctor_set(x_33, 2, x_32); -x_34 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_33); -if (lean_obj_tag(x_34) == 0) +x_31 = l_HashMap_Inhabited___closed__1; +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_28); +lean_ctor_set(x_32, 1, x_29); +lean_ctor_set(x_32, 2, x_31); +x_33 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_32); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_35 = lean_ctor_get(x_34, 1); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_37 = x_34; +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_36 = x_33; } else { - lean_dec_ref(x_34); - x_37 = lean_box(0); + lean_dec_ref(x_33); + x_36 = lean_box(0); } -x_38 = lean_ctor_get(x_35, 0); +x_37 = lean_ctor_get(x_34, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_34, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_35, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - lean_ctor_release(x_35, 2); - x_40 = x_35; -} else { - lean_dec_ref(x_35); - x_40 = lean_box(0); -} -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 3, 0); -} else { - x_41 = x_40; -} -lean_ctor_set(x_41, 0, x_38); -lean_ctor_set(x_41, 1, x_39); -lean_ctor_set(x_41, 2, x_31); -if (lean_is_scalar(x_37)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_37; -} -lean_ctor_set(x_42, 0, x_36); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_31); -x_43 = lean_ctor_get(x_34, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_34, 1); -lean_inc(x_44); if (lean_is_exclusive(x_34)) { lean_ctor_release(x_34, 0); lean_ctor_release(x_34, 1); - x_45 = x_34; + lean_ctor_release(x_34, 2); + x_39 = x_34; } else { lean_dec_ref(x_34); - x_45 = lean_box(0); + x_39 = lean_box(0); } -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(0, 3, 0); } else { - x_46 = x_45; -} -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; -} + x_40 = x_39; } +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_40, 2, x_30); +if (lean_is_scalar(x_36)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_36; } +lean_ctor_set(x_41, 0, x_35); +lean_ctor_set(x_41, 1, x_40); +return x_41; } else { -uint8_t x_47; -x_47 = !lean_is_exclusive(x_3); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_3, 2); -x_49 = l_HashMap_Inhabited___closed__1; -lean_ctor_set(x_3, 2, x_49); -x_50 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_3); -if (lean_obj_tag(x_50) == 0) -{ -uint8_t x_51; -x_51 = !lean_is_exclusive(x_50); -if (x_51 == 0) -{ -lean_object* x_52; uint8_t x_53; -x_52 = lean_ctor_get(x_50, 1); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_52, 2); -lean_dec(x_54); -lean_ctor_set(x_52, 2, x_48); -return x_50; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_52, 0); -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_52); -x_57 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -lean_ctor_set(x_57, 2, x_48); -lean_ctor_set(x_50, 1, x_57); -return x_50; -} -} -else -{ -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_50, 1); -x_59 = lean_ctor_get(x_50, 0); -lean_inc(x_58); -lean_inc(x_59); -lean_dec(x_50); -x_60 = lean_ctor_get(x_58, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - lean_ctor_release(x_58, 2); - x_62 = x_58; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_30); +x_42 = lean_ctor_get(x_33, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_33, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_44 = x_33; } else { - lean_dec_ref(x_58); - x_62 = lean_box(0); + lean_dec_ref(x_33); + x_44 = lean_box(0); } -if (lean_is_scalar(x_62)) { - x_63 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(1, 2, 0); } else { - x_63 = x_62; + x_45 = x_44; } -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_61); -lean_ctor_set(x_63, 2, x_48); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_59); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -else -{ -uint8_t x_65; -lean_dec(x_48); -x_65 = !lean_is_exclusive(x_50); -if (x_65 == 0) -{ -return x_50; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_50, 0); -x_67 = lean_ctor_get(x_50, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_50); -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; -} -} -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_69 = lean_ctor_get(x_3, 0); -x_70 = lean_ctor_get(x_3, 1); -x_71 = lean_ctor_get(x_3, 2); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_3); -x_72 = l_HashMap_Inhabited___closed__1; -x_73 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_73, 0, x_69); -lean_ctor_set(x_73, 1, x_70); -lean_ctor_set(x_73, 2, x_72); -x_74 = l___private_Init_Lean_MetavarContext_22__elimMVarDepsAux___main(x_1, x_2, x_73); -if (lean_obj_tag(x_74) == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 0); -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_74); - x_77 = lean_box(0); -} -x_78 = lean_ctor_get(x_75, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_75, 1); -lean_inc(x_79); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - lean_ctor_release(x_75, 2); - x_80 = x_75; -} else { - lean_dec_ref(x_75); - x_80 = lean_box(0); -} -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(0, 3, 0); -} else { - x_81 = x_80; -} -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_79); -lean_ctor_set(x_81, 2, x_71); -if (lean_is_scalar(x_77)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_77; -} -lean_ctor_set(x_82, 0, x_76); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_71); -x_83 = lean_ctor_get(x_74, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_74, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_85 = x_74; -} else { - lean_dec_ref(x_74); - x_85 = lean_box(0); -} -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(1, 2, 0); -} else { - x_86 = x_85; -} -lean_ctor_set(x_86, 0, x_83); -lean_ctor_set(x_86, 1, x_84); -return x_86; +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +return x_45; } } } @@ -40662,7 +30585,7 @@ lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkBinding___spec_ _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Lean_Expr_inhabited; +x_8 = l_Lean_Expr_Inhabited; x_9 = lean_array_get(x_8, x_1, x_2); x_10 = l_Lean_LocalContext_findFVar(x_3, x_9); lean_dec(x_9); @@ -40706,14 +30629,14 @@ lean_dec(x_21); if (x_5 == 0) { lean_object* x_23; -x_23 = lean_expr_mk_forall(x_16, x_18, x_22, x_6); +x_23 = l_Lean_mkForall(x_16, x_18, x_22, x_6); lean_ctor_set(x_19, 0, x_23); return x_19; } else { lean_object* x_24; -x_24 = lean_expr_mk_lambda(x_16, x_18, x_22, x_6); +x_24 = l_Lean_mkLambda(x_16, x_18, x_22, x_6); lean_ctor_set(x_19, 0, x_24); return x_19; } @@ -40731,7 +30654,7 @@ lean_dec(x_25); if (x_5 == 0) { lean_object* x_28; lean_object* x_29; -x_28 = lean_expr_mk_forall(x_16, x_18, x_27, x_6); +x_28 = l_Lean_mkForall(x_16, x_18, x_27, x_6); x_29 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_26); @@ -40740,7 +30663,7 @@ return x_29; else { lean_object* x_30; lean_object* x_31; -x_30 = lean_expr_mk_lambda(x_16, x_18, x_27, x_6); +x_30 = l_Lean_mkLambda(x_16, x_18, x_27, x_6); x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_26); @@ -40817,80 +30740,82 @@ uint8_t x_47; x_47 = !lean_is_exclusive(x_46); if (x_47 == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; x_48 = lean_ctor_get(x_46, 0); x_49 = lean_expr_abstract_range(x_48, x_2, x_1); lean_dec(x_48); -x_50 = lean_expr_mk_let(x_36, x_45, x_49, x_6); -lean_ctor_set(x_46, 0, x_50); +x_50 = 0; +x_51 = l_Lean_mkLet(x_36, x_45, x_49, x_6, x_50); +lean_ctor_set(x_46, 0, x_51); return x_46; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_51 = lean_ctor_get(x_46, 0); -x_52 = lean_ctor_get(x_46, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; +x_52 = lean_ctor_get(x_46, 0); +x_53 = lean_ctor_get(x_46, 1); +lean_inc(x_53); lean_inc(x_52); -lean_inc(x_51); lean_dec(x_46); -x_53 = lean_expr_abstract_range(x_51, x_2, x_1); -lean_dec(x_51); -x_54 = lean_expr_mk_let(x_36, x_45, x_53, x_6); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -return x_55; +x_54 = lean_expr_abstract_range(x_52, x_2, x_1); +lean_dec(x_52); +x_55 = 0; +x_56 = l_Lean_mkLet(x_36, x_45, x_54, x_6, x_55); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_53); +return x_57; } } else { -uint8_t x_56; +uint8_t x_58; lean_dec(x_45); lean_dec(x_36); lean_dec(x_6); -x_56 = !lean_is_exclusive(x_46); -if (x_56 == 0) +x_58 = !lean_is_exclusive(x_46); +if (x_58 == 0) { return x_46; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_46, 0); -x_58 = lean_ctor_get(x_46, 1); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_46, 0); +x_60 = lean_ctor_get(x_46, 1); +lean_inc(x_60); +lean_inc(x_59); lean_dec(x_46); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +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; } } } else { -uint8_t x_60; +uint8_t x_62; lean_dec(x_38); lean_dec(x_36); lean_dec(x_6); -x_60 = !lean_is_exclusive(x_42); -if (x_60 == 0) +x_62 = !lean_is_exclusive(x_42); +if (x_62 == 0) { return x_42; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_42, 0); -x_62 = lean_ctor_get(x_42, 1); -lean_inc(x_62); -lean_inc(x_61); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_42, 0); +x_64 = lean_ctor_get(x_42, 1); +lean_inc(x_64); +lean_inc(x_63); lean_dec(x_42); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +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; } } } @@ -41066,13 +30991,13 @@ x_6 = l_Lean_MetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkBindi return x_6; } } -uint8_t l_Lean_MetavarContext_isWellFormed___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_MetavarContext_isWellFormed___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_3)) { case 1: { -lean_object* x_4; uint8_t x_5; +lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_dec(x_1); x_4 = lean_ctor_get(x_3, 0); lean_inc(x_4); @@ -41080,317 +31005,348 @@ lean_dec(x_3); x_5 = l_Lean_LocalContext_contains(x_2, x_4); lean_dec(x_4); lean_dec(x_2); -return x_5; +x_6 = lean_box(x_5); +return x_6; } case 2: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); lean_dec(x_3); -x_7 = l_Lean_MetavarContext_getDecl(x_1, x_6); -x_8 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_dec(x_7); +x_8 = l_Lean_MetavarContext_getDecl(x_1, x_7); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); lean_inc(x_2); -x_9 = l_Lean_LocalContext_isSubPrefixOf(x_8, x_2); -if (x_9 == 0) +x_10 = l_Lean_LocalContext_isSubPrefixOf(x_9, x_2); +if (x_10 == 0) { -lean_object* x_10; +lean_object* x_11; lean_inc(x_1); -x_10 = lean_metavar_ctx_get_expr_assignment(x_1, x_6); -if (lean_obj_tag(x_10) == 0) +x_11 = lean_metavar_ctx_get_expr_assignment(x_1, x_7); +if (lean_obj_tag(x_11) == 0) { -uint8_t x_11; +uint8_t x_12; lean_object* x_13; lean_dec(x_2); lean_dec(x_1); -x_11 = 0; -return x_11; +x_12 = 0; +x_13 = lean_box(x_12); +return x_13; } else { -lean_object* x_12; -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_3 = x_12; +lean_object* x_14; +x_14 = lean_ctor_get(x_11, 0); +lean_inc(x_14); +lean_dec(x_11); +x_3 = x_14; goto _start; } } else { -uint8_t x_14; -lean_dec(x_6); +uint8_t x_16; lean_object* x_17; +lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_14 = 1; -return x_14; +x_16 = 1; +x_17 = lean_box(x_16); +return x_17; } } case 5: { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_3, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_3, 1); -lean_inc(x_16); -x_17 = lean_expr_has_expr_mvar(x_3); -if (x_17 == 0) -{ -uint8_t x_18; -x_18 = lean_expr_has_fvar(x_3); -lean_dec(x_3); -if (x_18 == 0) -{ -uint8_t x_19; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_2); -lean_dec(x_1); -x_19 = 0; -return x_19; -} -else -{ -uint8_t x_20; -lean_inc(x_2); -lean_inc(x_1); -x_20 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_15); +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_3, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_3, 1); +lean_inc(x_19); +x_20 = l_Lean_Expr_hasExprMVar(x_3); if (x_20 == 0) { uint8_t x_21; -lean_dec(x_16); +x_21 = l_Lean_Expr_hasFVar(x_3); +lean_dec(x_3); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; +lean_dec(x_19); +lean_dec(x_18); lean_dec(x_2); lean_dec(x_1); -x_21 = 0; -return x_21; +x_22 = 0; +x_23 = lean_box(x_22); +return x_23; } else { -x_3 = x_16; +lean_object* x_24; uint8_t x_25; +lean_inc(x_2); +lean_inc(x_1); +x_24 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_18); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; +lean_dec(x_19); +lean_dec(x_2); +lean_dec(x_1); +x_26 = 0; +x_27 = lean_box(x_26); +return x_27; +} +else +{ +x_3 = x_19; goto _start; } } } else { -uint8_t x_23; +lean_object* x_29; uint8_t x_30; lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); -x_23 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_15); -if (x_23 == 0) +x_29 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_18); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) { -uint8_t x_24; -lean_dec(x_16); +uint8_t x_31; lean_object* x_32; +lean_dec(x_19); lean_dec(x_2); lean_dec(x_1); -x_24 = 0; -return x_24; +x_31 = 0; +x_32 = lean_box(x_31); +return x_32; } else { -x_3 = x_16; +x_3 = x_19; goto _start; } } } case 6: { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_3, 1); -lean_inc(x_26); -x_27 = lean_ctor_get(x_3, 2); -lean_inc(x_27); -x_28 = lean_expr_has_expr_mvar(x_3); -if (x_28 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_3, 1); +lean_inc(x_34); +x_35 = lean_ctor_get(x_3, 2); +lean_inc(x_35); +x_36 = l_Lean_Expr_hasExprMVar(x_3); +if (x_36 == 0) { -uint8_t x_29; -x_29 = lean_expr_has_fvar(x_3); +uint8_t x_37; +x_37 = l_Lean_Expr_hasFVar(x_3); lean_dec(x_3); -if (x_29 == 0) +if (x_37 == 0) { -uint8_t x_30; -lean_dec(x_27); -lean_dec(x_26); +uint8_t x_38; lean_object* x_39; +lean_dec(x_35); +lean_dec(x_34); lean_dec(x_2); lean_dec(x_1); -x_30 = 0; -return x_30; +x_38 = 0; +x_39 = lean_box(x_38); +return x_39; } else { -uint8_t x_31; +lean_object* x_40; uint8_t x_41; lean_inc(x_2); lean_inc(x_1); -x_31 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_26); -if (x_31 == 0) +x_40 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_34); +x_41 = lean_unbox(x_40); +lean_dec(x_40); +if (x_41 == 0) { -uint8_t x_32; -lean_dec(x_27); +uint8_t x_42; lean_object* x_43; +lean_dec(x_35); lean_dec(x_2); lean_dec(x_1); -x_32 = 0; -return x_32; +x_42 = 0; +x_43 = lean_box(x_42); +return x_43; } else { -x_3 = x_27; +x_3 = x_35; goto _start; } } } else { -uint8_t x_34; +lean_object* x_45; uint8_t x_46; lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); -x_34 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_26); -if (x_34 == 0) +x_45 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_34); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) { -uint8_t x_35; -lean_dec(x_27); +uint8_t x_47; lean_object* x_48; +lean_dec(x_35); lean_dec(x_2); lean_dec(x_1); -x_35 = 0; -return x_35; +x_47 = 0; +x_48 = lean_box(x_47); +return x_48; } else { -x_3 = x_27; +x_3 = x_35; goto _start; } } } case 7: { -lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_37 = lean_ctor_get(x_3, 1); -lean_inc(x_37); -x_38 = lean_ctor_get(x_3, 2); -lean_inc(x_38); -x_39 = lean_expr_has_expr_mvar(x_3); -if (x_39 == 0) +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = lean_ctor_get(x_3, 1); +lean_inc(x_50); +x_51 = lean_ctor_get(x_3, 2); +lean_inc(x_51); +x_52 = l_Lean_Expr_hasExprMVar(x_3); +if (x_52 == 0) { -uint8_t x_40; -x_40 = lean_expr_has_fvar(x_3); +uint8_t x_53; +x_53 = l_Lean_Expr_hasFVar(x_3); lean_dec(x_3); -if (x_40 == 0) +if (x_53 == 0) { -uint8_t x_41; -lean_dec(x_38); -lean_dec(x_37); +uint8_t x_54; lean_object* x_55; +lean_dec(x_51); +lean_dec(x_50); lean_dec(x_2); lean_dec(x_1); -x_41 = 0; -return x_41; +x_54 = 0; +x_55 = lean_box(x_54); +return x_55; } else { -uint8_t x_42; +lean_object* x_56; uint8_t x_57; lean_inc(x_2); lean_inc(x_1); -x_42 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_37); -if (x_42 == 0) +x_56 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_50); +x_57 = lean_unbox(x_56); +lean_dec(x_56); +if (x_57 == 0) { -uint8_t x_43; -lean_dec(x_38); +uint8_t x_58; lean_object* x_59; +lean_dec(x_51); lean_dec(x_2); lean_dec(x_1); -x_43 = 0; -return x_43; +x_58 = 0; +x_59 = lean_box(x_58); +return x_59; } else { -x_3 = x_38; +x_3 = x_51; goto _start; } } } else { -uint8_t x_45; +lean_object* x_61; uint8_t x_62; lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); -x_45 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_37); -if (x_45 == 0) +x_61 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_50); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) { -uint8_t x_46; -lean_dec(x_38); +uint8_t x_63; lean_object* x_64; +lean_dec(x_51); lean_dec(x_2); lean_dec(x_1); -x_46 = 0; -return x_46; +x_63 = 0; +x_64 = lean_box(x_63); +return x_64; } else { -x_3 = x_38; +x_3 = x_51; goto _start; } } } case 8: { -lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_48 = lean_ctor_get(x_3, 1); -lean_inc(x_48); -x_49 = lean_ctor_get(x_3, 2); -lean_inc(x_49); -x_50 = lean_ctor_get(x_3, 3); -lean_inc(x_50); -x_51 = lean_expr_has_expr_mvar(x_3); -if (x_51 == 0) +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_3, 1); +lean_inc(x_66); +x_67 = lean_ctor_get(x_3, 2); +lean_inc(x_67); +x_68 = lean_ctor_get(x_3, 3); +lean_inc(x_68); +x_69 = l_Lean_Expr_hasExprMVar(x_3); +if (x_69 == 0) { -uint8_t x_52; -x_52 = lean_expr_has_fvar(x_3); +uint8_t x_70; +x_70 = l_Lean_Expr_hasFVar(x_3); lean_dec(x_3); -if (x_52 == 0) +if (x_70 == 0) { -uint8_t x_53; -lean_dec(x_50); -lean_dec(x_49); -lean_dec(x_48); +uint8_t x_71; lean_object* x_72; +lean_dec(x_68); +lean_dec(x_67); +lean_dec(x_66); lean_dec(x_2); lean_dec(x_1); -x_53 = 0; -return x_53; +x_71 = 0; +x_72 = lean_box(x_71); +return x_72; } else { -uint8_t x_54; +lean_object* x_73; uint8_t x_74; lean_inc(x_2); lean_inc(x_1); -x_54 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_48); -if (x_54 == 0) +x_73 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_66); +x_74 = lean_unbox(x_73); +lean_dec(x_73); +if (x_74 == 0) { -uint8_t x_55; -lean_dec(x_50); -lean_dec(x_49); +uint8_t x_75; lean_object* x_76; +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_2); lean_dec(x_1); -x_55 = 0; -return x_55; +x_75 = 0; +x_76 = lean_box(x_75); +return x_76; } else { -uint8_t x_56; +lean_object* x_77; uint8_t x_78; lean_inc(x_2); lean_inc(x_1); -x_56 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_49); -if (x_56 == 0) +x_77 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_67); +x_78 = lean_unbox(x_77); +lean_dec(x_77); +if (x_78 == 0) { -uint8_t x_57; -lean_dec(x_50); +uint8_t x_79; lean_object* x_80; +lean_dec(x_68); lean_dec(x_2); lean_dec(x_1); -x_57 = 0; -return x_57; +x_79 = 0; +x_80 = lean_box(x_79); +return x_80; } else { -x_3 = x_50; +x_3 = x_68; goto _start; } } @@ -41398,39 +31354,45 @@ goto _start; } else { -uint8_t x_59; +lean_object* x_82; uint8_t x_83; lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); -x_59 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_48); -if (x_59 == 0) +x_82 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_66); +x_83 = lean_unbox(x_82); +lean_dec(x_82); +if (x_83 == 0) { -uint8_t x_60; -lean_dec(x_50); -lean_dec(x_49); +uint8_t x_84; lean_object* x_85; +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_2); lean_dec(x_1); -x_60 = 0; -return x_60; +x_84 = 0; +x_85 = lean_box(x_84); +return x_85; } else { -uint8_t x_61; +lean_object* x_86; uint8_t x_87; lean_inc(x_2); lean_inc(x_1); -x_61 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_49); -if (x_61 == 0) +x_86 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_67); +x_87 = lean_unbox(x_86); +lean_dec(x_86); +if (x_87 == 0) { -uint8_t x_62; -lean_dec(x_50); +uint8_t x_88; lean_object* x_89; +lean_dec(x_68); lean_dec(x_2); lean_dec(x_1); -x_62 = 0; -return x_62; +x_88 = 0; +x_89 = lean_box(x_88); +return x_89; } else { -x_3 = x_50; +x_3 = x_68; goto _start; } } @@ -41438,60 +31400,54 @@ goto _start; } case 10: { -lean_object* x_64; -x_64 = lean_ctor_get(x_3, 1); -lean_inc(x_64); +lean_object* x_91; +x_91 = lean_ctor_get(x_3, 1); +lean_inc(x_91); lean_dec(x_3); -x_3 = x_64; +x_3 = x_91; goto _start; } case 11: { -lean_object* x_66; -x_66 = lean_ctor_get(x_3, 2); -lean_inc(x_66); +lean_object* x_93; +x_93 = lean_ctor_get(x_3, 2); +lean_inc(x_93); lean_dec(x_3); -x_3 = x_66; +x_3 = x_93; goto _start; } -default: +case 12: { -uint8_t x_68; +uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = 1; -return x_68; +x_95 = l_Bool_Inhabited; +x_96 = lean_box(x_95); +x_97 = l_unreachable_x21___rarg(x_96); +return x_97; +} +default: +{ +uint8_t x_98; lean_object* x_99; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = 1; +x_99 = lean_box(x_98); +return x_99; } } } } -lean_object* l_Lean_MetavarContext_isWellFormed___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_MetavarContext_isWellFormed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_5; -x_4 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} -uint8_t l_Lean_MetavarContext_isWellFormed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; +lean_object* x_4; x_4 = l_Lean_MetavarContext_isWellFormed___main(x_1, x_2, x_3); return x_4; } } -lean_object* l_Lean_MetavarContext_isWellFormed___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = l_Lean_MetavarContext_isWellFormed(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} lean_object* initialize_Init_Data_Nat_Default(lean_object*); lean_object* initialize_Init_Data_Option_Default(lean_object*); lean_object* initialize_Init_Control_Reader(lean_object*); diff --git a/stage0/library/Init/Lean/Parser/Parser.c b/stage0/library/Init/Lean/Parser/Parser.c index 97c9a84e4c..34b67381e0 100644 --- a/stage0/library/Init/Lean/Parser/Parser.c +++ b/stage0/library/Init/Lean/Parser/Parser.c @@ -127,6 +127,7 @@ lean_object* l_Lean_Parser_ParserAttribute_runParser(lean_object*, lean_object*, lean_object* l_Lean_Parser_runBuiltinParser___rarg___boxed(lean_object*); lean_object* l_List_hasDecEq___main___at_Lean_Parser_Error_toString___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Parser_mkParserContextCore___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_Parser_takeUntilFn___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_takeUntilFn___main___at_Lean_Parser_binNumberFn___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Parser_strLitFnAux___boxed(lean_object*, lean_object*, lean_object*); @@ -165,7 +166,6 @@ lean_object* l___private_Init_Lean_Parser_Parser_5__tokenFnAux(lean_object*, lea lean_object* l_Lean_Syntax_getOptional(lean_object*); lean_object* l_Lean_Parser_initCacheForInput(lean_object*); lean_object* l_Lean_Parser_rawFn___boxed(lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Environment_5__envExtensionsRef; lean_object* l_Lean_Parser_TokenTableAttribute_inhabited___closed__4; lean_object* l_Lean_Parser_takeUntilFn___main___at_Lean_Parser_whitespace___main___spec__1(lean_object*, lean_object*); @@ -237,6 +237,7 @@ lean_object* l_List_foldl___main___at_Lean_Parser_addBuiltinLeadingParser___spec lean_object* l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Parser_getSyntaxNodeKinds(lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Parser_checkWsBeforeFn___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_takeUntilFn___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; @@ -330,7 +331,6 @@ lean_object* l_Lean_AttributeImpl_inhabited___lambda__5(lean_object*, lean_objec lean_object* l_Lean_Parser_currLbp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_symbolNoWsFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_ParserState_mkEOIError___closed__1; -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_Parser_hashOrelse___boxed(lean_object*); lean_object* l_Lean_Syntax_mfoldArgsAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_symbolNoWsInfo___elambda__2(lean_object*, lean_object*, lean_object*); @@ -26628,7 +26628,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -26638,7 +26638,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -26648,7 +26648,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_declareBuiltinParser___closed__3; x_2 = l_Lean_Parser_declareBuiltinParser___closed__4; -x_3 = lean_expr_mk_app(x_1, x_2); +x_3 = l_Lean_mkApp(x_1, x_2); return x_3; } } @@ -26677,11 +26677,11 @@ x_6 = l_Lean_Parser_declareBuiltinParser___closed__2; lean_inc(x_4); x_7 = l_Lean_Name_append___main(x_6, x_4); x_8 = lean_box(0); -x_9 = lean_expr_mk_const(x_3, x_8); +x_9 = l_Lean_mkConst(x_3, x_8); lean_inc(x_4); x_10 = l_Lean_nameToExprAux___main(x_4); lean_inc(x_4); -x_11 = lean_expr_mk_const(x_4, x_8); +x_11 = l_Lean_mkConst(x_4, x_8); x_12 = l_Lean_Parser_declareBuiltinParser___closed__6; x_13 = lean_array_push(x_12, x_9); x_14 = lean_array_push(x_13, x_10); diff --git a/stage0/library/Init/Lean/ToExpr.c b/stage0/library/Init/Lean/ToExpr.c index ea4c72650b..9800c63237 100644 --- a/stage0/library/Init/Lean/ToExpr.c +++ b/stage0/library/Init/Lean/ToExpr.c @@ -17,7 +17,7 @@ lean_object* l_Lean_strToExpr; lean_object* l_Lean_mkStrLit(lean_object*); lean_object* l_Lean_nameToExprAux___main___closed__3; lean_object* l_Lean_nameToExprAux___main___closed__1; -lean_object* lean_expr_mk_const(lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_nameToExprAux___main___closed__7; lean_object* l_Lean_nameToExprAux___main___closed__8; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -171,7 +171,7 @@ x_5 = lean_name_mk_string(x_3, x_4); x_6 = l_Lean_nameToExprAux___main___closed__3; x_7 = lean_name_mk_string(x_5, x_6); x_8 = lean_box(0); -x_9 = lean_expr_mk_const(x_7, x_8); +x_9 = l_Lean_mkConst(x_7, x_8); return x_9; } case 1: diff --git a/stage0/library/Init/Lean/TypeClass/Basic.c b/stage0/library/Init/Lean/TypeClass/Basic.c index 95144c6247..bf07a07034 100644 --- a/stage0/library/Init/Lean/TypeClass/Basic.c +++ b/stage0/library/Init/Lean/TypeClass/Basic.c @@ -15,12 +15,12 @@ extern "C" { #endif extern lean_object* l_Array_empty___closed__1; extern lean_object* l_PersistentHashMap_empty___rarg___closed__2; +extern lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* l_Lean_TypeClass_synthCommand___closed__1; lean_object* l_PersistentHashMap_empty___at_Lean_TypeClass_synthCommand___spec__1___closed__1; lean_object* l_PersistentHashMap_empty___at_Lean_TypeClass_synthCommand___spec__1; lean_object* l_Queue_empty(lean_object*); lean_object* l_Lean_TypeClass_synth(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* lean_typeclass_synth_command(lean_object*, lean_object*); lean_object* _init_l_PersistentHashMap_empty___at_Lean_TypeClass_synthCommand___spec__1___closed__1() { _start: @@ -55,7 +55,7 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_3 = lean_box(0); -x_4 = l_Lean_Expr_inhabited___closed__1; +x_4 = l_Lean_Expr_Inhabited___closed__1; x_5 = l_Array_empty___closed__1; x_6 = l_Lean_TypeClass_synthCommand___closed__1; x_7 = l_PersistentHashMap_empty___at_Lean_TypeClass_synthCommand___spec__1; diff --git a/stage0/library/Init/Lean/TypeClass/Context.c b/stage0/library/Init/Lean/TypeClass/Context.c index 5d39fe8170..5bd58d28a4 100644 --- a/stage0/library/Init/Lean/TypeClass/Context.c +++ b/stage0/library/Init/Lean/TypeClass/Context.c @@ -24,7 +24,6 @@ lean_object* l_Lean_TypeClass_Context_internalize___closed__4; uint8_t lean_name_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eMetaNormalizeCore___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uMetaIdx(lean_object*); -lean_object* lean_expr_mk_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eOccursIn___boxed(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_bvarIdx_x21(lean_object*); @@ -45,6 +44,7 @@ lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_TypeClass_Context_alphaMetaPrefix___closed__1; lean_object* l_Lean_TypeClass_Context_slowWhnfApp(lean_object*, lean_object*, lean_object*); lean_object* l_RBNode_find___main___at_Lean_TypeClass_Context_uMetaNormalizeCore___main___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uLookupIdx(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_internalize___lambda__3(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uUnify___main___closed__4; @@ -53,7 +53,6 @@ lean_object* l_PersistentArray_get_x21___at_Lean_TypeClass_Context_uLookupIdx___ lean_object* l_Lean_TypeClass_Context_eAssign___closed__3; lean_object* lean_level_mk_mvar(lean_object*); lean_object* l_Lean_TypeClass_Context_eFind___main___boxed(lean_object*, lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eInferIdx(lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l_Lean_TypeClass_Context_eShallowInstantiate(lean_object*, lean_object*); @@ -66,8 +65,10 @@ uint8_t l_Lean_TypeClass_Context_eOccursIn(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eAssign___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uNewMeta(lean_object*); lean_object* l_Lean_TypeClass_Context_uUnify___main___closed__3; +lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_TypeClass_Context_eAssign(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context__u03b1Norm___closed__5; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; lean_object* l_RBNode_fold___main___at_RBMap_size___spec__1___rarg(lean_object*, lean_object*); @@ -98,7 +99,6 @@ uint8_t l_Lean_TypeClass_Context_uFind___main(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context__u03b1Norm___lambda__4(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); uint8_t l_Lean_TypeClass_Context_eFind___main(lean_object*, lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eIsMeta___boxed(lean_object*); lean_object* l_Lean_TypeClass_Context__u03b1Norm___lambda__2(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uIsMeta___boxed(lean_object*); @@ -116,6 +116,7 @@ lean_object* l_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_PersistentArray_get_x21___at_Lean_TypeClass_Context_eInferIdx___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eOccursIn___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eHasETmpMVar___closed__1; +extern lean_object* l_Lean_Expr_Inhabited; uint8_t l_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_TypeClass_Context_uAssign___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TypeClass_Context_eHasTmpMVar(lean_object*); @@ -131,6 +132,7 @@ extern lean_object* l___private_Init_Lean_MetavarContext_5__instantiateDelayedAu lean_object* l_PersistentArray_getAux___main___at_Lean_TypeClass_Context_eInferIdx___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_slowWhnfApp___main___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uAssign___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uUnify(lean_object*, lean_object*, lean_object*); @@ -140,6 +142,7 @@ lean_object* l_Lean_TypeClass_Context_alphaMetaPrefix___closed__2; lean_object* l_Lean_TypeClass_Context__u03b1Norm___lambda__1(lean_object*, lean_object*); extern lean_object* l_unreachable_x21___rarg___closed__2; lean_object* l_PersistentArray_getAux___main___at_Lean_TypeClass_Context_eLookupIdx___spec__2(lean_object*, size_t, size_t); +lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eAssignIdx(lean_object*, lean_object*, lean_object*); lean_object* lean_level_mk_imax(lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); @@ -151,8 +154,6 @@ lean_object* l_Lean_TypeClass_Context_uOccursIn___lambda__1___boxed(lean_object* extern lean_object* l_Lean_Expr_updateConst_x21___closed__1; lean_object* l_Lean_TypeClass_Context_internalize___lambda__4(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -extern lean_object* l_Lean_Expr_inhabited; -lean_object* lean_expr_mk_mvar(lean_object*); lean_object* l_Lean_TypeClass_Context_eHasETmpMVar___boxed(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Lean_TypeClass_Context_eUnify(lean_object*, lean_object*, lean_object*); @@ -161,6 +162,7 @@ lean_object* l_Lean_TypeClass_Context_eInfer___closed__1; lean_object* lean_level_mk_succ(lean_object*); lean_object* l_panic(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eInstantiate___main(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uAssignIdx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_slowWhnfApp___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_RBNode_insert___at_Lean_TypeClass_Context__u03b1Norm___spec__1(lean_object*, lean_object*, lean_object*); @@ -191,19 +193,19 @@ lean_object* l_RBNode_find___main___at_Lean_TypeClass_Context_uMetaNormalizeCore lean_object* l_Lean_TypeClass_Context__u03b1Norm___closed__4; lean_object* l_RBNode_setBlack___rarg(lean_object*); lean_object* l_List_foldr___main___at_Lean_TypeClass_Context_eHasTmpMVar___spec__1___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_TypeClass_Context_eLookupIdx(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eUnify___main___closed__3; -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* l_Lean_TypeClass_Context_uFind___boxed(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_TypeClass_Context_eMetaNormalizeCore___main___spec__1(lean_object*); lean_object* l_Lean_TypeClass_Context_eInferIdx___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_metaPrefix___closed__2; lean_object* l_Lean_TypeClass_Context_eFind___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Expr_hasMVar(lean_object*); uint8_t l_Lean_TypeClass_Context_eOccursIn___lambda__1(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); -lean_object* lean_expr_mk_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eNewMeta(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_internalize(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eAssign___closed__2; @@ -212,12 +214,10 @@ lean_object* l_PersistentArray_getAux___main___at_Lean_TypeClass_Context_uLookup lean_object* l_Lean_TypeClass_Context_eMetaNormalizeCore___main(lean_object*); lean_object* l_Lean_TypeClass_Context_uAssign(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isBVar(lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); lean_object* l_RBNode_ins___main___at_Lean_TypeClass_Context__u03b1Norm___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_getAux___main___at_Lean_TypeClass_Context_uLookupIdx___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uUnify___main(lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_slowWhnf___main(lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_TypeClass_Context_uOccursIn___boxed(lean_object*, lean_object*); @@ -232,7 +232,7 @@ lean_object* l_Lean_TypeClass_Context__u03b1Norm___closed__2; lean_object* l_Lean_TypeClass_Context_uAssign___closed__1; lean_object* l_Lean_TypeClass_Context_uUnify___main___closed__5; lean_object* l_Lean_TypeClass_Context__u03b1Norm___closed__6; -uint8_t lean_expr_has_level_mvar(lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); lean_object* l_Lean_TypeClass_Context_uMetaNormalizeCore___rarg(lean_object*, lean_object*, lean_object*); lean_object* _init_l_Lean_TypeClass_Context_Inhabited___closed__1() { _start: @@ -408,7 +408,7 @@ lean_ctor_set(x_2, 2, x_9); lean_ctor_set(x_2, 1, x_7); x_10 = l_Lean_TypeClass_Context_metaPrefix; x_11 = lean_name_mk_numeral(x_10, x_6); -x_12 = lean_expr_mk_mvar(x_11); +x_12 = l_Lean_mkMVar(x_11); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_2); @@ -435,7 +435,7 @@ lean_ctor_set(x_21, 1, x_18); lean_ctor_set(x_21, 2, x_20); x_22 = l_Lean_TypeClass_Context_metaPrefix; x_23 = lean_name_mk_numeral(x_22, x_17); -x_24 = lean_expr_mk_mvar(x_23); +x_24 = l_Lean_mkMVar(x_23); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_21); @@ -647,7 +647,7 @@ x_16 = lean_ctor_get(x_1, 0); lean_inc(x_16); lean_dec(x_1); x_17 = lean_usize_to_nat(x_2); -x_18 = l_Lean_Expr_inhabited; +x_18 = l_Lean_Expr_Inhabited; x_19 = lean_array_get(x_18, x_16, x_17); lean_dec(x_17); lean_dec(x_16); @@ -682,7 +682,7 @@ lean_inc(x_9); lean_dec(x_1); x_10 = lean_nat_sub(x_2, x_3); lean_dec(x_3); -x_11 = l_Lean_Expr_inhabited; +x_11 = l_Lean_Expr_Inhabited; x_12 = lean_array_get(x_11, x_9, x_10); lean_dec(x_10); lean_dec(x_9); @@ -770,7 +770,7 @@ if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_dec(x_1); -x_4 = l_Lean_Expr_inhabited; +x_4 = l_Lean_Expr_Inhabited; x_5 = l_Lean_TypeClass_Context_eInfer___closed__3; x_6 = lean_panic_fn(x_5); return x_6; @@ -2444,32 +2444,20 @@ uint8_t l_Lean_TypeClass_Context_eHasTmpMVar(lean_object* x_1) { _start: { uint8_t x_2; -x_2 = lean_expr_has_expr_mvar(x_1); +x_2 = l_Lean_Expr_hasMVar(x_1); if (x_2 == 0) { uint8_t x_3; -x_3 = lean_expr_has_level_mvar(x_1); -if (x_3 == 0) -{ -uint8_t x_4; lean_dec(x_1); -x_4 = 0; -return x_4; +x_3 = 0; +return x_3; } else { -lean_object* x_5; uint8_t x_6; -x_5 = l_Lean_TypeClass_Context_eHasTmpMVar___closed__1; -x_6 = l_Lean_TypeClass_Context_eFind___main(x_5, x_1); -return x_6; -} -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = l_Lean_TypeClass_Context_eHasTmpMVar___closed__1; -x_8 = l_Lean_TypeClass_Context_eFind___main(x_7, x_1); -return x_8; +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_TypeClass_Context_eHasTmpMVar___closed__1; +x_5 = l_Lean_TypeClass_Context_eFind___main(x_4, x_1); +return x_5; } } } @@ -2560,7 +2548,7 @@ else { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_7 = lean_array_fget(x_1, x_3); -x_8 = lean_expr_mk_app(x_2, x_7); +x_8 = l_Lean_mkApp(x_2, x_7); x_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_add(x_3, x_9); lean_dec(x_3); @@ -2611,14 +2599,14 @@ else 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; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_3); -x_5 = l_Lean_Expr_inhabited___closed__1; +x_5 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_4); x_6 = lean_mk_array(x_4, x_5); x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_sub(x_4, x_7); lean_dec(x_4); lean_inc(x_1); -x_9 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_6, x_8); +x_9 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_6, x_8); x_10 = l_Lean_Expr_getAppFn___main(x_1); lean_dec(x_1); x_11 = l_Lean_TypeClass_Context_slowWhnf___main(x_10); @@ -2651,7 +2639,7 @@ lean_dec(x_4); x_10 = lean_nat_sub(x_3, x_9); x_11 = lean_nat_sub(x_10, x_8); lean_dec(x_10); -x_12 = l_Lean_Expr_inhabited; +x_12 = l_Lean_Expr_Inhabited; x_13 = lean_array_get(x_12, x_1, x_11); x_14 = lean_array_get(x_12, x_2, x_11); lean_dec(x_11); @@ -2822,83 +2810,59 @@ lean_object* l_Lean_TypeClass_Context_eUnify___main(lean_object* x_1, lean_objec _start: { lean_object* x_4; uint8_t x_189; -x_189 = lean_expr_has_expr_mvar(x_1); +x_189 = l_Lean_Expr_hasMVar(x_1); if (x_189 == 0) { uint8_t x_190; -x_190 = lean_expr_has_level_mvar(x_1); +x_190 = l_Lean_Expr_hasMVar(x_2); if (x_190 == 0) { uint8_t x_191; -x_191 = lean_expr_has_expr_mvar(x_2); +x_191 = lean_expr_eqv(x_1, x_2); if (x_191 == 0) { -uint8_t x_192; -x_192 = lean_expr_has_level_mvar(x_2); -if (x_192 == 0) -{ -uint8_t x_193; -x_193 = lean_expr_eqv(x_1, x_2); -if (x_193 == 0) -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_194 = lean_expr_dbg_to_string(x_1); +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_192 = lean_expr_dbg_to_string(x_1); lean_dec(x_1); -x_195 = l_Lean_TypeClass_Context_eUnify___main___closed__1; -x_196 = lean_string_append(x_195, x_194); -lean_dec(x_194); -x_197 = l_Lean_TypeClass_Context_uUnify___main___closed__2; -x_198 = lean_string_append(x_196, x_197); -x_199 = lean_expr_dbg_to_string(x_2); +x_193 = l_Lean_TypeClass_Context_eUnify___main___closed__1; +x_194 = lean_string_append(x_193, x_192); +lean_dec(x_192); +x_195 = l_Lean_TypeClass_Context_uUnify___main___closed__2; +x_196 = lean_string_append(x_194, x_195); +x_197 = lean_expr_dbg_to_string(x_2); lean_dec(x_2); -x_200 = lean_string_append(x_198, x_199); -lean_dec(x_199); -x_201 = lean_alloc_ctor(1, 2, 0); +x_198 = lean_string_append(x_196, x_197); +lean_dec(x_197); +x_199 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_3); +return x_199; +} +else +{ +lean_object* x_200; lean_object* x_201; +lean_dec(x_2); +lean_dec(x_1); +x_200 = lean_box(0); +x_201 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_201, 0, x_200); lean_ctor_set(x_201, 1, x_3); return x_201; } +} else { -lean_object* x_202; lean_object* x_203; -lean_dec(x_2); -lean_dec(x_1); +lean_object* x_202; x_202 = lean_box(0); -x_203 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_3); -return x_203; -} -} -else -{ -lean_object* x_204; -x_204 = lean_box(0); -x_4 = x_204; +x_4 = x_202; goto block_188; } } else { -lean_object* x_205; -x_205 = lean_box(0); -x_4 = x_205; -goto block_188; -} -} -else -{ -lean_object* x_206; -x_206 = lean_box(0); -x_4 = x_206; -goto block_188; -} -} -else -{ -lean_object* x_207; -x_207 = lean_box(0); -x_4 = x_207; +lean_object* x_203; +x_203 = lean_box(0); +x_4 = x_203; goto block_188; } block_188: @@ -3350,20 +3314,20 @@ return x_94; else { lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_95 = l_Lean_Expr_inhabited___closed__1; +x_95 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_77); x_96 = lean_mk_array(x_77, x_95); x_97 = lean_unsigned_to_nat(1u); x_98 = lean_nat_sub(x_77, x_97); lean_dec(x_77); lean_inc(x_8); -x_99 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_8, x_96, x_98); +x_99 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_8, x_96, x_98); lean_inc(x_78); x_100 = lean_mk_array(x_78, x_95); x_101 = lean_nat_sub(x_78, x_97); lean_dec(x_78); lean_inc(x_12); -x_102 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_12, x_100, x_101); +x_102 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_12, x_100, x_101); x_103 = l_Lean_Expr_getAppFn___main(x_8); lean_dec(x_8); x_104 = l_Lean_Expr_getAppFn___main(x_12); @@ -3714,35 +3678,15 @@ return x_13; lean_object* l_Lean_TypeClass_Context_eInstantiate___main(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; uint8_t x_34; -x_34 = lean_expr_has_expr_mvar(x_2); -if (x_34 == 0) -{ -uint8_t x_35; -x_35 = lean_expr_has_level_mvar(x_2); -if (x_35 == 0) +uint8_t x_3; +x_3 = l_Lean_Expr_hasMVar(x_2); +if (x_3 == 0) { lean_dec(x_1); return x_2; } else { -lean_object* x_36; -x_36 = lean_box(0); -x_3 = x_36; -goto block_33; -} -} -else -{ -lean_object* x_37; -x_37 = lean_box(0); -x_3 = x_37; -goto block_33; -} -block_33: -{ -lean_dec(x_3); switch (lean_obj_tag(x_2)) { case 4: { @@ -3753,7 +3697,7 @@ x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); lean_dec(x_2); x_6 = l_List_map___main___at_Lean_TypeClass_Context_eInstantiate___main___spec__1(x_1, x_5); -x_7 = lean_expr_mk_const(x_4, x_6); +x_7 = l_Lean_mkConst(x_4, x_6); return x_7; } case 5: @@ -3767,77 +3711,79 @@ lean_dec(x_2); lean_inc(x_1); x_10 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_8); x_11 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_9); -x_12 = lean_expr_mk_app(x_10, x_11); +x_12 = l_Lean_mkApp(x_10, x_11); return x_12; } case 6: { -lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_ctor_get(x_2, 0); lean_inc(x_13); -x_14 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -x_15 = lean_ctor_get(x_2, 1); +x_14 = lean_ctor_get(x_2, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_2, 2); lean_inc(x_15); -x_16 = lean_ctor_get(x_2, 2); -lean_inc(x_16); +x_16 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); lean_dec(x_2); +x_17 = (uint8_t)((x_16 << 24) >> 61); lean_inc(x_1); -x_17 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_15); -x_18 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_16); -x_19 = lean_expr_mk_lambda(x_13, x_14, x_17, x_18); -return x_19; +x_18 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_14); +x_19 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_15); +x_20 = l_Lean_mkLambda(x_13, x_17, x_18, x_19); +return x_20; } case 7: { -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; -x_20 = lean_ctor_get(x_2, 0); -lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint64_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); x_22 = lean_ctor_get(x_2, 1); lean_inc(x_22); x_23 = lean_ctor_get(x_2, 2); lean_inc(x_23); +x_24 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); lean_dec(x_2); +x_25 = (uint8_t)((x_24 << 24) >> 61); lean_inc(x_1); -x_24 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_22); -x_25 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_23); -x_26 = lean_expr_mk_forall(x_20, x_21, x_24, x_25); -return x_26; +x_26 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_22); +x_27 = l_Lean_TypeClass_Context_eInstantiate___main(x_1, x_23); +x_28 = l_Lean_mkForall(x_21, x_25, x_26, x_27); +return x_28; } default: { -lean_object* x_27; -x_27 = l_Lean_TypeClass_Context_eMetaIdx(x_2); -if (lean_obj_tag(x_27) == 0) +lean_object* x_29; +x_29 = l_Lean_TypeClass_Context_eMetaIdx(x_2); +if (lean_obj_tag(x_29) == 0) { lean_dec(x_1); return x_2; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -lean_dec(x_27); -lean_inc(x_1); -x_29 = l_Lean_TypeClass_Context_eLookupIdx(x_28, x_1); -lean_dec(x_28); +lean_object* x_30; lean_object* x_31; lean_object* x_32; x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); lean_dec(x_29); -if (lean_obj_tag(x_30) == 0) +lean_inc(x_1); +x_31 = l_Lean_TypeClass_Context_eLookupIdx(x_30, x_1); +lean_dec(x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +lean_dec(x_31); +if (lean_obj_tag(x_32) == 0) { lean_dec(x_1); return x_2; } else { -lean_object* x_31; +lean_object* x_33; lean_dec(x_2); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -lean_dec(x_30); -x_2 = x_31; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +lean_dec(x_32); +x_2 = x_33; goto _start; } } @@ -4231,21 +4177,165 @@ return x_2; lean_object* l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; uint8_t x_44; -x_44 = l_Lean_Expr_isConst(x_2); -if (x_44 == 0) +uint8_t x_4; +x_4 = l_Lean_Expr_isConst(x_2); +if (x_4 == 0) { -uint8_t x_45; -x_45 = l_Lean_Expr_isFVar(x_2); -if (x_45 == 0) +uint8_t x_5; +x_5 = l_Lean_Expr_isFVar(x_2); +if (x_5 == 0) { -uint8_t x_46; -x_46 = lean_expr_has_expr_mvar(x_2); -if (x_46 == 0) +uint8_t x_6; +x_6 = l_Lean_Expr_hasMVar(x_2); +if (x_6 == 0) { -uint8_t x_47; -x_47 = lean_expr_has_level_mvar(x_2); -if (x_47 == 0) +lean_object* x_7; +lean_dec(x_1); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_2); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +switch (lean_obj_tag(x_2)) { +case 5: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_dec(x_2); +lean_inc(x_1); +x_10 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_8, x_3); +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(x_10); +x_13 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_9, x_12); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = l_Lean_mkApp(x_11, x_15); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = l_Lean_mkApp(x_11, x_17); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +case 7: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint64_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_21 = lean_ctor_get(x_2, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_2, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_2, 2); +lean_inc(x_23); +x_24 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +lean_inc(x_1); +x_25 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_22, x_3); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_23, x_27); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; uint8_t x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_28, 0); +x_31 = (uint8_t)((x_24 << 24) >> 61); +x_32 = l_Lean_mkForall(x_21, x_31, x_26, x_30); +lean_ctor_set(x_28, 0, x_32); +return x_28; +} +else +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_28, 0); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_28); +x_35 = (uint8_t)((x_24 << 24) >> 61); +x_36 = l_Lean_mkForall(x_21, x_35, x_26, x_33); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; +} +} +default: +{ +lean_object* x_38; +x_38 = l_Lean_TypeClass_Context_eMetaIdx(x_2); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +lean_dec(x_1); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_2); +lean_ctor_set(x_39, 1, x_3); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_2); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_ctor_get(x_3, 1); +lean_inc(x_41); +x_42 = l_RBNode_find___main___at_Lean_TypeClass_Context_uMetaNormalizeCore___main___spec__1(x_41, x_40); +lean_dec(x_41); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_1, 2); +lean_inc(x_43); +lean_dec(x_1); +x_44 = lean_apply_2(x_43, x_40, x_3); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_40); +x_45 = lean_ctor_get(x_42, 0); +lean_inc(x_45); +lean_dec(x_42); +x_46 = lean_ctor_get(x_1, 3); +lean_inc(x_46); +lean_dec(x_1); +x_47 = lean_apply_2(x_46, x_45, x_3); +return x_47; +} +} +} +} +} +} +else { lean_object* x_48; lean_dec(x_1); @@ -4254,230 +4344,68 @@ lean_ctor_set(x_48, 0, x_2); lean_ctor_set(x_48, 1, x_3); return x_48; } -else -{ -lean_object* x_49; -x_49 = lean_box(0); -x_4 = x_49; -goto block_43; -} } else { -lean_object* x_50; -x_50 = lean_box(0); -x_4 = x_50; -goto block_43; -} -} -else -{ -lean_object* x_51; -lean_dec(x_1); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_2); -lean_ctor_set(x_51, 1, x_3); -return x_51; -} -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = l_Lean_Expr_constLevels_x21(x_2); -x_53 = l_List_mapM___main___at_Lean_TypeClass_Context_eMetaNormalizeCore___main___spec__1___rarg(x_1, x_52, x_3); +lean_object* x_49; lean_object* x_50; +x_49 = l_Lean_Expr_constLevels_x21(x_2); +x_50 = l_List_mapM___main___at_Lean_TypeClass_Context_eMetaNormalizeCore___main___spec__1___rarg(x_1, x_49, x_3); if (lean_obj_tag(x_2) == 4) { -uint8_t x_54; -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) +uint8_t x_51; +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_expr_update_const(x_2, x_55); -lean_ctor_set(x_53, 0, x_56); -return x_53; +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_expr_update_const(x_2, x_52); +lean_ctor_set(x_50, 0, x_53); +return x_50; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_53, 0); -x_58 = lean_ctor_get(x_53, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_53); -x_59 = lean_expr_update_const(x_2, x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -return x_60; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_50, 0); +x_55 = lean_ctor_get(x_50, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_50); +x_56 = lean_expr_update_const(x_2, x_54); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_55); +return x_57; } } else { -uint8_t x_61; +uint8_t x_58; lean_dec(x_2); -x_61 = !lean_is_exclusive(x_53); -if (x_61 == 0) +x_58 = !lean_is_exclusive(x_50); +if (x_58 == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = lean_ctor_get(x_53, 0); -lean_dec(x_62); -x_63 = l_Lean_Expr_inhabited; -x_64 = l_Lean_Expr_updateConst_x21___closed__1; -x_65 = lean_panic_fn(x_64); -lean_ctor_set(x_53, 0, x_65); -return x_53; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_50, 0); +lean_dec(x_59); +x_60 = l_Lean_Expr_Inhabited; +x_61 = l_Lean_Expr_updateConst_x21___closed__1; +x_62 = lean_panic_fn(x_61); +lean_ctor_set(x_50, 0, x_62); +return x_50; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_ctor_get(x_53, 1); -lean_inc(x_66); -lean_dec(x_53); -x_67 = l_Lean_Expr_inhabited; -x_68 = l_Lean_Expr_updateConst_x21___closed__1; -x_69 = lean_panic_fn(x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_66); -return x_70; -} -} -} -block_43: -{ -lean_dec(x_4); -switch (lean_obj_tag(x_2)) { -case 5: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_6); -lean_dec(x_2); -lean_inc(x_1); -x_7 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_5, x_3); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_6, x_9); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_expr_mk_app(x_8, x_12); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -x_16 = lean_expr_mk_app(x_8, x_14); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -case 7: -{ -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; uint8_t x_26; -x_18 = lean_ctor_get(x_2, 0); -lean_inc(x_18); -x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -x_20 = lean_ctor_get(x_2, 1); -lean_inc(x_20); -x_21 = lean_ctor_get(x_2, 2); -lean_inc(x_21); -lean_dec(x_2); -lean_inc(x_1); -x_22 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_20, x_3); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_TypeClass_Context_eMetaNormalizeCore___main___rarg(x_1, x_21, x_24); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_expr_mk_forall(x_18, x_19, x_23, x_27); -lean_ctor_set(x_25, 0, x_28); -return x_25; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_25); -x_31 = lean_expr_mk_forall(x_18, x_19, x_23, x_29); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_30); -return x_32; -} -} -default: -{ -lean_object* x_33; -x_33 = l_Lean_TypeClass_Context_eMetaIdx(x_2); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; -lean_dec(x_1); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_2); -lean_ctor_set(x_34, 1, x_3); -return x_34; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_2); -x_35 = lean_ctor_get(x_33, 0); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_ctor_get(x_3, 1); -lean_inc(x_36); -x_37 = l_RBNode_find___main___at_Lean_TypeClass_Context_uMetaNormalizeCore___main___spec__1(x_36, x_35); -lean_dec(x_36); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_1, 2); -lean_inc(x_38); -lean_dec(x_1); -x_39 = lean_apply_2(x_38, x_35, x_3); -return x_39; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_35); -x_40 = lean_ctor_get(x_37, 0); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_ctor_get(x_1, 3); -lean_inc(x_41); -lean_dec(x_1); -x_42 = lean_apply_2(x_41, x_40, x_3); -return x_42; -} -} +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = lean_ctor_get(x_50, 1); +lean_inc(x_63); +lean_dec(x_50); +x_64 = l_Lean_Expr_Inhabited; +x_65 = l_Lean_Expr_updateConst_x21___closed__1; +x_66 = lean_panic_fn(x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_63); +return x_67; } } } @@ -6989,7 +6917,7 @@ x_6 = l_RBNode_fold___main___at_RBMap_size___spec__1___rarg(x_5, x_4); x_7 = l_Lean_TypeClass_Context_alphaMetaPrefix; lean_inc(x_6); x_8 = lean_name_mk_numeral(x_7, x_6); -x_9 = lean_expr_mk_mvar(x_8); +x_9 = l_Lean_mkMVar(x_8); x_10 = l_RBNode_insert___at_Lean_TypeClass_Context__u03b1Norm___spec__1(x_4, x_1, x_6); lean_ctor_set(x_2, 1, x_10); x_11 = lean_alloc_ctor(0, 2, 0); @@ -7012,7 +6940,7 @@ x_16 = l_RBNode_fold___main___at_RBMap_size___spec__1___rarg(x_15, x_13); x_17 = l_Lean_TypeClass_Context_alphaMetaPrefix; lean_inc(x_16); x_18 = lean_name_mk_numeral(x_17, x_16); -x_19 = lean_expr_mk_mvar(x_18); +x_19 = l_Lean_mkMVar(x_18); x_20 = l_RBNode_insert___at_Lean_TypeClass_Context__u03b1Norm___spec__1(x_13, x_1, x_16); x_21 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_21, 0, x_12); @@ -7031,7 +6959,7 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = l_Lean_TypeClass_Context_alphaMetaPrefix; x_4 = lean_name_mk_numeral(x_3, x_1); -x_5 = lean_expr_mk_mvar(x_4); +x_5 = l_Lean_mkMVar(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_2); @@ -7675,7 +7603,7 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = l_Lean_TypeClass_Context_metaPrefix; x_4 = lean_name_mk_numeral(x_3, x_1); -x_5 = lean_expr_mk_mvar(x_4); +x_5 = l_Lean_mkMVar(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); lean_ctor_set(x_6, 1, x_2); diff --git a/stage0/library/Init/Lean/TypeClass/Synth.c b/stage0/library/Init/Lean/TypeClass/Synth.c index 4aa7a41fe7..83a4fab0ee 100644 --- a/stage0/library/Init/Lean/TypeClass/Synth.c +++ b/stage0/library/Init/Lean/TypeClass/Synth.c @@ -28,7 +28,7 @@ lean_object* l_Lean_TypeClass_synthCore___rarg(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_TypeClass_newAnswer___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_synthCore___main(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -size_t lean_expr_hash(lean_object*); +size_t l_Lean_Expr_hash(lean_object*); lean_object* l_Array_back___at_Lean_TypeClass_consume___spec__2___boxed(lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_TypeClass_newAnswer___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_ConsumerNode_Inhabited; @@ -37,12 +37,13 @@ lean_object* l_Lean_TypeClass_Context__u03b1Norm(lean_object*); lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Lean_TypeClass_collectEReplacements___main___closed__5; lean_object* l_Array_iterateMAux___main___at_Lean_TypeClass_consume___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Queue_enqueue___rarg(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_collectEReplacements___main___closed__3; lean_object* l_Lean_TypeClass_introduceLocals___main___closed__2; +extern lean_object* l_Lean_Expr_Inhabited___closed__1; lean_object* l_Lean_TypeClass_newAnswer(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_synthCore___main___closed__1; -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_wakeUp(lean_object*, lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -59,6 +60,7 @@ lean_object* l_Stack_pop___at_Lean_TypeClass_consume___spec__3(lean_object*); lean_object* l_Lean_TypeClass_TypedExpr_HasToString___boxed(lean_object*); lean_object* l_Lean_TypeClass_TypedExpr_HasToString___closed__1; extern lean_object* l_Lean_formatDataValue___closed__1; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_TypedExpr_Inhabited; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at_Lean_TypeClass_newAnswer___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); @@ -73,7 +75,6 @@ extern lean_object* l_Lean_TypeClass_Context_Inhabited___closed__1; lean_object* l_Lean_TypeClass_constNameToTypedExpr___closed__1; lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l_Lean_TypeClass_synthCore___boxed(lean_object*, lean_object*); -lean_object* lean_expr_mk_fvar(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l_Lean_LocalContext_mkLambda(lean_object*, lean_object*, lean_object*); @@ -84,7 +85,6 @@ lean_object* l_PersistentHashMap_insertAux___main___at_Lean_TypeClass_newSubgoal lean_object* l_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Node_Inhabited___closed__1; extern lean_object* l_Lean_TypeClass_Context_Inhabited; -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_constNameToTypedExpr(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_TypeClass_newAnswer___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); @@ -100,12 +100,14 @@ lean_object* lean_string_append(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___rarg___closed__1; extern lean_object* l_List_reprAux___main___rarg___closed__1; size_t l_USize_add(size_t, size_t); +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_TypeClass_introduceLocals___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_introduceLocals___main___closed__1; uint8_t l_Lean_TypeClass_Context_eHasTmpMVar(lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__3; uint8_t l_Lean_TypeClass_Waiter_isRoot(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_TypeClass_collectEReplacements(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -132,7 +134,6 @@ lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object* l_Lean_TypeClass_collectUReplacements(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Answer_HasToString___closed__1; lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_TypeClass_newSubgoal___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited; uint8_t l_Array_anyRangeMAux___main___at_Lean_TypeClass_newAnswer___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_TypeClass_newAnswer___spec__1(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_newSubgoal___closed__2; @@ -144,6 +145,7 @@ lean_object* l_panic(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_newConsumerNode(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eInstantiate___main(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_generate___closed__1; +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_introduceMVars___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); @@ -166,11 +168,12 @@ lean_object* l_Lean_TypeClass_Context_eUnify___main(lean_object*, lean_object*, lean_object* l_Lean_TypeClass_synth(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_TypedExpr_HasToString(lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Stack_peek_x21___at_Lean_TypeClass_consume___spec__1___boxed(lean_object*); -extern lean_object* l_Lean_Expr_inhabited___closed__1; lean_object* l_Stack_modify___at_Lean_TypeClass_generate___spec__4(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_introduceMVars___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_collectEReplacements___main___closed__4; +uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Stack_pop___at_Lean_TypeClass_generate___spec__3(lean_object*); lean_object* l_Lean_TypeClass_generate___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_newSubgoal___closed__1; @@ -181,14 +184,12 @@ lean_object* l_Lean_TypeClass_resume(lean_object*); lean_object* l_Lean_TypeClass_collectUReplacements___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_newAnswer___closed__1; lean_object* l_Lean_TypeClass_Answer_HasToString___boxed(lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); lean_object* l_List_foldl___main___at_Lean_TypeClass_constNameToTypedExpr___spec__1(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_TypeClass_consume___spec__2(lean_object*); lean_object* l_Lean_TypeClass_quickIsClass(lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_newAnswer___closed__2; lean_object* l_Lean_TypeClass_GeneratorNode_Inhabited___closed__1; lean_object* lean_usize_to_nat(size_t); @@ -202,7 +203,7 @@ lean_object* l_Array_back___at_Lean_TypeClass_generate___spec__2___boxed(lean_ob lean_object* l_Lean_TypeClass_synth___closed__3; lean_object* l_Lean_TypeClass_constNameToTypedExpr___closed__2; lean_object* l_Array_anyRangeMAux___main___at_Lean_TypeClass_newAnswer___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_expr_has_level_mvar(lean_object*); +uint8_t l_Lean_Expr_CachedData_binderInfo(uint64_t); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* _init_l_Lean_TypeClass_TypedExpr_HasToString___closed__1() { _start: @@ -245,7 +246,7 @@ lean_object* _init_l_Lean_TypeClass_TypedExpr_Inhabited___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_inhabited___closed__1; +x_1 = l_Lean_Expr_Inhabited___closed__1; x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); @@ -310,7 +311,7 @@ lean_object* _init_l_Lean_TypeClass_Node_Inhabited___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Expr_inhabited___closed__1; +x_1 = l_Lean_Expr_Inhabited___closed__1; x_2 = l_Lean_TypeClass_Context_Inhabited___closed__1; x_3 = l_Lean_TypeClass_TypedExpr_Inhabited___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); @@ -705,7 +706,7 @@ else lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_9 = lean_array_fget(x_4, x_5); x_10 = lean_array_fget(x_3, x_5); -x_11 = lean_expr_hash(x_9); +x_11 = l_Lean_Expr_hash(x_9); x_12 = 1; x_13 = x_1 - x_12; x_14 = 5; @@ -1044,7 +1045,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = lean_expr_hash(x_2); +x_7 = l_Lean_Expr_hash(x_2); x_8 = 1; x_9 = l_PersistentHashMap_insertAux___main___at_Lean_TypeClass_newSubgoal___spec__3(x_5, x_7, x_8, x_2, x_3); x_10 = lean_unsigned_to_nat(1u); @@ -1062,7 +1063,7 @@ x_13 = lean_ctor_get(x_1, 1); lean_inc(x_13); lean_inc(x_12); lean_dec(x_1); -x_14 = lean_expr_hash(x_2); +x_14 = l_Lean_Expr_hash(x_2); x_15 = 1; x_16 = l_PersistentHashMap_insertAux___main___at_Lean_TypeClass_newSubgoal___spec__3(x_12, x_14, x_15, x_2, x_3); x_17 = lean_unsigned_to_nat(1u); @@ -1338,58 +1339,59 @@ _start: lean_object* x_7; if (lean_obj_tag(x_5) == 7) { -uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); -x_13 = lean_ctor_get(x_5, 1); +lean_object* x_12; lean_object* x_13; uint64_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_5, 2); lean_inc(x_13); -x_14 = lean_ctor_get(x_5, 2); -lean_inc(x_14); +x_14 = lean_ctor_get_uint64(x_5, sizeof(void*)*3); lean_dec(x_5); +x_15 = (uint8_t)((x_14 << 24) >> 61); lean_inc(x_1); -x_15 = l_Lean_LocalContext_mkForall(x_1, x_2, x_13); -lean_dec(x_13); -x_16 = l_Lean_TypeClass_Context_eNewMeta(x_15, x_3); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); +x_16 = l_Lean_LocalContext_mkForall(x_1, x_2, x_12); +lean_dec(x_12); +x_17 = l_Lean_TypeClass_Context_eNewMeta(x_16, x_3); +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_unsigned_to_nat(0u); -lean_inc(x_17); -x_20 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2, x_2, x_19, x_17); -lean_inc(x_20); -x_21 = lean_expr_mk_app(x_4, x_20); -x_22 = lean_expr_instantiate1(x_14, x_20); -lean_dec(x_20); -lean_dec(x_14); -x_23 = l_Lean_BinderInfo_isInstImplicit(x_12); -if (x_23 == 0) -{ +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); lean_dec(x_17); -x_3 = x_18; -x_4 = x_21; -x_5 = x_22; +x_20 = lean_unsigned_to_nat(0u); +lean_inc(x_18); +x_21 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2, x_2, x_20, x_18); +lean_inc(x_21); +x_22 = l_Lean_mkApp(x_4, x_21); +x_23 = lean_expr_instantiate1(x_13, x_21); +lean_dec(x_21); +lean_dec(x_13); +x_24 = l_Lean_BinderInfo_isInstImplicit(x_15); +if (x_24 == 0) +{ +lean_dec(x_18); +x_3 = x_19; +x_4 = x_22; +x_5 = x_23; goto _start; } else { -lean_object* x_25; -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_17); -lean_ctor_set(x_25, 1, x_6); -x_3 = x_18; -x_4 = x_21; -x_5 = x_22; -x_6 = x_25; +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_18); +lean_ctor_set(x_26, 1, x_6); +x_3 = x_19; +x_4 = x_22; +x_5 = x_23; +x_6 = x_26; goto _start; } } else { -lean_object* x_27; +lean_object* x_28; lean_dec(x_1); -x_27 = lean_box(0); -x_7 = x_27; +x_28 = lean_box(0); +x_7 = x_28; goto block_11; } block_11: @@ -1458,46 +1460,47 @@ _start: { if (lean_obj_tag(x_4) == 7) { -lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -x_6 = lean_ctor_get_uint8(x_4, sizeof(void*)*3); -x_7 = lean_ctor_get(x_4, 1); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 2); lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 2); -lean_inc(x_8); +x_8 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); lean_dec(x_4); -x_9 = l_Lean_TypeClass_introduceLocals___main___closed__2; +x_9 = (uint8_t)((x_8 << 24) >> 61); +x_10 = l_Lean_TypeClass_introduceLocals___main___closed__2; lean_inc(x_1); -x_10 = lean_name_mk_numeral(x_9, x_1); -lean_inc(x_10); -x_11 = lean_local_ctx_mk_local_decl(x_2, x_10, x_5, x_7, x_6); -x_12 = lean_expr_mk_fvar(x_10); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_add(x_1, x_13); +x_11 = lean_name_mk_numeral(x_10, x_1); +lean_inc(x_11); +x_12 = lean_local_ctx_mk_local_decl(x_2, x_11, x_5, x_6, x_9); +x_13 = l_Lean_mkFVar(x_11); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_1, x_14); lean_dec(x_1); -lean_inc(x_12); -x_15 = lean_array_push(x_3, x_12); -x_16 = lean_expr_instantiate1(x_8, x_12); -lean_dec(x_12); -lean_dec(x_8); -x_1 = x_14; -x_2 = x_11; -x_3 = x_15; -x_4 = x_16; +lean_inc(x_13); +x_16 = lean_array_push(x_3, x_13); +x_17 = lean_expr_instantiate1(x_7, x_13); +lean_dec(x_13); +lean_dec(x_7); +x_1 = x_15; +x_2 = x_12; +x_3 = x_16; +x_4 = x_17; goto _start; } else { -lean_object* x_18; lean_object* x_19; +lean_object* x_19; lean_object* x_20; lean_dec(x_1); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_4); -lean_ctor_set(x_18, 1, x_3); x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_2); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_ctor_set(x_19, 0, x_4); +lean_ctor_set(x_19, 1, x_3); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_2); +lean_ctor_set(x_20, 1, x_19); +return x_20; } } } @@ -2406,7 +2409,7 @@ _start: { lean_object* x_3; size_t x_4; lean_object* x_5; x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_expr_hash(x_2); +x_4 = l_Lean_Expr_hash(x_2); x_5 = l_PersistentHashMap_findAux___main___at_Lean_TypeClass_newAnswer___spec__2(x_3, x_4, x_2); return x_5; } @@ -3367,7 +3370,7 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_19 = lean_ctor_get(x_17, 0); lean_inc(x_19); -x_20 = lean_expr_mk_const(x_2, x_19); +x_20 = l_Lean_mkConst(x_2, x_19); x_21 = lean_instantiate_type_lparams(x_13, x_19); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_20); @@ -3387,7 +3390,7 @@ lean_inc(x_25); lean_inc(x_24); lean_dec(x_17); lean_inc(x_24); -x_26 = lean_expr_mk_const(x_2, x_24); +x_26 = l_Lean_mkConst(x_2, x_24); x_27 = lean_instantiate_type_lparams(x_13, x_24); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_26); @@ -4168,7 +4171,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_TypeClass_collectEReplacements___main___closed__3; -x_2 = lean_unsigned_to_nat(287u); +x_2 = lean_unsigned_to_nat(289u); x_3 = lean_unsigned_to_nat(27u); x_4 = l_Lean_TypeClass_collectEReplacements___main___closed__4; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -4362,7 +4365,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_TypeClass_collectEReplacements___main___closed__3; -x_2 = lean_unsigned_to_nat(303u); +x_2 = lean_unsigned_to_nat(305u); x_3 = lean_unsigned_to_nat(16u); x_4 = l_Lean_TypeClass_preprocessForOutParams___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -4373,44 +4376,49 @@ lean_object* l_Lean_TypeClass_preprocessForOutParams(lean_object* x_1, lean_obje _start: { lean_object* x_3; uint8_t x_267; -x_267 = lean_expr_has_expr_mvar(x_2); +x_267 = l_Lean_Expr_hasMVar(x_2); if (x_267 == 0) { -uint8_t x_268; -x_268 = lean_expr_has_level_mvar(x_2); -if (x_268 == 0) +lean_object* x_268; uint8_t x_269; +x_268 = l_Lean_Expr_getAppFn___main(x_2); +x_269 = l_Lean_Expr_isConst(x_268); +if (x_269 == 0) { -lean_object* x_269; uint8_t x_270; -x_269 = l_Lean_Expr_getAppFn___main(x_2); -x_270 = l_Lean_Expr_isConst(x_269); -if (x_270 == 0) -{ -lean_object* x_271; -lean_dec(x_269); -x_271 = lean_box(0); -x_3 = x_271; +lean_object* x_270; +lean_dec(x_268); +x_270 = lean_box(0); +x_3 = x_270; goto block_266; } else { -lean_object* x_272; uint8_t x_273; -x_272 = l_Lean_Expr_constName_x21(x_269); -lean_dec(x_269); +lean_object* x_271; uint8_t x_272; +x_271 = l_Lean_Expr_constName_x21(x_268); +lean_dec(x_268); lean_inc(x_1); -x_273 = lean_has_out_params(x_1, x_272); -if (x_273 == 0) +x_272 = lean_has_out_params(x_1, x_271); +if (x_272 == 0) { -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_dec(x_1); -x_274 = l_Lean_TypeClass_collectEReplacements___main___closed__1; -x_275 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_275, 0, x_2); -lean_ctor_set(x_275, 1, x_274); -x_276 = l_Lean_TypeClass_Context_Inhabited___closed__1; -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_275); -return x_277; +x_273 = l_Lean_TypeClass_collectEReplacements___main___closed__1; +x_274 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_274, 0, x_2); +lean_ctor_set(x_274, 1, x_273); +x_275 = l_Lean_TypeClass_Context_Inhabited___closed__1; +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_274); +return x_276; +} +else +{ +lean_object* x_277; +x_277 = lean_box(0); +x_3 = x_277; +goto block_266; +} +} } else { @@ -4419,23 +4427,6 @@ x_278 = lean_box(0); x_3 = x_278; goto block_266; } -} -} -else -{ -lean_object* x_279; -x_279 = lean_box(0); -x_3 = x_279; -goto block_266; -} -} -else -{ -lean_object* x_280; -x_280 = lean_box(0); -x_3 = x_280; -goto block_266; -} block_266: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; @@ -4460,14 +4451,14 @@ x_13 = lean_ctor_get(x_9, 0); lean_dec(x_13); x_14 = l_Lean_Expr_getAppFn___main(x_2); x_15 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_4); -x_16 = l_Lean_Expr_inhabited___closed__1; +x_16 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_15); x_17 = lean_mk_array(x_15, x_16); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_sub(x_15, x_18); lean_dec(x_15); lean_inc(x_2); -x_20 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_17, x_19); +x_20 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_17, x_19); x_21 = l_Lean_Expr_isConst(x_14); if (x_21 == 0) { @@ -4543,14 +4534,14 @@ lean_dec(x_14); x_38 = l_Array_toList___rarg(x_34); lean_dec(x_34); lean_inc(x_38); -x_39 = lean_expr_mk_const(x_24, x_38); +x_39 = l_Lean_mkConst(x_24, x_38); x_40 = l_Lean_Expr_constName_x21(x_39); x_41 = lean_environment_find(x_1, x_40); if (lean_obj_tag(x_41) == 0) { lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_dec(x_38); -x_70 = l_Lean_Expr_inhabited; +x_70 = l_Lean_Expr_Inhabited; x_71 = l_Lean_TypeClass_preprocessForOutParams___closed__2; x_72 = lean_panic_fn(x_71); lean_inc(x_11); @@ -4685,7 +4676,7 @@ if (lean_obj_tag(x_77) == 0) { lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_dec(x_34); -x_106 = l_Lean_Expr_inhabited; +x_106 = l_Lean_Expr_Inhabited; x_107 = l_Lean_TypeClass_preprocessForOutParams___closed__2; x_108 = lean_panic_fn(x_107); lean_inc(x_11); @@ -4826,14 +4817,14 @@ lean_inc(x_115); lean_dec(x_9); x_116 = l_Lean_Expr_getAppFn___main(x_2); x_117 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_4); -x_118 = l_Lean_Expr_inhabited___closed__1; +x_118 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_117); x_119 = lean_mk_array(x_117, x_118); x_120 = lean_unsigned_to_nat(1u); x_121 = lean_nat_sub(x_117, x_120); lean_dec(x_117); lean_inc(x_2); -x_122 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_119, x_121); +x_122 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_119, x_121); x_123 = l_Lean_Expr_isConst(x_116); if (x_123 == 0) { @@ -4912,14 +4903,14 @@ lean_dec(x_116); x_142 = l_Array_toList___rarg(x_138); lean_dec(x_138); lean_inc(x_142); -x_143 = lean_expr_mk_const(x_127, x_142); +x_143 = l_Lean_mkConst(x_127, x_142); x_144 = l_Lean_Expr_constName_x21(x_143); x_145 = lean_environment_find(x_1, x_144); if (lean_obj_tag(x_145) == 0) { lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_dec(x_142); -x_159 = l_Lean_Expr_inhabited; +x_159 = l_Lean_Expr_Inhabited; x_160 = l_Lean_TypeClass_preprocessForOutParams___closed__2; x_161 = lean_panic_fn(x_160); lean_inc(x_114); @@ -5003,7 +4994,7 @@ if (lean_obj_tag(x_166) == 0) { lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_dec(x_138); -x_180 = l_Lean_Expr_inhabited; +x_180 = l_Lean_Expr_Inhabited; x_181 = l_Lean_TypeClass_preprocessForOutParams___closed__2; x_182 = lean_panic_fn(x_181); lean_inc(x_114); @@ -5105,14 +5096,14 @@ if (lean_is_exclusive(x_188)) { } x_192 = l_Lean_Expr_getAppFn___main(x_2); x_193 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_4); -x_194 = l_Lean_Expr_inhabited___closed__1; +x_194 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_193); x_195 = lean_mk_array(x_193, x_194); x_196 = lean_unsigned_to_nat(1u); x_197 = lean_nat_sub(x_193, x_196); lean_dec(x_193); lean_inc(x_2); -x_198 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_2, x_195, x_197); +x_198 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_2, x_195, x_197); x_199 = l_Lean_Expr_isConst(x_192); if (x_199 == 0) { @@ -5201,14 +5192,14 @@ lean_dec(x_192); x_220 = l_Array_toList___rarg(x_216); lean_dec(x_216); lean_inc(x_220); -x_221 = lean_expr_mk_const(x_204, x_220); +x_221 = l_Lean_mkConst(x_204, x_220); x_222 = l_Lean_Expr_constName_x21(x_221); x_223 = lean_environment_find(x_1, x_222); if (lean_obj_tag(x_223) == 0) { lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_dec(x_220); -x_237 = l_Lean_Expr_inhabited; +x_237 = l_Lean_Expr_Inhabited; x_238 = l_Lean_TypeClass_preprocessForOutParams___closed__2; x_239 = lean_panic_fn(x_238); lean_inc(x_189); @@ -5292,7 +5283,7 @@ if (lean_obj_tag(x_244) == 0) { lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_dec(x_216); -x_258 = l_Lean_Expr_inhabited; +x_258 = l_Lean_Expr_Inhabited; x_259 = l_Lean_TypeClass_preprocessForOutParams___closed__2; x_260 = lean_panic_fn(x_259); lean_inc(x_189); diff --git a/stage0/library/Init/Lean/WHNF.c b/stage0/library/Init/Lean/WHNF.c index eff435a0e4..8ed4da5d84 100644 --- a/stage0/library/Init/Lean/WHNF.c +++ b/stage0/library/Init/Lean/WHNF.c @@ -42,17 +42,18 @@ lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_matchConstAux___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_10__whnfCoreUnstuck___main___boxed(lean_object*); lean_object* l_Lean_smartUnfoldingSuffix; +lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_1__getFirstCtor(lean_object*); lean_object* l_Lean_getStuckMVar___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_10__whnfCoreUnstuck(lean_object*); lean_object* l_Lean_whnfEasyCases___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_expr_mk_app(lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_5__toCtorWhenK___boxed(lean_object*); lean_object* l_Lean_Expr_hasExprMVar___boxed(lean_object*); lean_object* l___private_Init_Lean_WHNF_2__mkNullaryCtor___boxed(lean_object*); lean_object* l___private_Init_Lean_WHNF_5__toCtorWhenK___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_whnfCore(lean_object*); +lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_unfoldDefinitionAux___rarg___lambda__4(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*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); @@ -67,6 +68,7 @@ lean_object* l_Lean_unfoldDefinitionAux(lean_object*, lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__3(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*); uint8_t l___private_Init_Lean_WHNF_6__isIdRhsApp(lean_object*); lean_object* l___private_Init_Lean_WHNF_4__getRecRuleFor(lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_whnfEasyCases___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_10__whnfCoreUnstuck___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -86,16 +88,15 @@ lean_object* l_Lean_unfoldDefinitionAux___rarg(lean_object*, lean_object*, lean_ lean_object* l_Lean_whnfCore___boxed(lean_object*); lean_object* l___private_Init_Lean_WHNF_3__toCtorIfLit___closed__1; lean_object* l_Lean_mkSmartUnfoldingNameFor(lean_object*); -lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l_Lean_reduceQuotRec___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ConstantInfo_hasValue(lean_object*); lean_object* l_Lean_reduceRec___rarg___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_6__isIdRhsApp___closed__2; +extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_reduceQuotRec___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_whnfEasyCases___main(lean_object*); -lean_object* l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(lean_object*, lean_object*); lean_object* l_finally___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_3__toCtorIfLit___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -129,7 +130,6 @@ lean_object* l_Lean_getStuckMVar___rarg(lean_object*, lean_object*, lean_object* lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* l_Lean_reduceQuotRec___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_4__getRecRuleFor___lambda__1___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_inhabited; lean_object* l_Lean_isRecStuck___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStuckMVar___main___boxed(lean_object*); lean_object* l___private_Init_Lean_WHNF_3__toCtorIfLit___closed__2; @@ -145,6 +145,7 @@ lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_whnfMain(lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__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* l_Lean_whnfEasyCases___boxed(lean_object*); +lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); @@ -159,11 +160,11 @@ uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArgD___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isRecStuck___boxed(lean_object*); +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_whnfCore___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); -extern lean_object* l_Lean_Expr_inhabited___closed__1; +lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_5__toCtorWhenK___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_3__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_6__isIdRhsApp___boxed(lean_object*); lean_object* l_List_find___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_reduceRec___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,7 +172,7 @@ lean_object* l_Lean_whnfEasyCases___main___rarg___lambda__2(lean_object*, lean_o lean_object* l_Lean_Expr_updateFn___main(lean_object*, lean_object*); lean_object* l_Lean_whnfCore___main___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_whnfCore___main___boxed(lean_object*); -uint8_t lean_expr_has_expr_mvar(lean_object*); +uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l___private_Init_Lean_WHNF_1__getFirstCtor___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_smartUnfoldingSuffix___closed__1; lean_object* l___private_Init_Lean_WHNF_5__toCtorWhenK___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -181,7 +182,6 @@ lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_getStuckMVar___boxed(lean_object*); lean_object* l___private_Init_Lean_WHNF_10__whnfCoreUnstuck___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Expr_4__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_WHNF_1__getFirstCtor___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_whnfMain___main___boxed(lean_object*); lean_object* l_Lean_whnfEasyCases___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -495,16 +495,16 @@ lean_dec(x_2); x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); -x_15 = lean_expr_mk_const(x_12, x_3); +x_15 = l_Lean_mkConst(x_12, x_3); x_16 = lean_unsigned_to_nat(0u); x_17 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_16); -x_18 = l_Lean_Expr_inhabited___closed__1; +x_18 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_17); x_19 = lean_mk_array(x_17, x_18); x_20 = lean_unsigned_to_nat(1u); x_21 = lean_nat_sub(x_17, x_20); lean_dec(x_17); -x_22 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_4, x_19, x_21); +x_22 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_4, x_19, x_21); x_23 = l_Array_shrink___main___rarg(x_22, x_5); x_24 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_23, x_23, x_16, x_15); lean_dec(x_23); @@ -524,16 +524,16 @@ lean_dec(x_2); x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = lean_expr_mk_const(x_26, x_3); +x_29 = l_Lean_mkConst(x_26, x_3); x_30 = lean_unsigned_to_nat(0u); x_31 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_30); -x_32 = l_Lean_Expr_inhabited___closed__1; +x_32 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_31); x_33 = lean_mk_array(x_31, x_32); x_34 = lean_unsigned_to_nat(1u); x_35 = lean_nat_sub(x_31, x_34); lean_dec(x_31); -x_36 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_4, x_33, x_35); +x_36 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_4, x_33, x_35); x_37 = l_Array_shrink___main___rarg(x_36, x_5); x_38 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_37, x_37, x_30, x_29); lean_dec(x_37); @@ -650,7 +650,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_WHNF_3__toCtorIfLit___closed__2; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -678,7 +678,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_WHNF_3__toCtorIfLit___closed__5; -x_3 = lean_expr_mk_const(x_2, x_1); +x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } @@ -702,7 +702,7 @@ x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_sub(x_3, x_6); x_8 = l_Lean_mkNatLit(x_7); x_9 = l___private_Init_Lean_WHNF_3__toCtorIfLit___closed__3; -x_10 = lean_expr_mk_app(x_9, x_8); +x_10 = l_Lean_mkApp(x_9, x_8); return x_10; } else @@ -915,7 +915,7 @@ return x_14; else { uint8_t x_15; -x_15 = lean_expr_has_expr_mvar(x_7); +x_15 = l_Lean_Expr_hasExprMVar(x_7); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -940,14 +940,14 @@ else 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; uint8_t x_32; x_20 = lean_unsigned_to_nat(0u); x_21 = l_Lean_Expr_getAppNumArgsAux___main(x_7, x_20); -x_22 = l_Lean_Expr_inhabited___closed__1; +x_22 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_21); x_23 = lean_mk_array(x_21, x_22); x_24 = lean_unsigned_to_nat(1u); x_25 = lean_nat_sub(x_21, x_24); lean_dec(x_21); lean_inc(x_7); -x_26 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_7, x_23, x_25); +x_26 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_7, x_23, x_25); x_27 = lean_ctor_get(x_1, 2); lean_inc(x_27); lean_dec(x_1); @@ -1088,13 +1088,13 @@ lean_inc(x_13); lean_dec(x_10); x_14 = lean_unsigned_to_nat(0u); x_15 = l_Lean_Expr_getAppNumArgsAux___main(x_9, x_14); -x_16 = l_Lean_Expr_inhabited___closed__1; +x_16 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_15); x_17 = lean_mk_array(x_15, x_16); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_sub(x_15, x_18); lean_dec(x_15); -x_20 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_9, x_17, x_19); +x_20 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_9, x_17, x_19); x_21 = l_List_lengthAux___main___rarg(x_3, x_14); x_22 = lean_ctor_get(x_1, 0); lean_inc(x_22); @@ -1138,7 +1138,7 @@ lean_dec(x_1); x_34 = lean_nat_add(x_32, x_33); lean_dec(x_33); lean_dec(x_32); -x_35 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_34, x_4, x_14, x_29); +x_35 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_34, x_4, x_14, x_29); lean_dec(x_34); x_36 = lean_array_get_size(x_20); x_37 = lean_ctor_get(x_13, 1); @@ -1146,11 +1146,11 @@ lean_inc(x_37); lean_dec(x_13); x_38 = lean_nat_sub(x_36, x_37); lean_dec(x_37); -x_39 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_36, x_20, x_38, x_35); +x_39 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_36, x_20, x_38, x_35); lean_dec(x_20); lean_dec(x_36); x_40 = lean_nat_add(x_5, x_18); -x_41 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_6, x_4, x_40, x_39); +x_41 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_6, x_4, x_40, x_39); x_42 = lean_apply_1(x_7, x_41); return x_42; } @@ -1432,12 +1432,12 @@ if (lean_obj_tag(x_14) == 1) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_dec(x_1); -x_15 = l_Lean_Expr_inhabited; +x_15 = l_Lean_Expr_Inhabited; x_16 = lean_array_get(x_15, x_2, x_3); -x_17 = lean_expr_mk_app(x_16, x_4); +x_17 = l_Lean_mkApp(x_16, x_4); x_18 = lean_unsigned_to_nat(1u); x_19 = lean_nat_add(x_5, x_18); -x_20 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_6, x_2, x_19, x_17); +x_20 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_6, x_2, x_19, x_17); x_21 = lean_apply_1(x_7, x_20); return x_21; } @@ -1830,13 +1830,13 @@ lean_closure_set(x_17, 1, x_3); lean_closure_set(x_17, 2, x_4); x_18 = lean_unsigned_to_nat(0u); x_19 = l_Lean_Expr_getAppNumArgsAux___main(x_5, x_18); -x_20 = l_Lean_Expr_inhabited___closed__1; +x_20 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_19); x_21 = lean_mk_array(x_19, x_20); x_22 = lean_unsigned_to_nat(1u); x_23 = lean_nat_sub(x_19, x_22); lean_dec(x_19); -x_24 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_5, x_21, x_23); +x_24 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_5, x_21, x_23); x_25 = l_Lean_isQuotRecStuck___rarg(x_2, x_4, x_17, x_16, x_6, x_24); lean_dec(x_24); return x_25; @@ -1853,13 +1853,13 @@ lean_closure_set(x_27, 1, x_3); lean_closure_set(x_27, 2, x_4); x_28 = lean_unsigned_to_nat(0u); x_29 = l_Lean_Expr_getAppNumArgsAux___main(x_5, x_28); -x_30 = l_Lean_Expr_inhabited___closed__1; +x_30 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_29); x_31 = lean_mk_array(x_29, x_30); x_32 = lean_unsigned_to_nat(1u); x_33 = lean_nat_sub(x_29, x_32); lean_dec(x_29); -x_34 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_5, x_31, x_33); +x_34 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_5, x_31, x_33); x_35 = l_Lean_isRecStuck___rarg(x_2, x_4, x_27, x_26, x_6, x_34); lean_dec(x_34); return x_35; @@ -2154,7 +2154,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_11 = l_Lean_Expr_inhabited; +x_11 = l_Lean_Expr_Inhabited; x_12 = l_monadInhabited___rarg(x_1, x_11); x_13 = l_unreachable_x21___rarg(x_12); return x_13; @@ -2244,14 +2244,26 @@ lean_dec(x_1); x_29 = lean_apply_1(x_5, x_4); return x_29; } +case 12: +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = l_Lean_Expr_Inhabited; +x_31 = l_monadInhabited___rarg(x_1, x_30); +x_32 = l_unreachable_x21___rarg(x_31); +return x_32; +} default: { -lean_object* x_30; +lean_object* x_33; lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_30 = lean_box(0); -x_6 = x_30; +x_33 = lean_box(0); +x_6 = x_33; goto block_10; } } @@ -2382,14 +2394,14 @@ else 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; uint8_t x_12; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_3); -x_5 = l_Lean_Expr_inhabited___closed__1; +x_5 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_4); x_6 = lean_mk_array(x_4, x_5); x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_sub(x_4, x_7); lean_dec(x_4); lean_inc(x_1); -x_9 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_1, x_6, x_8); +x_9 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_6, x_8); x_10 = lean_array_get_size(x_9); x_11 = lean_unsigned_to_nat(2u); x_12 = lean_nat_dec_lt(x_10, x_11); @@ -2397,9 +2409,9 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_dec(x_1); -x_13 = l_Lean_Expr_inhabited; +x_13 = l_Lean_Expr_Inhabited; x_14 = lean_array_get(x_13, x_9, x_7); -x_15 = l___private_Init_Lean_Expr_3__mkAppRangeAux___main(x_10, x_9, x_11, x_14); +x_15 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_10, x_9, x_11, x_14); lean_dec(x_9); lean_dec(x_10); return x_15; @@ -2580,7 +2592,7 @@ x_24 = lean_unsigned_to_nat(0u); x_25 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_24); x_26 = lean_mk_empty_array_with_capacity(x_25); lean_dec(x_25); -x_27 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_4, x_26); +x_27 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_4, x_26); x_28 = lean_alloc_closure((void*)(l_Lean_whnfCore___main___rarg), 9, 8); lean_closure_set(x_28, 0, x_3); lean_closure_set(x_28, 1, x_5); @@ -2679,13 +2691,13 @@ lean_inc(x_32); lean_dec(x_27); x_33 = lean_unsigned_to_nat(0u); x_34 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_33); -x_35 = l_Lean_Expr_inhabited___closed__1; +x_35 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_34); x_36 = lean_mk_array(x_34, x_35); x_37 = lean_unsigned_to_nat(1u); x_38 = lean_nat_sub(x_34, x_37); lean_dec(x_34); -x_39 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_4, x_36, x_38); +x_39 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_4, x_36, x_38); lean_inc(x_7); lean_inc(x_6); lean_inc(x_3); @@ -2714,13 +2726,13 @@ lean_inc(x_42); lean_dec(x_27); x_43 = lean_unsigned_to_nat(0u); x_44 = l_Lean_Expr_getAppNumArgsAux___main(x_4, x_43); -x_45 = l_Lean_Expr_inhabited___closed__1; +x_45 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_44); x_46 = lean_mk_array(x_44, x_45); x_47 = lean_unsigned_to_nat(1u); x_48 = lean_nat_sub(x_44, x_47); lean_dec(x_44); -x_49 = l___private_Init_Lean_Expr_4__getAppArgsAux___main(x_4, x_46, x_48); +x_49 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_4, x_46, x_48); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -2884,7 +2896,7 @@ x_31 = lean_unsigned_to_nat(0u); x_32 = l_Lean_Expr_getAppNumArgsAux___main(x_3, x_31); x_33 = lean_mk_empty_array_with_capacity(x_32); lean_dec(x_32); -x_34 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_3, x_33); +x_34 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_3, x_33); x_35 = l_Lean_Expr_betaRev(x_1, x_34); lean_dec(x_1); x_36 = l_Lean_whnfCore___main___rarg(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_35); @@ -3131,7 +3143,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_29 = l_Lean_Expr_inhabited; +x_29 = l_Lean_Expr_Inhabited; x_30 = l_monadInhabited___rarg(x_1, x_29); x_31 = l_unreachable_x21___rarg(x_30); return x_31; @@ -3543,7 +3555,7 @@ x_20 = lean_unsigned_to_nat(0u); x_21 = l_Lean_Expr_getAppNumArgsAux___main(x_3, x_20); x_22 = lean_mk_empty_array_with_capacity(x_21); lean_dec(x_21); -x_23 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_3, x_22); +x_23 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_3, x_22); x_24 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___rarg(x_1, x_4, x_23, x_2, x_5); return x_24; } @@ -3562,7 +3574,7 @@ x_26 = lean_unsigned_to_nat(0u); x_27 = l_Lean_Expr_getAppNumArgsAux___main(x_3, x_26); x_28 = lean_mk_empty_array_with_capacity(x_27); lean_dec(x_27); -x_29 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_3, x_28); +x_29 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_3, x_28); lean_inc(x_2); x_30 = lean_alloc_closure((void*)(l_Lean_unfoldDefinitionAux___rarg___lambda__3), 13, 12); lean_closure_set(x_30, 0, x_6); @@ -3613,7 +3625,7 @@ x_35 = lean_unsigned_to_nat(0u); x_36 = l_Lean_Expr_getAppNumArgsAux___main(x_3, x_35); x_37 = lean_mk_empty_array_with_capacity(x_36); lean_dec(x_36); -x_38 = l___private_Init_Lean_Expr_5__getAppRevArgsAux___main(x_3, x_37); +x_38 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_3, x_37); x_39 = l___private_Init_Lean_WHNF_9__deltaBetaDefinition___rarg(x_1, x_4, x_38, x_2, x_5); return x_39; } diff --git a/stage0/src/kernel/expr.cpp b/stage0/src/kernel/expr.cpp index 4ca366cbfb..ebef612228 100644 --- a/stage0/src/kernel/expr.cpp +++ b/stage0/src/kernel/expr.cpp @@ -21,10 +21,6 @@ Author: Leonardo de Moura #include "kernel/abstract.h" #include "kernel/instantiate.h" -#ifndef LEAN_INITIAL_EXPR_CACHE_CAPACITY -#define LEAN_INITIAL_EXPR_CACHE_CAPACITY 1024*16 -#endif - namespace lean { /* Expression literal values */ literal::literal(char const * v): @@ -61,156 +57,6 @@ bool operator<(literal const & a, literal const & b) { lean_unreachable(); } -static inline unsigned literal_hash(b_obj_arg l) { - switch (literal::kind(l)) { - case literal_kind::Nat: return nat::hash(cnstr_get(l, 0)); - case literal_kind::String: return hash_str(string_size(cnstr_get(l, 0)) - 1, string_cstr(cnstr_get(l, 0)), 17); - } - lean_unreachable(); -} - -static unsigned levels_hash(object * ls) { - unsigned r = 23; - while (!is_scalar(ls)) { - r = hash(level::hash(cnstr_get(ls, 0)), r); - ls = cnstr_get(ls, 1); - } - return r; -} - -// ======================================= -// Safe arithmetic - -static unsigned safe_inc(unsigned w) { - if (w < std::numeric_limits::max()) - return w+1; - else - return w; -} - -static unsigned safe_dec(unsigned k) { - return k == 0 ? 0 : k - 1; -} - - -// ======================================= -// Scalar data offset calculation and setters/getters - -inline constexpr unsigned num_obj_fields(expr_kind k) { - return - k == expr_kind::App ? 2 : - k == expr_kind::Const ? 2 : - k == expr_kind::FVar ? 1 : // TODO(Leo): it should be 1 after we remove support for legacy code - k == expr_kind::Lambda ? 3 : - k == expr_kind::Pi ? 3 : - k == expr_kind::BVar ? 1 : - k == expr_kind::Let ? 4 : - k == expr_kind::MVar ? 1 : - k == expr_kind::Sort ? 1 : - k == expr_kind::Lit ? 1 : - k == expr_kind::MData ? 2 : - k == expr_kind::Proj ? 3 : - k == expr_kind::Local ? 3 : // TODO(Leo): delete we remove support for legacy code - /* k == expr_kind::Quote */ 1; -} - -/* Expression scalar data offset. */ -inline constexpr unsigned scalar_offset(expr_kind k) { return num_obj_fields(k) * sizeof(object*); } - -inline constexpr unsigned binder_info_offset(expr_kind k) { - // Only for: k == expr_kind::Pi || k == expr_kind::Lambda || k == expr_kind::Local - return scalar_offset(k); -} - -/* Legacy support */ -inline constexpr unsigned reflected_offset(expr_kind k) { - // Only for: k == expr_kind::Quote - return scalar_offset(k); -} - -inline constexpr unsigned hash_offset(expr_kind k) { - return - k == expr_kind::Local ? scalar_offset(k) + sizeof(unsigned) : // for binder_info, TODO(Leo): delete after we remove support for legacy code - k == expr_kind::Lambda ? scalar_offset(k) + sizeof(unsigned) : // for binder_info - k == expr_kind::Pi ? scalar_offset(k) + sizeof(unsigned) : // for binder_info - scalar_offset(k); -} - -inline constexpr size_t flags_offset(expr_kind k) { return hash_offset(k) + sizeof(unsigned); } -inline constexpr size_t loose_bvar_range_offset(expr_kind k) { return flags_offset(k) + sizeof(unsigned); } -/* Size for scalar value area for non recursive expression. */ -inline constexpr size_t expr_scalar_size(expr_kind k) { return flags_offset(k) + sizeof(unsigned); } -/* Size for scalar value area for recursive expression. */ -inline constexpr size_t rec_expr_scalar_size(expr_kind k) { return loose_bvar_range_offset(k) + sizeof(unsigned); } - -static inline unsigned expr_hash(object * e) { return cnstr_get_scalar(e, hash_offset(expr::kind(e))); } -unsigned hash(expr const & e) { return expr_hash(e.raw()); } -extern "C" size_t lean_expr_hash(object * e) { return expr_hash(e); } - -/* Set expr cached hash code and flags. All expressions contain them. - We provide the kind `k` to allow the compiler to compute offsets at compilation time. */ -template void set_scalar(object * e, unsigned hash, bool has_expr_mvar, bool has_univ_mvar, - bool has_fvar, bool has_univ_param) { - lean_assert(expr::kind(e) == k); - unsigned char d = - (has_expr_mvar ? 1 : 0) + - (has_univ_mvar ? 2 : 0) + - (has_fvar ? 4 : 0) + - (has_univ_param ? 8 : 0); - cnstr_set_scalar(e, hash_offset(k), hash); - cnstr_set_scalar(e, flags_offset(k), d); -} - -/* Set expr cached loose bvar range. We only store this information in recursive expr constructors. - We provide the kind `k` to allow the compiler to compute offsets at compilation time. */ -template void set_rec_scalar(object * e, unsigned loose_bvar_range) { - lean_assert(expr::kind(e) == k); - cnstr_set_scalar(e, loose_bvar_range_offset(k), loose_bvar_range); -} - -template void set_binder_info(object * e, binder_info bi) { - lean_assert(expr::kind(e) == k); - cnstr_set_scalar(e, binder_info_offset(k), static_cast(bi)); -} - -static inline unsigned char get_flags(object * e) { return cnstr_get_scalar(e, flags_offset(expr::kind(e))); } -static inline bool has_expr_mvar(object * e) { return (get_flags(e) & 1) != 0; } -static inline bool has_univ_mvar(object * e) { return (get_flags(e) & 2) != 0; } -static inline bool has_fvar(object * e) { return (get_flags(e) & 4) != 0; } -static inline bool has_univ_param(object * e) { return (get_flags(e) & 8) != 0; } -bool has_expr_mvar(expr const & e) { return has_expr_mvar(e.raw()); } -bool has_univ_mvar(expr const & e) { return has_univ_mvar(e.raw()); } -bool has_fvar(expr const & e) { return has_fvar(e.raw()); } -bool has_univ_param(expr const & e) { return has_univ_param(e.raw()); } - -template unsigned get_loose_bvar_range_core(object * e) { return cnstr_get_scalar(e, loose_bvar_range_offset(k)); } - -unsigned expr_get_loose_bvar_range(object * e) { - switch (expr::kind(e)) { - case expr_kind::Const: case expr_kind::Sort: - case expr_kind::Lit: case expr_kind::MVar: - case expr_kind::FVar: - return 0; - case expr_kind::BVar: { - object * idx = cnstr_get(e, 0); - if (is_scalar(idx)) - return safe_inc(unbox(idx)); - else - return std::numeric_limits::max(); - } - case expr_kind::Local: return get_loose_bvar_range_core(e); - case expr_kind::Lambda: return get_loose_bvar_range_core(e); - case expr_kind::Pi: return get_loose_bvar_range_core(e); - case expr_kind::App: return get_loose_bvar_range_core(e); - case expr_kind::Let: return get_loose_bvar_range_core(e); - case expr_kind::MData: return get_loose_bvar_range_core(e); - case expr_kind::Proj: return get_loose_bvar_range_core(e); - } - lean_unreachable(); // LCOV_EXCL_LINE -} - -extern "C" object * lean_expr_get_loose_bvar_range(b_obj_arg e) { return mk_nat_obj(expr_get_loose_bvar_range(e)); } - bool is_atomic(expr const & e) { switch (e.kind()) { case expr_kind::Const: case expr_kind::Sort: @@ -227,28 +73,29 @@ bool is_atomic(expr const & e) { lean_unreachable(); // LCOV_EXCL_LINE } -binder_info binding_info(expr const & e) { - lean_assert(is_lambda(e) || is_pi(e)); - // Remark: lambda and Pi have the same memory layout - return static_cast(cnstr_get_scalar(e.raw(), binder_info_offset(expr_kind::Lambda))); -} +extern "C" uint8 lean_expr_binder_info(object * e); +binder_info binding_info(expr const & e) { return static_cast(lean_expr_binder_info(e.to_obj_arg())); } -/* Legacy */ -binder_info local_info(expr const & e) { - lean_assert(is_local(e)); - return static_cast(cnstr_get_scalar(e.raw(), binder_info_offset(expr_kind::Local))); -} +extern "C" object * lean_lit_type(obj_arg e); +expr lit_type(expr const & e) { return expr(lean_lit_type(e.to_obj_arg())); } -static expr * g_nat_type = nullptr; -static expr * g_string_type = nullptr; +extern "C" usize lean_expr_hash(obj_arg e); +unsigned hash(expr const & e) { return lean_expr_hash(e.to_obj_arg()); } -expr const & lit_type(expr const & e) { - switch (lit_value(e).kind()) { - case literal_kind::String: return *g_string_type; - case literal_kind::Nat: return *g_nat_type; - } - lean_unreachable(); -} +extern "C" uint8 lean_expr_has_fvar(obj_arg e); +bool has_fvar(expr const & e) { return lean_expr_has_fvar(e.to_obj_arg()); } + +extern "C" uint8 lean_expr_has_expr_mvar(obj_arg e); +bool has_expr_mvar(expr const & e) { return lean_expr_has_expr_mvar(e.to_obj_arg()); } + +extern "C" uint8 lean_expr_has_level_mvar(obj_arg e); +bool has_univ_mvar(expr const & e) { return lean_expr_has_level_mvar(e.to_obj_arg()); } + +extern "C" uint8 lean_expr_has_level_param(obj_arg e); +bool has_univ_param(expr const & e) { return lean_expr_has_level_param(e.to_obj_arg()); } + +extern "C" unsigned lean_expr_loose_bvar_range(object * e); +unsigned get_loose_bvar_range(expr const & e) { return lean_expr_loose_bvar_range(e.to_obj_arg()); } // ======================================= // Constructors @@ -264,209 +111,58 @@ static expr const & get_dummy() { expr::expr():expr(get_dummy()) {} -extern "C" object * lean_expr_mk_lit(obj_arg l) { - object * r = alloc_cnstr(static_cast(expr_kind::Lit), 1, expr_scalar_size(expr_kind::Lit)); - cnstr_set(r, 0, l); - set_scalar(r, literal_hash(l), false, false, false, false); - return r; -} +extern "C" object * lean_expr_mk_lit(obj_arg l); +expr mk_lit(literal const & l) { return expr(lean_expr_mk_lit(l.to_obj_arg())); } -expr mk_lit(literal const & l) { - inc(l.raw()); - return expr(lean_expr_mk_lit(l.raw())); -} +extern "C" object * lean_expr_mk_mdata(obj_arg m, obj_arg e); +expr mk_mdata(kvmap const & m, expr const & e) { return expr(lean_expr_mk_mdata(m.to_obj_arg(), e.to_obj_arg())); } -extern "C" object * lean_expr_mk_mdata(obj_arg m, obj_arg e) { - object * r = alloc_cnstr(static_cast(expr_kind::MData), 2, expr_scalar_size(expr_kind::MData)); - cnstr_set(r, 0, m); - cnstr_set(r, 1, e); - unsigned h = expr_hash(e); // Include hash(m) - set_scalar(r, h, has_expr_mvar(e), has_univ_mvar(e), has_fvar(e), has_univ_param(e)); - set_rec_scalar(r, expr_get_loose_bvar_range(e)); - return r; -} +extern "C" object * lean_expr_mk_proj(obj_arg s, obj_arg idx, obj_arg e); +expr mk_proj(name const & s, nat const & idx, expr const & e) { return expr(lean_expr_mk_proj(s.to_obj_arg(), idx.to_obj_arg(), e.to_obj_arg())); } -expr mk_mdata(kvmap const & m, expr const & e) { - inc(m.raw()); inc(e.raw()); - return expr(lean_expr_mk_mdata(m.raw(), e.raw())); -} +extern "C" object * lean_expr_mk_bvar(obj_arg idx); +expr mk_bvar(nat const & idx) { return expr(lean_expr_mk_bvar(idx.to_obj_arg())); } -extern "C" object * lean_expr_mk_proj(obj_arg s, obj_arg idx, obj_arg e) { - object * r = alloc_cnstr(static_cast(expr_kind::Proj), 3, rec_expr_scalar_size(expr_kind::Proj)); - cnstr_set(r, 0, s); - cnstr_set(r, 1, idx); - cnstr_set(r, 2, e); - unsigned h = hash(expr_hash(e), nat::hash(idx)); - set_scalar(r, h, has_expr_mvar(e), has_univ_mvar(e), has_fvar(e), has_univ_param(e)); - set_rec_scalar(r, expr_get_loose_bvar_range(e)); - return r; -} +extern "C" object * lean_expr_mk_fvar(obj_arg n); +expr mk_fvar(name const & n) { return expr(lean_expr_mk_fvar(n.to_obj_arg())); } -expr mk_proj(name const & s, nat const & idx, expr const & e) { - inc(s.raw()); inc(idx.raw()); inc(e.raw()); - return expr(lean_expr_mk_proj(s.raw(), idx.raw(), e.raw())); -} +extern "C" object * lean_expr_mk_mvar(object * n); +expr mk_mvar(name const & n) { return expr(lean_expr_mk_mvar(n.to_obj_arg())); } -extern "C" object * lean_expr_mk_bvar(obj_arg idx) { - object * r = alloc_cnstr(static_cast(expr_kind::BVar), 1, expr_scalar_size(expr_kind::BVar)); - cnstr_set(r, 0, idx); - set_scalar(r, nat::hash(idx), false, false, false, false); - return r; -} +extern "C" object * lean_expr_mk_const(obj_arg n, obj_arg ls); +expr mk_const(name const & n, levels const & ls) { return expr(lean_expr_mk_const(n.to_obj_arg(), ls.to_obj_arg())); } -expr mk_bvar(nat const & idx) { - inc(idx.raw()); - return expr(lean_expr_mk_bvar(idx.raw())); -} +extern "C" object * lean_expr_mk_app(obj_arg f, obj_arg a); +expr mk_app(expr const & f, expr const & a) { return expr(lean_expr_mk_app(f.to_obj_arg(), a.to_obj_arg())); } -extern "C" object * lean_expr_mk_fvar(obj_arg n) { - object * r = alloc_cnstr(static_cast(expr_kind::FVar), 1, rec_expr_scalar_size(expr_kind::FVar)); - cnstr_set(r, 0, n); - set_scalar(r, name::hash(n), false, false, true, false); - return r; -} - -expr mk_fvar(name const & n) { - return expr(lean_expr_mk_fvar(n.to_obj_arg())); -} - -extern "C" object * lean_expr_mk_const(obj_arg n, obj_arg ls) { - object * r = alloc_cnstr(static_cast(expr_kind::Const), 2, expr_scalar_size(expr_kind::Const)); - cnstr_set(r, 0, n); - cnstr_set(r, 1, ls); - set_scalar(r, hash(name::hash(n), levels_hash(ls)), false, levels_has_mvar(ls), false, levels_has_param(ls)); - return r; -} - -expr mk_const(name const & n, levels const & ls) { - inc(n.raw()); inc(ls.raw()); - return expr(lean_expr_mk_const(n.raw(), ls.raw())); -} - -extern "C" object * lean_expr_mk_app(obj_arg f, obj_arg a) { - object * r = alloc_cnstr(static_cast(expr_kind::App), 2, rec_expr_scalar_size(expr_kind::App)); - cnstr_set(r, 0, f); - cnstr_set(r, 1, a); - unsigned h = hash(expr_hash(f), expr_hash(a)); - set_scalar(r, h, - has_expr_mvar(f) || has_expr_mvar(a), - has_univ_mvar(f) || has_univ_mvar(a), - has_fvar(f) || has_fvar(a), - has_univ_param(f) || has_univ_param(a)); - set_rec_scalar(r, std::max(expr_get_loose_bvar_range(f), expr_get_loose_bvar_range(a))); - return r; -} - -expr mk_app(expr const & f, expr const & a) { - inc(f.raw()); inc(a.raw()); - return expr(lean_expr_mk_app(f.raw(), a.raw())); -} - -extern "C" object * lean_expr_mk_sort(obj_arg l) { - object * r = alloc_cnstr(static_cast(expr_kind::Sort), 1, expr_scalar_size(expr_kind::Sort)); - cnstr_set(r, 0, l); - set_scalar(r, level::hash(l), false, lean_level_has_mvar(l), false, lean_level_has_param(l)); - return r; -} - -expr mk_sort(level const & l) { - inc(l.raw()); - return expr(lean_expr_mk_sort(l.raw())); -} - -template -static object * mk_binding(obj_arg n, obj_arg t, obj_arg e, binder_info bi) { - lean_assert(k == expr_kind::Pi || k == expr_kind::Lambda); - object * r = alloc_cnstr(static_cast(k), 3, rec_expr_scalar_size(k)); - cnstr_set(r, 0, n); - cnstr_set(r, 1, t); - cnstr_set(r, 2, e); - unsigned h = hash(expr_hash(t), expr_hash(e)); - unsigned lbvr = std::max(expr_get_loose_bvar_range(t), safe_dec(expr_get_loose_bvar_range(e))); - set_binder_info(r, bi); - set_scalar(r, h, - has_expr_mvar(t) || has_expr_mvar(e), - has_univ_mvar(t) || has_univ_mvar(e), - has_fvar(t) || has_fvar(e), - has_univ_param(t) || has_univ_param(e)); - set_rec_scalar(r, lbvr); - return r; -} - -extern "C" object * lean_expr_mk_lambda(obj_arg n, uint8 bi, obj_arg t, obj_arg e) { - return mk_binding(n, t, e, static_cast(bi)); -} +extern "C" object * lean_expr_mk_sort(obj_arg l); +expr mk_sort(level const & l) { return expr(lean_expr_mk_sort(l.to_obj_arg())); } +extern "C" object * lean_expr_mk_lambda(obj_arg n, obj_arg t, obj_arg e, uint8 bi); expr mk_lambda(name const & n, expr const & t, expr const & e, binder_info bi) { - inc(n.raw()); inc(t.raw()); inc(e.raw()); - return expr(mk_binding(n.raw(), t.raw(), e.raw(), bi)); -} - -extern "C" object * lean_expr_mk_forall(obj_arg n, uint8 bi, obj_arg t, obj_arg e) { - return mk_binding(n, t, e, static_cast(bi)); + return expr(lean_expr_mk_lambda(n.to_obj_arg(), t.to_obj_arg(), e.to_obj_arg(), static_cast(bi))); } +extern "C" object * lean_expr_mk_forall(obj_arg n, obj_arg t, obj_arg e, uint8 bi); expr mk_pi(name const & n, expr const & t, expr const & e, binder_info bi) { - inc(n.raw()); inc(t.raw()); inc(e.raw()); - return expr(mk_binding(n.raw(), t.raw(), e.raw(), bi)); + return expr(lean_expr_mk_forall(n.to_obj_arg(), t.to_obj_arg(), e.to_obj_arg(), static_cast(bi))); } static name * g_default_name = nullptr; - expr mk_arrow(expr const & t, expr const & e) { return mk_pi(*g_default_name, t, e, mk_binder_info()); } -extern "C" object * lean_expr_mk_let(object * n, object * t, object * v, object * b) { - object * r = alloc_cnstr(static_cast(expr_kind::Let), 4, rec_expr_scalar_size(expr_kind::Let)); - cnstr_set(r, 0, n); - cnstr_set(r, 1, t); - cnstr_set(r, 2, v); - cnstr_set(r, 3, b); - unsigned h = hash(hash(expr_hash(t), expr_hash(v)), expr_hash(b)); - unsigned lbvr = std::max(expr_get_loose_bvar_range(t), std::max(expr_get_loose_bvar_range(v), safe_dec(expr_get_loose_bvar_range(b)))); - set_scalar(r, h, - has_expr_mvar(t) || has_expr_mvar(v) || has_expr_mvar(b), - has_univ_mvar(t) || has_univ_mvar(v) || has_univ_mvar(b), - has_fvar(t) || has_fvar(v) || has_fvar(b), - has_univ_param(t) || has_univ_param(v) || has_univ_param(b)); - set_rec_scalar(r, lbvr); - return r; -} - +extern "C" object * lean_expr_mk_let(object * n, object * t, object * v, object * b); expr mk_let(name const & n, expr const & t, expr const & v, expr const & b) { - inc(n.raw()); inc(t.raw()); inc(v.raw()); inc(b.raw()); - return expr(lean_expr_mk_let(n.raw(), t.raw(), v.raw(), b.raw())); -} - -extern "C" object * lean_expr_mk_mvar_core(object * n) { - object * r = alloc_cnstr(static_cast(expr_kind::MVar), 1, rec_expr_scalar_size(expr_kind::MVar)); - cnstr_set(r, 0, n); - set_scalar(r, name::hash(n), true, false, false, false); - set_rec_scalar(r, 0); - return r; -} - -extern "C" object * lean_expr_mk_mvar(object * n) { - return lean_expr_mk_mvar_core(n); -} - -expr mk_mvar(name const & n) { - inc(n.raw()); - return expr(lean_expr_mk_mvar_core(n.raw())); + return expr(lean_expr_mk_let(n.to_obj_arg(), t.to_obj_arg(), v.to_obj_arg(), b.to_obj_arg())); } static expr * g_Prop = nullptr; static expr * g_Type0 = nullptr; - expr mk_Prop() { return *g_Prop; } expr mk_Type() { return *g_Type0; } -// Legacy -extern "C" obj_res lean_expr_local(obj_arg vm_name, obj_arg vm_pp_name, obj_arg vm_type, uint8 vm_binder_info) { - return mk_local(name(vm_name), name(vm_pp_name), expr(vm_type), static_cast(vm_binder_info)).steal(); -} - // ======================================= // Auxiliary constructors and accessors @@ -570,20 +266,6 @@ bool is_default_var_name(name const & n) { return n == *g_default_name; } -/* Legacy */ -optional has_expr_metavar_strict(expr const & e) { - if (!has_expr_metavar(e)) - return none_expr(); - optional r; - for_each(e, [&](expr const & e, unsigned) { - if (r || !has_expr_metavar(e)) return false; - if (is_metavar_app(e)) { r = e; return false; } - if (is_local(e)) return false; // do not visit type - return true; - }); - return r; -} - // ======================================= // Update @@ -643,45 +325,6 @@ expr update_let(expr const & e, expr const & new_type, expr const & new_value, e return e; } -/* Legacy */ -static inline object * mk_local(obj_arg n, obj_arg pp_n, obj_arg t, binder_info bi) { - object * r = alloc_cnstr(static_cast(expr_kind::Local), 3, rec_expr_scalar_size(expr_kind::Local)); - cnstr_set(r, 0, n); - cnstr_set(r, 1, pp_n); - cnstr_set(r, 2, t); - set_binder_info(r, bi); - set_scalar(r, name::hash(n), has_expr_mvar(t), has_univ_mvar(t), true, has_univ_param(t)); - set_rec_scalar(r, expr_get_loose_bvar_range(t)); - return r; -} - -/* Legacy */ -expr mk_local(name const & n, name const & pp_n, expr const & t, binder_info bi) { - inc(n.raw()); inc(pp_n.raw()); inc(t.raw()); - return expr(mk_local(n.raw(), pp_n.raw(), t.raw(), bi)); -} - -/* Legacy */ -expr update_local(expr const & e, expr const & new_type, binder_info bi) { - if (is_eqp(local_type(e), new_type) && local_info(e) == bi) - return e; - else - return mk_local(local_name(e), local_pp_name(e), new_type, bi); -} - -/* Legacy */ -expr update_local(expr const & e, binder_info bi) { - return update_local(e, local_type(e), bi); -} - -/* Legacy */ -expr update_local(expr const & e, expr const & new_type) { - if (is_eqp(local_type(e), new_type)) - return e; - else - return mk_local(local_name(e), local_pp_name(e), new_type, local_info(e)); -} - extern "C" object * lean_expr_update_mdata(obj_arg e, obj_arg new_expr) { if (mdata_expr(TO_REF(expr, e)).raw() != new_expr) { lean_dec_ref(e); @@ -736,8 +379,7 @@ extern "C" object * lean_expr_update_forall(obj_arg e, uint8 new_binfo, obj_arg if (binding_domain(TO_REF(expr, e)).raw() != new_domain || binding_body(TO_REF(expr, e)).raw() != new_body || binding_info(TO_REF(expr, e)) != static_cast(new_binfo)) { lean_dec_ref(e); - return lean_expr_mk_forall(binding_name(TO_REF(expr, e)).to_obj_arg(), - new_binfo, new_domain, new_body); + return lean_expr_mk_forall(binding_name(TO_REF(expr, e)).to_obj_arg(), new_domain, new_body, new_binfo); } else { lean_dec_ref(new_domain); lean_dec_ref(new_body); return e; @@ -748,8 +390,7 @@ extern "C" object * lean_expr_update_lambda(obj_arg e, uint8 new_binfo, obj_arg if (binding_domain(TO_REF(expr, e)).raw() != new_domain || binding_body(TO_REF(expr, e)).raw() != new_body || binding_info(TO_REF(expr, e)) != static_cast(new_binfo)) { lean_dec_ref(e); - return lean_expr_mk_lambda(binding_name(TO_REF(expr, e)).to_obj_arg(), - new_binfo, new_domain, new_body); + return lean_expr_mk_lambda(binding_name(TO_REF(expr, e)).to_obj_arg(), new_domain, new_body, new_binfo); } else { lean_dec_ref(new_domain); lean_dec_ref(new_body); return e; @@ -767,7 +408,6 @@ extern "C" object * lean_expr_update_let(obj_arg e, obj_arg new_type, obj_arg ne } } - // ======================================= // Loose bound variable management @@ -878,21 +518,6 @@ expr infer_implicit(expr const & t, bool strict) { return infer_implicit(t, std::numeric_limits::max(), strict); } -// ======================================= -// Extra exports - -extern "C" uint8 lean_expr_has_expr_mvar(b_obj_arg o) { - return has_expr_mvar(TO_REF(expr, o)); -} - -extern "C" uint8 lean_expr_has_level_mvar(b_obj_arg o) { - return has_univ_mvar(TO_REF(expr, o)); -} - -extern "C" uint8 lean_expr_has_fvar(b_obj_arg o) { - return has_fvar(TO_REF(expr, o)); -} - // ======================================= // Initialization & Finalization @@ -903,8 +528,6 @@ void initialize_expr() { g_Prop = new expr(mk_sort(mk_level_zero())); /* TODO(Leo): add support for builtin constants in the kernel. Something similar to what we have in the library directory. */ - g_nat_type = new expr(mk_constant("Nat")); - g_string_type = new expr(mk_constant("String")); } void finalize_expr() { @@ -912,7 +535,45 @@ void finalize_expr() { delete g_Type0; delete g_dummy; delete g_default_name; - delete g_nat_type; - delete g_string_type; +} + +// ======================================= +// Legacy + +binder_info local_info(expr const & e) { lean_assert(is_local(e)); return static_cast(lean_expr_binder_info(e.to_obj_arg())); } +extern "C" object * lean_expr_mk_local(obj_arg n, obj_arg u, obj_arg t, uint8 bi); +expr mk_local(name const & n, name const & pp_n, expr const & t, binder_info bi) { + return expr(lean_expr_mk_local(n.to_obj_arg(), pp_n.to_obj_arg(), t.to_obj_arg(), static_cast(bi))); +} + +expr update_local(expr const & e, expr const & new_type, binder_info bi) { + if (is_eqp(local_type(e), new_type) && local_info(e) == bi) + return e; + else + return mk_local(local_name(e), local_pp_name(e), new_type, bi); +} + +expr update_local(expr const & e, binder_info bi) { + return update_local(e, local_type(e), bi); +} + +expr update_local(expr const & e, expr const & new_type) { + if (is_eqp(local_type(e), new_type)) + return e; + else + return mk_local(local_name(e), local_pp_name(e), new_type, local_info(e)); +} + +optional has_expr_metavar_strict(expr const & e) { + if (!has_expr_metavar(e)) + return none_expr(); + optional r; + for_each(e, [&](expr const & e, unsigned) { + if (r || !has_expr_metavar(e)) return false; + if (is_metavar_app(e)) { r = e; return false; } + if (is_local(e)) return false; // do not visit type + return true; + }); + return r; } } diff --git a/stage0/src/kernel/expr.h b/stage0/src/kernel/expr.h index 51856fa789..40610917ee 100644 --- a/stage0/src/kernel/expr.h +++ b/stage0/src/kernel/expr.h @@ -150,8 +150,7 @@ bool has_univ_mvar(expr const & e); inline bool has_mvar(expr const & e) { return has_expr_mvar(e) || has_univ_mvar(e); } bool has_fvar(expr const & e); bool has_univ_param(expr const & e); -unsigned expr_get_loose_bvar_range(object * e); -inline unsigned get_loose_bvar_range(expr const & e) { return expr_get_loose_bvar_range(e.raw()); } +unsigned get_loose_bvar_range(expr const & e); struct expr_hash { unsigned operator()(expr const & e) const { return hash(e); } }; struct expr_pair_hash { @@ -227,7 +226,7 @@ expr mk_Type(); inline literal const & lit_value(expr const & e) { lean_assert(is_lit(e)); return static_cast(cnstr_get_ref(e, 0)); } inline bool is_nat_lit(expr const & e) { return is_lit(e) && lit_value(e).kind() == literal_kind::Nat; } inline bool is_string_lit(expr const & e) { return is_lit(e) && lit_value(e).kind() == literal_kind::String; } -expr const & lit_type(expr const & e); +expr lit_type(expr const & e); inline kvmap const & mdata_data(expr const & e) { lean_assert(is_mdata(e)); return static_cast(cnstr_get_ref(e, 0)); } inline expr const & mdata_expr(expr const & e) { lean_assert(is_mdata(e)); return static_cast(cnstr_get_ref(e, 1)); } inline name const & proj_sname(expr const & e) { lean_assert(is_proj(e)); return static_cast(cnstr_get_ref(e, 0)); } diff --git a/stage0/src/library/compiler/util.cpp b/stage0/src/library/compiler/util.cpp index ca5c3c6d4a..c8bfaa1ec6 100644 --- a/stage0/src/library/compiler/util.cpp +++ b/stage0/src/library/compiler/util.cpp @@ -372,7 +372,6 @@ bool is_runtime_builtin_type(name const & n) { n == get_usize_name() || n == get_thunk_name() || n == get_lean_name_name() || - n == get_lean_expr_name() || n == get_lean_level_name() || n == get_task_name() || n == get_array_name() ||