diff --git a/src/stage0/CMakeLists.txt b/src/stage0/CMakeLists.txt index 569948223f..7944ff03cb 100644 --- a/src/stage0/CMakeLists.txt +++ b/src/stage0/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init/Coe.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/Default.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Lift.c ./Init/Control/Monad.c ./Init/Control/MonadFail.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Core.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/Default.c ./Init/Data/Array/QSort.c ./Init/Data/AssocList.c ./Init/Data/Basic.c ./Init/Data/BinomialHeap/Basic.c ./Init/Data/BinomialHeap/Default.c ./Init/Data/ByteArray/Basic.c ./Init/Data/ByteArray/Default.c ./Init/Data/Char/Basic.c ./Init/Data/Char/Default.c ./Init/Data/DList.c ./Init/Data/Default.c ./Init/Data/Fin/Basic.c ./Init/Data/Fin/Default.c ./Init/Data/HashMap/Basic.c ./Init/Data/HashMap/Default.c ./Init/Data/HashSet.c ./Init/Data/Hashable.c ./Init/Data/Int/Basic.c ./Init/Data/Int/Default.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/List/Default.c ./Init/Data/List/Instances.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Default.c ./Init/Data/Nat/Div.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Default.c ./Init/Data/Option/Instances.c ./Init/Data/PersistentArray/Basic.c ./Init/Data/PersistentArray/Default.c ./Init/Data/PersistentHashMap/Basic.c ./Init/Data/PersistentHashMap/Default.c ./Init/Data/PersistentHashSet.c ./Init/Data/Queue/Basic.c ./Init/Data/Queue/Default.c ./Init/Data/RBMap/Basic.c ./Init/Data/RBMap/BasicAux.c ./Init/Data/RBMap/Default.c ./Init/Data/RBTree/Basic.c ./Init/Data/RBTree/Default.c ./Init/Data/Random.c ./Init/Data/Repr.c ./Init/Data/Stack/Basic.c ./Init/Data/Stack/Default.c ./Init/Data/String/Basic.c ./Init/Data/String/Default.c ./Init/Data/ToString.c ./Init/Data/UInt.c ./Init/Default.c ./Init/Fix.c ./Init/Lean/AbstractMetavarContext.c ./Init/Lean/Attributes.c ./Init/Lean/Class.c ./Init/Lean/Compiler/ClosedTermCache.c ./Init/Lean/Compiler/ConstFolding.c ./Init/Lean/Compiler/Default.c ./Init/Lean/Compiler/ExportAttr.c ./Init/Lean/Compiler/ExternAttr.c ./Init/Lean/Compiler/IR/Basic.c ./Init/Lean/Compiler/IR/Borrow.c ./Init/Lean/Compiler/IR/Boxing.c ./Init/Lean/Compiler/IR/Checker.c ./Init/Lean/Compiler/IR/CompilerM.c ./Init/Lean/Compiler/IR/CtorLayout.c ./Init/Lean/Compiler/IR/Default.c ./Init/Lean/Compiler/IR/ElimDeadBranches.c ./Init/Lean/Compiler/IR/ElimDeadVars.c ./Init/Lean/Compiler/IR/EmitC.c ./Init/Lean/Compiler/IR/EmitUtil.c ./Init/Lean/Compiler/IR/ExpandResetReuse.c ./Init/Lean/Compiler/IR/Format.c ./Init/Lean/Compiler/IR/FreeVars.c ./Init/Lean/Compiler/IR/LiveVars.c ./Init/Lean/Compiler/IR/NormIds.c ./Init/Lean/Compiler/IR/PushProj.c ./Init/Lean/Compiler/IR/RC.c ./Init/Lean/Compiler/IR/ResetReuse.c ./Init/Lean/Compiler/IR/SimpCase.c ./Init/Lean/Compiler/IR/UnboxResult.c ./Init/Lean/Compiler/ImplementedByAttr.c ./Init/Lean/Compiler/InitAttr.c ./Init/Lean/Compiler/InlineAttrs.c ./Init/Lean/Compiler/NameMangling.c ./Init/Lean/Compiler/NeverExtractAttr.c ./Init/Lean/Compiler/Specialize.c ./Init/Lean/Compiler/Util.c ./Init/Lean/Declaration.c ./Init/Lean/Default.c ./Init/Lean/Elaborator/Alias.c ./Init/Lean/Elaborator/Basic.c ./Init/Lean/Elaborator/Command.c ./Init/Lean/Elaborator/Default.c ./Init/Lean/Elaborator/ElabStrategyAttrs.c ./Init/Lean/Elaborator/PreTerm.c ./Init/Lean/Elaborator/ResolveName.c ./Init/Lean/Elaborator/Term.c ./Init/Lean/Environment.c ./Init/Lean/EqnCompiler/Default.c ./Init/Lean/EqnCompiler/MatchPattern.c ./Init/Lean/Expr.c ./Init/Lean/Format.c ./Init/Lean/KVMap.c ./Init/Lean/Level.c ./Init/Lean/LocalContext.c ./Init/Lean/Message.c ./Init/Lean/MetavarContext.c ./Init/Lean/Modifiers.c ./Init/Lean/Name.c ./Init/Lean/NameGenerator.c ./Init/Lean/Options.c ./Init/Lean/Parser/Command.c ./Init/Lean/Parser/Default.c ./Init/Lean/Parser/Identifier.c ./Init/Lean/Parser/Level.c ./Init/Lean/Parser/Module.c ./Init/Lean/Parser/Parser.c ./Init/Lean/Parser/Term.c ./Init/Lean/Parser/Transform.c ./Init/Lean/Parser/Trie.c ./Init/Lean/Path.c ./Init/Lean/Position.c ./Init/Lean/ProjFns.c ./Init/Lean/ReducibilityAttrs.c ./Init/Lean/Runtime.c ./Init/Lean/SMap.c ./Init/Lean/Scopes.c ./Init/Lean/Syntax.c ./Init/Lean/ToExpr.c ./Init/Lean/Trace.c ./Init/Lean/TypeClass/Basic.c ./Init/Lean/TypeClass/Context.c ./Init/Lean/TypeClass/Default.c ./Init/Lean/TypeClass/Synth.c ./Init/Lean/TypeContext.c ./Init/Lean/Util.c ./Init/System/Default.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/Platform.c ./Init/Util.c ./Init/WF.c) +add_library (stage0 OBJECT ./Init/Coe.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/Default.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Lift.c ./Init/Control/Monad.c ./Init/Control/MonadFail.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Core.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/Default.c ./Init/Data/Array/QSort.c ./Init/Data/AssocList.c ./Init/Data/Basic.c ./Init/Data/BinomialHeap/Basic.c ./Init/Data/BinomialHeap/Default.c ./Init/Data/ByteArray/Basic.c ./Init/Data/ByteArray/Default.c ./Init/Data/Char/Basic.c ./Init/Data/Char/Default.c ./Init/Data/DList.c ./Init/Data/Default.c ./Init/Data/Fin/Basic.c ./Init/Data/Fin/Default.c ./Init/Data/HashMap/Basic.c ./Init/Data/HashMap/Default.c ./Init/Data/HashSet.c ./Init/Data/Hashable.c ./Init/Data/Int/Basic.c ./Init/Data/Int/Default.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/List/Default.c ./Init/Data/List/Instances.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Default.c ./Init/Data/Nat/Div.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Default.c ./Init/Data/Option/Instances.c ./Init/Data/PersistentArray/Basic.c ./Init/Data/PersistentArray/Default.c ./Init/Data/PersistentHashMap/Basic.c ./Init/Data/PersistentHashMap/Default.c ./Init/Data/PersistentHashSet.c ./Init/Data/Queue/Basic.c ./Init/Data/Queue/Default.c ./Init/Data/RBMap/Basic.c ./Init/Data/RBMap/BasicAux.c ./Init/Data/RBMap/Default.c ./Init/Data/RBTree/Basic.c ./Init/Data/RBTree/Default.c ./Init/Data/Random.c ./Init/Data/Repr.c ./Init/Data/Stack/Basic.c ./Init/Data/Stack/Default.c ./Init/Data/String/Basic.c ./Init/Data/String/Default.c ./Init/Data/ToString.c ./Init/Data/UInt.c ./Init/Default.c ./Init/Fix.c ./Init/Lean/AbstractMetavarContext.c ./Init/Lean/Attributes.c ./Init/Lean/Class.c ./Init/Lean/Compiler/ClosedTermCache.c ./Init/Lean/Compiler/ConstFolding.c ./Init/Lean/Compiler/Default.c ./Init/Lean/Compiler/ExportAttr.c ./Init/Lean/Compiler/ExternAttr.c ./Init/Lean/Compiler/IR/Basic.c ./Init/Lean/Compiler/IR/Borrow.c ./Init/Lean/Compiler/IR/Boxing.c ./Init/Lean/Compiler/IR/Checker.c ./Init/Lean/Compiler/IR/CompilerM.c ./Init/Lean/Compiler/IR/CtorLayout.c ./Init/Lean/Compiler/IR/Default.c ./Init/Lean/Compiler/IR/ElimDeadBranches.c ./Init/Lean/Compiler/IR/ElimDeadVars.c ./Init/Lean/Compiler/IR/EmitC.c ./Init/Lean/Compiler/IR/EmitUtil.c ./Init/Lean/Compiler/IR/ExpandResetReuse.c ./Init/Lean/Compiler/IR/Format.c ./Init/Lean/Compiler/IR/FreeVars.c ./Init/Lean/Compiler/IR/LiveVars.c ./Init/Lean/Compiler/IR/NormIds.c ./Init/Lean/Compiler/IR/PushProj.c ./Init/Lean/Compiler/IR/RC.c ./Init/Lean/Compiler/IR/ResetReuse.c ./Init/Lean/Compiler/IR/SimpCase.c ./Init/Lean/Compiler/IR/UnboxResult.c ./Init/Lean/Compiler/ImplementedByAttr.c ./Init/Lean/Compiler/InitAttr.c ./Init/Lean/Compiler/InlineAttrs.c ./Init/Lean/Compiler/NameMangling.c ./Init/Lean/Compiler/NeverExtractAttr.c ./Init/Lean/Compiler/Specialize.c ./Init/Lean/Compiler/Util.c ./Init/Lean/Declaration.c ./Init/Lean/Default.c ./Init/Lean/Elaborator/Alias.c ./Init/Lean/Elaborator/Basic.c ./Init/Lean/Elaborator/Command.c ./Init/Lean/Elaborator/Default.c ./Init/Lean/Elaborator/ElabStrategyAttrs.c ./Init/Lean/Elaborator/PreTerm.c ./Init/Lean/Elaborator/ResolveName.c ./Init/Lean/Elaborator/Term.c ./Init/Lean/Environment.c ./Init/Lean/EqnCompiler/Default.c ./Init/Lean/EqnCompiler/MatchPattern.c ./Init/Lean/Expr.c ./Init/Lean/Format.c ./Init/Lean/KVMap.c ./Init/Lean/Level.c ./Init/Lean/LocalContext.c ./Init/Lean/Message.c ./Init/Lean/MetavarContext.c ./Init/Lean/Modifiers.c ./Init/Lean/MonadCache.c ./Init/Lean/Name.c ./Init/Lean/NameGenerator.c ./Init/Lean/Options.c ./Init/Lean/Parser/Command.c ./Init/Lean/Parser/Default.c ./Init/Lean/Parser/Identifier.c ./Init/Lean/Parser/Level.c ./Init/Lean/Parser/Module.c ./Init/Lean/Parser/Parser.c ./Init/Lean/Parser/Term.c ./Init/Lean/Parser/Transform.c ./Init/Lean/Parser/Trie.c ./Init/Lean/Path.c ./Init/Lean/Position.c ./Init/Lean/ProjFns.c ./Init/Lean/ReducibilityAttrs.c ./Init/Lean/Runtime.c ./Init/Lean/SMap.c ./Init/Lean/Scopes.c ./Init/Lean/Syntax.c ./Init/Lean/ToExpr.c ./Init/Lean/Trace.c ./Init/Lean/TypeClass/Basic.c ./Init/Lean/TypeClass/Context.c ./Init/Lean/TypeClass/Default.c ./Init/Lean/TypeClass/Synth.c ./Init/Lean/TypeContext.c ./Init/Lean/Util.c ./Init/System/Default.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/Platform.c ./Init/Util.c ./Init/WF.c) diff --git a/src/stage0/Init/Control/EState.c b/src/stage0/Init/Control/EState.c index 7dc273f0ba..395f2341fb 100644 --- a/src/stage0/Init/Control/EState.c +++ b/src/stage0/Init/Control/EState.c @@ -17,6 +17,7 @@ lean_object* l_EState_seqRight___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_EState_adaptState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EState_HasRepr___rarg(lean_object*, lean_object*); lean_object* l_EState_Monad(lean_object*, lean_object*); +lean_object* l_EState_MonadStateAdapter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EState_set(lean_object*, lean_object*); lean_object* l_EState_Monad___closed__6; lean_object* l_EState_MonadState___closed__3; @@ -42,6 +43,7 @@ lean_object* l_EState_HasOrelse___rarg(lean_object*); extern lean_object* l_Except_toString___rarg___closed__2; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_EState_Monad___closed__2; +lean_object* l_EState_MonadStateAdapter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__3; lean_object* l_EState_MonadExcept___rarg___closed__1; lean_object* l_EState_pure(lean_object*, lean_object*, lean_object*); @@ -1211,13 +1213,13 @@ lean_object* l_EState_adaptState___rarg(lean_object* x_1, lean_object* x_2, lean _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = lean_apply_1(x_2, x_4); +x_5 = lean_apply_1(x_1, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec(x_5); -x_8 = lean_apply_1(x_1, x_6); +x_8 = lean_apply_1(x_3, x_6); if (lean_obj_tag(x_8) == 0) { uint8_t x_9; @@ -1226,7 +1228,7 @@ if (x_9 == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_ctor_get(x_8, 1); -x_11 = lean_apply_2(x_3, x_10, x_7); +x_11 = lean_apply_2(x_2, x_10, x_7); lean_ctor_set(x_8, 1, x_11); return x_8; } @@ -1238,7 +1240,7 @@ x_13 = lean_ctor_get(x_8, 1); lean_inc(x_13); lean_inc(x_12); lean_dec(x_8); -x_14 = lean_apply_2(x_3, x_13, x_7); +x_14 = lean_apply_2(x_2, x_13, x_7); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_12); lean_ctor_set(x_15, 1, x_14); @@ -1253,7 +1255,7 @@ if (x_16 == 0) { lean_object* x_17; lean_object* x_18; x_17 = lean_ctor_get(x_8, 1); -x_18 = lean_apply_2(x_3, x_17, x_7); +x_18 = lean_apply_2(x_2, x_17, x_7); lean_ctor_set(x_8, 1, x_18); return x_8; } @@ -1265,7 +1267,7 @@ x_20 = lean_ctor_get(x_8, 1); lean_inc(x_20); lean_inc(x_19); lean_dec(x_8); -x_21 = lean_apply_2(x_3, x_20, x_7); +x_21 = lean_apply_2(x_2, x_20, x_7); x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_19); lean_ctor_set(x_22, 1, x_21); @@ -1282,6 +1284,81 @@ x_6 = lean_alloc_closure((void*)(l_EState_adaptState___rarg), 4, 0); return x_6; } } +lean_object* l_EState_MonadStateAdapter___rarg(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; +x_5 = lean_apply_1(x_1, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_apply_1(x_3, x_6); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 1); +x_11 = lean_apply_2(x_2, x_10, x_7); +lean_ctor_set(x_8, 1, x_11); +return x_8; +} +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_inc(x_12); +lean_dec(x_8); +x_14 = lean_apply_2(x_2, x_13, x_7); +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 +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_8, 1); +x_18 = lean_apply_2(x_2, x_17, x_7); +lean_ctor_set(x_8, 1, x_18); +return x_8; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_8, 0); +x_20 = lean_ctor_get(x_8, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_8); +x_21 = lean_apply_2(x_2, x_20, x_7); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l_EState_MonadStateAdapter(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 = lean_alloc_closure((void*)(l_EState_MonadStateAdapter___rarg), 4, 0); +return x_6; +} +} lean_object* l_EState_fromState___rarg(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/src/stage0/Init/Data/Nat/Control.c b/src/stage0/Init/Data/Nat/Control.c index 5a42495d1c..5864ce1908 100644 --- a/src/stage0/Init/Data/Nat/Control.c +++ b/src/stage0/Init/Data/Nat/Control.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Nat_foldRevM___rarg(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*); lean_object* l_Nat_foldRevMAux___boxed(lean_object*, lean_object*); lean_object* l_Nat_forRevMAux(lean_object*); @@ -31,9 +32,11 @@ lean_object* l_Nat_foldMAux___rarg___boxed(lean_object*, lean_object*, lean_obje lean_object* l_Nat_forMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forRevMAux___boxed(lean_object*); lean_object* l_Nat_foldMAux___main___boxed(lean_object*, lean_object*); +lean_object* l_Nat_foldRevM___boxed(lean_object*, lean_object*); lean_object* l_Nat_forRevM___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Nat_forRevM(lean_object*); +lean_object* l_Nat_foldRevM(lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldM(lean_object*, lean_object*); lean_object* l_Nat_forRevMAux___main___rarg(lean_object*, lean_object*, lean_object*); @@ -42,7 +45,6 @@ lean_object* l_Nat_foldRevMAux___main___boxed(lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main(lean_object*, lean_object*); lean_object* l_Nat_foldMAux(lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_mfoldRev___boxed(lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forRevMAux___main(lean_object*); lean_object* l_Nat_forRevMAux___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -50,17 +52,15 @@ lean_object* l_Nat_foldMAux___main___rarg___boxed(lean_object*, lean_object*, le lean_object* l_Nat_forMAux___boxed(lean_object*); lean_object* l_Nat_forMAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forRevMAux___main___boxed(lean_object*); -lean_object* l_Nat_mfoldRev(lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forMAux(lean_object*); -lean_object* l_Nat_mfoldRev___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___boxed(lean_object*); lean_object* l_Nat_foldMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forRevMAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevMAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forMAux___main(lean_object*); -lean_object* l_Nat_mfoldRev___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forRevM___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: @@ -549,7 +549,7 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Nat_mfoldRev___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Nat_foldRevM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -557,28 +557,28 @@ x_5 = l_Nat_foldRevMAux___main___rarg(x_1, x_2, x_4, x_3); return x_5; } } -lean_object* l_Nat_mfoldRev(lean_object* x_1, lean_object* x_2) { +lean_object* l_Nat_foldRevM(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Nat_mfoldRev___rarg___boxed), 4, 0); +x_3 = lean_alloc_closure((void*)(l_Nat_foldRevM___rarg___boxed), 4, 0); return x_3; } } -lean_object* l_Nat_mfoldRev___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Nat_foldRevM___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_Nat_mfoldRev___rarg(x_1, x_2, x_3, x_4); +x_5 = l_Nat_foldRevM___rarg(x_1, x_2, x_3, x_4); lean_dec(x_4); return x_5; } } -lean_object* l_Nat_mfoldRev___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Nat_foldRevM___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Nat_mfoldRev(x_1, x_2); +x_3 = l_Nat_foldRevM(x_1, x_2); lean_dec(x_2); return x_3; } diff --git a/src/stage0/Init/Lean/AbstractMetavarContext.c b/src/stage0/Init/Lean/AbstractMetavarContext.c index 4a9a9c08e7..f55d4d879a 100644 --- a/src/stage0/Init/Lean/AbstractMetavarContext.c +++ b/src/stage0/Init/Lean/AbstractMetavarContext.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Lean.AbstractMetavarContext -// Imports: Init.Control.Reader Init.Control.Conditional Init.Data.Option.Default Init.Data.List.Default Init.Lean.LocalContext +// Imports: Init.Control.Reader Init.Control.Conditional Init.Data.Option.Default Init.Data.List.Default Init.Data.Nat.Default Init.Lean.LocalContext Init.Lean.MonadCache Init.Lean.NameGenerator #include "runtime/lean.h" #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,193 +13,543 @@ #ifdef __cplusplus extern "C" { #endif -uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(lean_object*, lean_object*); -lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3___boxed(lean_object*, lean_object*); -lean_object* l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__30___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx___rarg(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_isLevelAssigned___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_fvar(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_visit(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_getMCtx(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_DependsOn_visit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___main___rarg___boxed(lean_object*, lean_object*, lean_object*); +uint8_t lean_name_dec_eq(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__34(lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57(lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__53___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_localDeclDependsOn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_getMCtx___boxed(lean_object*, lean_object*); +lean_object* lean_expr_mk_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_mkHashMap___at_Lean_AbstractMetavarContext_exprDependsOn___spec__2(lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__56(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarDecl_Inhabited___closed__1; +lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx(lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__5(lean_object*); +extern lean_object* l_Lean_LocalDecl_Inhabited; +lean_object* l_Lean_AbstractMetavarContext_mkForall___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63(lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__14(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_withFreshCache___rarg(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForall___boxed(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__18(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_letName___closed__1; +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__13___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter(lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__41___boxed(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getInScope___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_exprIsInhabited; +extern lean_object* l_List_repr___rarg___closed__3; lean_object* l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1___boxed(lean_object*, lean_object*); size_t lean_expr_hash(lean_object*); lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_exprDependsOn(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_collectDeps(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForallAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); -lean_object* l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__6(lean_object*, lean_object*, lean_object*); +size_t l_USize_shift__right(size_t, size_t); uint8_t lean_level_has_mvar(lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_expand___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__4(lean_object*, lean_object*); uint8_t l_AssocList_contains___main___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__2(lean_object*, lean_object*); lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__1; +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__38___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedMVar___main(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1(lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__53(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_visit___boxed(lean_object*, lean_object*); lean_object* l_StateT_Monad___rarg(lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateLevelMVars___main(lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkBinding(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_mkHashMap___at_Lean_AbstractMetavarContext_instantiateMVars___spec__1(lean_object*); +extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForall(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4(lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main(lean_object*); -uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForall___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkForall(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__2; +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__4; lean_object* l_Lean_AbstractMetavarContext_hasAssignedMVar(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateLevelMVars(lean_object*); +lean_object* lean_expr_mk_app(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4(uint8_t, lean_object*); lean_object* l_Lean_AbstractMetavarContext_exprDependsOn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__19(lean_object*, lean_object*, lean_object*); +size_t l_USize_sub(size_t, size_t); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkFreshId___rarg(lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33(lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_withFreshCache___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedLevelMVar(lean_object*); lean_object* l_Lean_AbstractMetavarContext_DependsOn_main(lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61___rarg(lean_object*, lean_object*, lean_object*, 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_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__28(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__43___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_exprDependsOn___rarg___closed__1; +lean_object* l_List_toString___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__3(lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__47___boxed(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__42(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkLambda___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__50___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__42___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__43(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__50(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_HasToString; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateLevelMVars___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg___closed__1; +lean_object* l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17___boxed(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__24(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppRev(lean_object*, lean_object*); uint8_t l_List_foldr___main___at_Lean_AbstractMetavarContext_hasAssignedMVar___main___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__54(lean_object*, lean_object*, lean_object*); extern lean_object* l_Id_Monad; -lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__34___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__20___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1(lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__49___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3(lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29___boxed(lean_object*, lean_object*); lean_object* lean_level_update_succ(lean_object*, lean_object*); lean_object* l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__6(lean_object*, lean_object*); -lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3(lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_isLevelAssigned(lean_object*); uint8_t l_Lean_AbstractMetavarContext_isExprAssigned___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__40___boxed(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__47(lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); -uint8_t l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__10(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_List_repr___rarg___closed__2; +lean_object* l_PersistentArray_foldlMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkLambda___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__30(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__12___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateForall_x21___closed__1; +uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t); extern lean_object* l_panicWithPos___rarg___closed__3; -extern lean_object* l_Lean_Expr_constName___closed__1; +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps(lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__2(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__54___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__26(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__2; uint8_t lean_expr_eqv(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__48(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkLambda___boxed(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForallAux(lean_object*); lean_object* l_List_foldr___main___at_Lean_AbstractMetavarContext_hasAssignedMVar___main___spec__1(lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_userName(lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__1; +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2(lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__52___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___main(lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar(lean_object*, lean_object*); +uint8_t l_Lean_LocalDecl_isLet(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51(lean_object*); +extern lean_object* l_List_reprAux___main___rarg___closed__1; +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__48___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_replace___main___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__7(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__20(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_AbstractMetavarContext_hasAssignedMVar___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_contains___main___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2(lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2(lean_object*); +extern lean_object* l_Lean_Expr_constName_x21___closed__1; lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux(lean_object*); uint8_t l_Lean_AbstractMetavarContext_hasAssignedMVar___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* lean_expr_update_const(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateLevelMVars(lean_object*); -lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkLambda(lean_object*, lean_object*); +extern lean_object* l_Char_HasRepr___closed__1; +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__5; +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__32___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65(lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4; +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_DependsOn_main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); uint8_t l_Lean_AbstractMetavarContext_isLevelAssigned___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForallAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedMVar___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___main___at_Lean_AbstractMetavarContext_hasAssignedMVar___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__7(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__38(lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__52(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_mkHashSet___at_Lean_AbstractMetavarContext_exprDependsOn___spec__1(lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3(lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__8(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__31(lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__40(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2(lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateMVars(lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); extern lean_object* l_panicWithPos___rarg___closed__1; +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__25(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarDecl_Inhabited; lean_object* l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getInScope(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_visit___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_withFreshCache(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_isExprAssigned(lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__37___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkMVarApp(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateMVars___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__56___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; -lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__2(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__55(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main(lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_getMCtx___rarg(lean_object*); -lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__26___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_PersistentArray_getAux___main___rarg___closed__1; +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkLambda(lean_object*); lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__36___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_main(lean_object*); +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getMCtx___boxed(lean_object*, lean_object*); +extern lean_object* l_EState_MonadState___closed__2; +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__3; +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getMCtx(lean_object*, lean_object*); +lean_object* lean_expr_mk_mvar(lean_object*); +lean_object* l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58(lean_object*); +lean_object* l_PersistentArray_foldlMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg___boxed(lean_object*, lean_object*, 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* l_Lean_AbstractMetavarContext_instantiateLevelMVars___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Array_HasRepr___rarg___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_updateSucc_x21___closed__1; +lean_object* l_EState_bind___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__44___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkFreshId___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main(lean_object*); -lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__2___boxed(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_letName_x21___closed__1; lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_System_FilePath_dirName___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15(lean_object*); lean_object* l_panic(lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_HasToString___closed__1; uint8_t l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__46___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateLevelMVars___main___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_updateIMax_x21___closed__1; lean_object* l_Lean_AbstractMetavarContext_localDeclDependsOn(lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLambda_x21___closed__1; uint8_t l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___rarg___boxed(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* lean_name_mk_numeral(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__12(lean_object*, lean_object*, lean_object*); +lean_object* l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__28___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5___boxed(lean_object*, lean_object*); extern lean_object* l_HashMap_Inhabited___closed__1; -lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__6___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__7(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__31___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Option_get_x21___rarg___closed__2; lean_object* l_Lean_AbstractMetavarContext_hasAssignedMVar___main___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__7(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +extern lean_object* l_EIO_Monad___closed__1; +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__7; +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkFreshId(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayed(lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__8___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__6; lean_object* l_mkHashMapImp___rarg(lean_object*); -lean_object* l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__5(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__32(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__44(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__18___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__37(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkBinding___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_collectDeps___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_local_ctx_erase(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__49(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59(lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__4(lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1(lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__16___boxed(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__13(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__3; lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61___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*); +lean_object* l_Lean_LocalDecl_index(lean_object*); +lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep(lean_object*); -lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___closed__1; extern lean_object* l_panicWithPos___rarg___closed__2; +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__22___boxed(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66(lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__1; +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__41(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__16(lean_object*, lean_object*); +size_t l_USize_shift__left(size_t, size_t); uint8_t l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(lean_object*, lean_object*); -extern uint8_t l_Bool_Inhabited; lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_expr_mvar(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateMData_x21___closed__1; +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getMCtx___rarg(lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateMVars___rarg___closed__1; +extern lean_object* l_Option_get_x21___rarg___closed__1; +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__4(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__55___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getInScope___boxed(lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__22(lean_object*, lean_object*); +lean_object* l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkBinding___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__36(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__46(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__19___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__2(lean_object*); -lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_land(size_t, size_t); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5(lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_usize_to_nat(size_t); +lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_visit(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__7___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getInScope___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux(lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_isExprAssigned___rarg___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__14___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__24___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_toExpr(lean_object*); +extern lean_object* l_Lean_exprIsInhabited___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_List_repr___rarg___closed__1; +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__25___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__3(lean_object*); -lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__10___boxed(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__1(lean_object*); +lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_Level_updateSucc_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_has_level_mvar(lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); +extern lean_object* l_String_splitAux___main___closed__1; +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_name(lean_object*); +lean_object* _init_l_Lean_MetavarDecl_Inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_1 = lean_box(0); +x_2 = l_Lean_LocalContext_Inhabited___closed__1; +x_3 = l_Lean_exprIsInhabited___closed__1; +x_4 = 0; +x_5 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); +return x_5; +} +} +lean_object* _init_l_Lean_MetavarDecl_Inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_MetavarDecl_Inhabited___closed__1; +return x_1; +} +} uint8_t l_Lean_AbstractMetavarContext_isLevelAssigned___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1643,7 +1993,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_InstantiateExprMV return x_2; } } -lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1675,7 +2025,7 @@ return x_9; } } } -lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; @@ -1685,12 +2035,12 @@ x_5 = 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); -x_8 = l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__2(x_2, x_7); +x_8 = l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -uint8_t l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4(lean_object* x_1, lean_object* x_2) { +uint8_t l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1719,7 +2069,7 @@ return x_8; } } } -lean_object* l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -1773,7 +2123,7 @@ goto _start; } } } -lean_object* l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -1792,7 +2142,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__7(x_3, x_6); +x_9 = l_AssocList_foldlM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__7(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -1803,7 +2153,7 @@ goto _start; } } } -lean_object* l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -1814,14 +2164,14 @@ lean_dec(x_3); x_6 = lean_box(0); x_7 = lean_mk_array(x_5, x_6); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__6(x_8, x_2, x_7); +x_9 = l_HashMapImp_moveEntries___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__6(x_8, x_2, x_7); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1844,7 +2194,7 @@ x_8 = lean_expr_eqv(x_5, x_1); if (x_8 == 0) { lean_object* x_9; -x_9 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__8(x_1, x_2, x_7); +x_9 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__8(x_1, x_2, x_7); lean_ctor_set(x_3, 2, x_9); return x_3; } @@ -1871,7 +2221,7 @@ x_13 = lean_expr_eqv(x_10, x_1); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; -x_14 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__8(x_1, x_2, x_12); +x_14 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__8(x_1, x_2, x_12); x_15 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_15, 0, x_10); lean_ctor_set(x_15, 1, x_11); @@ -1893,7 +2243,7 @@ return x_16; } } } -lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -1907,7 +2257,7 @@ x_7 = lean_array_get_size(x_6); x_8 = 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_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4(x_2, x_10); +x_11 = l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4(x_2, x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -1925,7 +2275,7 @@ if (x_16 == 0) { lean_object* x_17; lean_free_object(x_1); -x_17 = l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__5(x_13, x_15); +x_17 = l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__5(x_13, x_15); return x_17; } else @@ -1939,7 +2289,7 @@ else { lean_object* x_18; lean_object* x_19; lean_dec(x_7); -x_18 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__8(x_2, x_3, x_10); +x_18 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__8(x_2, x_3, x_10); x_19 = lean_array_uset(x_6, x_9, x_18); lean_ctor_set(x_1, 1, x_19); return x_1; @@ -1957,7 +2307,7 @@ x_22 = lean_array_get_size(x_21); x_23 = 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_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4(x_2, x_25); +x_26 = l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4(x_2, x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; @@ -1974,7 +2324,7 @@ lean_dec(x_22); if (x_31 == 0) { lean_object* x_32; -x_32 = l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__5(x_28, x_30); +x_32 = l_HashMapImp_expand___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__5(x_28, x_30); return x_32; } else @@ -1990,7 +2340,7 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_22); -x_34 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__8(x_2, x_3, x_25); +x_34 = l_AssocList_replace___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__8(x_2, x_3, x_25); x_35 = lean_array_uset(x_21, x_24, x_34); x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_20); @@ -2000,151 +2350,6 @@ return x_36; } } } -lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_3, 1); -lean_inc(x_4); -x_5 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_4, x_1); -lean_dec(x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; uint8_t x_7; -lean_inc(x_1); -x_6 = lean_apply_2(x_2, x_1, x_3); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_6, 1); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_6, 0); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -x_12 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_11, x_1, x_10); -lean_ctor_set(x_8, 1, x_12); -return x_6; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_ctor_get(x_6, 0); -x_14 = lean_ctor_get(x_8, 0); -x_15 = lean_ctor_get(x_8, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_8); -lean_inc(x_13); -x_16 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_15, x_1, x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -lean_ctor_set(x_6, 1, x_17); -return x_6; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_18 = lean_ctor_get(x_6, 1); -x_19 = lean_ctor_get(x_6, 0); -lean_inc(x_18); -lean_inc(x_19); -lean_dec(x_6); -x_20 = lean_ctor_get(x_18, 0); -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); - x_22 = x_18; -} else { - lean_dec_ref(x_18); - x_22 = lean_box(0); -} -lean_inc(x_19); -x_23 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_21, x_1, x_19); -if (lean_is_scalar(x_22)) { - x_24 = lean_alloc_ctor(0, 2, 0); -} else { - x_24 = x_22; -} -lean_ctor_set(x_24, 0, x_20); -lean_ctor_set(x_24, 1, x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_19); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_2); -lean_dec(x_1); -x_26 = lean_ctor_get(x_5, 0); -lean_inc(x_26); -lean_dec(x_5); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_3); -return x_27; -} -} -} -lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___rarg), 3, 0); -return x_3; -} -} -lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__4(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2168,7 +2373,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_7, x_2); +x_8 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_7, x_2); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -2187,7 +2392,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_14, x_2, x_13); +x_15 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_14, x_2, x_13); lean_ctor_set(x_11, 1, x_15); return x_9; } @@ -2201,7 +2406,7 @@ lean_inc(x_18); lean_inc(x_17); lean_dec(x_11); lean_inc(x_16); -x_19 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_18, x_2, x_16); +x_19 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -2230,7 +2435,7 @@ if (lean_is_exclusive(x_21)) { x_25 = lean_box(0); } lean_inc(x_22); -x_26 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_24, x_2, x_22); +x_26 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_24, x_2, x_22); if (lean_is_scalar(x_25)) { x_27 = lean_alloc_ctor(0, 2, 0); } else { @@ -2264,7 +2469,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_31, x_2); +x_32 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_31, x_2); lean_dec(x_31); if (lean_obj_tag(x_32) == 0) { @@ -2283,7 +2488,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_38, x_2, x_37); +x_39 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_38, x_2, x_37); lean_ctor_set(x_35, 1, x_39); return x_33; } @@ -2297,7 +2502,7 @@ lean_inc(x_42); lean_inc(x_41); lean_dec(x_35); lean_inc(x_40); -x_43 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_42, x_2, x_40); +x_43 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -2326,7 +2531,7 @@ if (lean_is_exclusive(x_45)) { x_49 = lean_box(0); } lean_inc(x_46); -x_50 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_48, x_2, x_46); +x_50 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_48, x_2, x_46); if (lean_is_scalar(x_49)) { x_51 = lean_alloc_ctor(0, 2, 0); } else { @@ -2364,6 +2569,37 @@ x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_InstantiateExprMV return x_3; } } +lean_object* l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_AssocList_find___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_AssocList_contains___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__4(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -2402,6 +2638,60 @@ lean_dec(x_2); return x_3; } } +lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_apply_1(x_1, x_4); +lean_ctor_set(x_2, 0, x_5); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_2); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +x_10 = lean_apply_1(x_1, x_8); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx___rarg), 2, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_modifyCtx(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} lean_object* _init_l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__1() { _start: { @@ -2478,6 +2768,7 @@ x_12 = l_Lean_exprIsInhabited; x_13 = lean_array_get(x_12, x_4, x_11); lean_inc(x_3); x_14 = l_Lean_LocalContext_findFVar(x_3, x_13); +lean_dec(x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -2486,7 +2777,7 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); x_15 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; -x_16 = lean_unsigned_to_nat(194u); +x_16 = lean_unsigned_to_nat(197u); x_17 = lean_unsigned_to_nat(12u); x_18 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg(x_15, x_16, x_17, x_18, x_7); @@ -2523,7 +2814,7 @@ else lean_object* x_38; lean_object* x_39; x_38 = lean_ctor_get(x_7, 1); lean_inc(x_38); -x_39 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_38, x_22); +x_39 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_38, x_22); lean_dec(x_38); if (lean_obj_tag(x_39) == 0) { @@ -2542,7 +2833,7 @@ 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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_44, x_22, x_42); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_44, x_22, x_42); lean_ctor_set(x_41, 1, x_45); x_24 = x_42; x_25 = x_41; @@ -2557,7 +2848,7 @@ lean_inc(x_47); lean_inc(x_46); lean_dec(x_41); lean_inc(x_42); -x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_47, x_22, x_42); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_47, x_22, 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); @@ -2584,7 +2875,7 @@ else lean_object* x_51; lean_object* x_52; x_51 = lean_ctor_get(x_7, 1); lean_inc(x_51); -x_52 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_51, x_22); +x_52 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_51, x_22); lean_dec(x_51); if (lean_obj_tag(x_52) == 0) { @@ -2603,7 +2894,7 @@ if (x_56 == 0) lean_object* x_57; lean_object* x_58; x_57 = lean_ctor_get(x_54, 1); lean_inc(x_55); -x_58 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_57, x_22, x_55); +x_58 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_57, x_22, x_55); lean_ctor_set(x_54, 1, x_58); x_24 = x_55; x_25 = x_54; @@ -2618,7 +2909,7 @@ lean_inc(x_60); lean_inc(x_59); lean_dec(x_54); lean_inc(x_55); -x_61 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_60, x_22, x_55); +x_61 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_60, x_22, x_55); x_62 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_62, 0, x_59); lean_ctor_set(x_62, 1, x_61); @@ -2717,7 +3008,7 @@ else lean_object* x_119; lean_object* x_120; x_119 = lean_ctor_get(x_7, 1); lean_inc(x_119); -x_120 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_119, x_65); +x_120 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_119, x_65); lean_dec(x_119); if (lean_obj_tag(x_120) == 0) { @@ -2736,7 +3027,7 @@ if (x_124 == 0) lean_object* x_125; lean_object* x_126; x_125 = lean_ctor_get(x_122, 1); lean_inc(x_123); -x_126 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_125, x_65, x_123); +x_126 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_125, x_65, x_123); lean_ctor_set(x_122, 1, x_126); x_67 = x_123; x_68 = x_122; @@ -2751,7 +3042,7 @@ lean_inc(x_128); lean_inc(x_127); lean_dec(x_122); lean_inc(x_123); -x_129 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_128, x_65, x_123); +x_129 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_128, x_65, x_123); x_130 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_130, 0, x_127); lean_ctor_set(x_130, 1, x_129); @@ -2778,7 +3069,7 @@ else lean_object* x_132; lean_object* x_133; x_132 = lean_ctor_get(x_7, 1); lean_inc(x_132); -x_133 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_132, x_65); +x_133 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_132, x_65); lean_dec(x_132); if (lean_obj_tag(x_133) == 0) { @@ -2797,7 +3088,7 @@ if (x_137 == 0) lean_object* x_138; lean_object* x_139; x_138 = lean_ctor_get(x_135, 1); lean_inc(x_136); -x_139 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_138, x_65, x_136); +x_139 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_138, x_65, x_136); lean_ctor_set(x_135, 1, x_139); x_67 = x_136; x_68 = x_135; @@ -2812,7 +3103,7 @@ lean_inc(x_141); lean_inc(x_140); lean_dec(x_135); lean_inc(x_136); -x_142 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_141, x_65, x_136); +x_142 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_141, x_65, x_136); x_143 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_143, 0, x_140); lean_ctor_set(x_143, 1, x_142); @@ -2860,7 +3151,7 @@ else lean_object* x_86; lean_object* x_87; x_86 = lean_ctor_get(x_68, 1); lean_inc(x_86); -x_87 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_86, x_66); +x_87 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_86, x_66); lean_dec(x_86); if (lean_obj_tag(x_87) == 0) { @@ -2879,7 +3170,7 @@ if (x_91 == 0) lean_object* x_92; lean_object* x_93; x_92 = lean_ctor_get(x_89, 1); lean_inc(x_90); -x_93 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_92, x_66, x_90); +x_93 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_92, x_66, x_90); lean_ctor_set(x_89, 1, x_93); x_69 = x_90; x_70 = x_89; @@ -2894,7 +3185,7 @@ lean_inc(x_95); lean_inc(x_94); lean_dec(x_89); lean_inc(x_90); -x_96 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_95, x_66, x_90); +x_96 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_95, x_66, 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); @@ -2921,7 +3212,7 @@ else lean_object* x_99; lean_object* x_100; x_99 = lean_ctor_get(x_68, 1); lean_inc(x_99); -x_100 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_99, x_66); +x_100 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_99, x_66); lean_dec(x_99); if (lean_obj_tag(x_100) == 0) { @@ -2940,7 +3231,7 @@ if (x_104 == 0) lean_object* x_105; lean_object* x_106; x_105 = lean_ctor_get(x_102, 1); lean_inc(x_103); -x_106 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_105, x_66, x_103); +x_106 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_105, x_66, x_103); lean_ctor_set(x_102, 1, x_106); x_69 = x_103; x_70 = x_102; @@ -2955,7 +3246,7 @@ lean_inc(x_108); lean_inc(x_107); lean_dec(x_102); lean_inc(x_103); -x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_108, x_66, x_103); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_108, x_66, x_103); x_110 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_110, 0, x_107); lean_ctor_set(x_110, 1, x_109); @@ -3141,7 +3432,7 @@ return x_8; lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayed___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_90; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_95; x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); x_7 = lean_ctor_get(x_4, 1); @@ -3149,139 +3440,139 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_4, 2); lean_inc(x_8); lean_dec(x_4); -x_90 = lean_expr_has_expr_mvar(x_8); -if (x_90 == 0) +x_95 = lean_expr_has_expr_mvar(x_8); +if (x_95 == 0) { -uint8_t x_91; -x_91 = lean_expr_has_level_mvar(x_8); -if (x_91 == 0) +uint8_t x_96; +x_96 = lean_expr_has_level_mvar(x_8); +if (x_96 == 0) { x_9 = x_8; x_10 = x_5; -goto block_89; +goto block_94; } else { -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_5, 1); -lean_inc(x_92); -x_93 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_92, x_8); -lean_dec(x_92); -if (lean_obj_tag(x_93) == 0) +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_5, 1); +lean_inc(x_97); +x_98 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_97, x_8); +lean_dec(x_97); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_inc(x_2); lean_inc(x_8); -x_94 = lean_apply_2(x_2, x_8, x_5); -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_98; lean_object* x_99; -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -x_99 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_98, x_8, x_96); -lean_ctor_set(x_95, 1, x_99); -x_9 = x_96; -x_10 = x_95; -goto block_89; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_100 = lean_ctor_get(x_95, 0); -x_101 = lean_ctor_get(x_95, 1); -lean_inc(x_101); +x_99 = lean_apply_2(x_2, x_8, x_5); +x_100 = lean_ctor_get(x_99, 1); lean_inc(x_100); -lean_dec(x_95); -lean_inc(x_96); -x_102 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_101, x_8, x_96); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_100); -lean_ctor_set(x_103, 1, x_102); -x_9 = x_96; -x_10 = x_103; -goto block_89; -} +x_101 = lean_ctor_get(x_99, 0); +lean_inc(x_101); +lean_dec(x_99); +x_102 = !lean_is_exclusive(x_100); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +x_104 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_103, x_8, x_101); +lean_ctor_set(x_100, 1, x_104); +x_9 = x_101; +x_10 = x_100; +goto block_94; } else { -lean_object* x_104; -lean_dec(x_8); -x_104 = lean_ctor_get(x_93, 0); -lean_inc(x_104); -lean_dec(x_93); -x_9 = x_104; -x_10 = x_5; -goto block_89; -} -} -} -else -{ -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_5, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_100, 0); +x_106 = lean_ctor_get(x_100, 1); +lean_inc(x_106); lean_inc(x_105); -x_106 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_105, x_8); -lean_dec(x_105); -if (lean_obj_tag(x_106) == 0) +lean_dec(x_100); +lean_inc(x_101); +x_107 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_106, x_8, x_101); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_107); +x_9 = x_101; +x_10 = x_108; +goto block_94; +} +} +else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +lean_object* x_109; +lean_dec(x_8); +x_109 = lean_ctor_get(x_98, 0); +lean_inc(x_109); +lean_dec(x_98); +x_9 = x_109; +x_10 = x_5; +goto block_94; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_5, 1); +lean_inc(x_110); +x_111 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_110, x_8); +lean_dec(x_110); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_inc(x_2); lean_inc(x_8); -x_107 = lean_apply_2(x_2, x_8, x_5); -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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_111, x_8, x_109); -lean_ctor_set(x_108, 1, x_112); -x_9 = x_109; -x_10 = x_108; -goto block_89; -} -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); +x_112 = lean_apply_2(x_2, x_8, x_5); +x_113 = lean_ctor_get(x_112, 1); lean_inc(x_113); -lean_dec(x_108); -lean_inc(x_109); -x_115 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_114, x_8, 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_9 = x_109; -x_10 = x_116; -goto block_89; +x_114 = lean_ctor_get(x_112, 0); +lean_inc(x_114); +lean_dec(x_112); +x_115 = !lean_is_exclusive(x_113); +if (x_115 == 0) +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +x_117 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_116, x_8, x_114); +lean_ctor_set(x_113, 1, x_117); +x_9 = x_114; +x_10 = x_113; +goto block_94; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_118 = lean_ctor_get(x_113, 0); +x_119 = lean_ctor_get(x_113, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_113); +lean_inc(x_114); +x_120 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_119, x_8, x_114); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_120); +x_9 = x_114; +x_10 = x_121; +goto block_94; } } else { -lean_object* x_117; +lean_object* x_122; lean_dec(x_8); -x_117 = lean_ctor_get(x_106, 0); -lean_inc(x_117); -lean_dec(x_106); -x_9 = x_117; +x_122 = lean_ctor_get(x_111, 0); +lean_inc(x_122); +lean_dec(x_111); +x_9 = x_122; x_10 = x_5; -goto block_89; +goto block_94; } } -block_89: +block_94: { uint8_t x_11; x_11 = lean_expr_has_expr_mvar(x_9); @@ -3304,19 +3595,19 @@ uint8_t x_17; x_17 = !lean_is_exclusive(x_15); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_15, 1); x_19 = lean_ctor_get(x_15, 0); lean_dec(x_19); -x_20 = lean_ctor_get(x_1, 9); -lean_inc(x_20); -lean_dec(x_1); -x_21 = !lean_is_exclusive(x_18); -if (x_21 == 0) +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_apply_5(x_20, x_22, x_3, x_6, x_7, x_9); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_1, 8); +lean_inc(x_22); +lean_dec(x_1); +x_23 = lean_apply_5(x_22, x_21, x_3, x_6, x_7, x_9); lean_ctor_set(x_18, 0, x_23); x_24 = lean_box(0); lean_ctor_set(x_15, 0, x_24); @@ -3324,226 +3615,240 @@ return x_15; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +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_18, 0); x_26 = lean_ctor_get(x_18, 1); lean_inc(x_26); lean_inc(x_25); lean_dec(x_18); -x_27 = lean_apply_5(x_20, x_25, x_3, x_6, x_7, x_9); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = lean_box(0); -lean_ctor_set(x_15, 1, x_28); -lean_ctor_set(x_15, 0, x_29); +x_27 = lean_ctor_get(x_1, 8); +lean_inc(x_27); +lean_dec(x_1); +x_28 = lean_apply_5(x_27, x_25, x_3, x_6, x_7, x_9); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +x_30 = lean_box(0); +lean_ctor_set(x_15, 1, x_29); +lean_ctor_set(x_15, 0, x_30); return x_15; } } 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; -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_dec(x_15); -x_31 = lean_ctor_get(x_1, 9); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_31 = lean_ctor_get(x_15, 1); lean_inc(x_31); -lean_dec(x_1); -x_32 = lean_ctor_get(x_30, 0); +lean_dec(x_15); +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); +x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_34 = x_30; +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_34 = x_31; } else { - lean_dec_ref(x_30); + lean_dec_ref(x_31); x_34 = lean_box(0); } -x_35 = lean_apply_5(x_31, x_32, x_3, x_6, x_7, x_9); +x_35 = lean_ctor_get(x_1, 8); +lean_inc(x_35); +lean_dec(x_1); +x_36 = lean_apply_5(x_35, x_32, x_3, x_6, x_7, x_9); if (lean_is_scalar(x_34)) { - x_36 = lean_alloc_ctor(0, 2, 0); + x_37 = lean_alloc_ctor(0, 2, 0); } else { - x_36 = x_34; + x_37 = x_34; } -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_33); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_33); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; } } else { -uint8_t x_39; +uint8_t x_40; lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); -x_39 = !lean_is_exclusive(x_15); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_15); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_40 = lean_ctor_get(x_15, 1); -x_41 = lean_ctor_get(x_15, 0); -lean_dec(x_41); -x_42 = lean_ctor_get(x_16, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_1, 6); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_41 = lean_ctor_get(x_15, 1); +x_42 = lean_ctor_get(x_15, 0); +lean_dec(x_42); +x_43 = lean_ctor_get(x_16, 0); lean_inc(x_43); -x_44 = lean_ctor_get(x_1, 11); -lean_inc(x_44); -lean_dec(x_1); -x_45 = !lean_is_exclusive(x_40); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_40, 0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_45 = lean_ctor_get(x_41, 0); +x_46 = lean_ctor_get(x_1, 6); +lean_inc(x_46); +x_47 = lean_ctor_get(x_1, 10); +lean_inc(x_47); +lean_dec(x_1); lean_inc(x_3); -x_47 = lean_apply_2(x_44, x_46, x_3); -x_48 = lean_apply_3(x_43, x_47, x_3, x_42); -lean_ctor_set(x_40, 0, x_48); +x_48 = lean_apply_2(x_47, x_45, x_3); +x_49 = lean_apply_3(x_46, x_48, x_3, x_43); +lean_ctor_set(x_41, 0, x_49); return x_15; } 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_40, 0); -x_50 = lean_ctor_get(x_40, 1); +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_50 = lean_ctor_get(x_41, 0); +x_51 = lean_ctor_get(x_41, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_40); +lean_dec(x_41); +x_52 = lean_ctor_get(x_1, 6); +lean_inc(x_52); +x_53 = lean_ctor_get(x_1, 10); +lean_inc(x_53); +lean_dec(x_1); lean_inc(x_3); -x_51 = lean_apply_2(x_44, x_49, x_3); -x_52 = lean_apply_3(x_43, x_51, x_3, x_42); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_50); -lean_ctor_set(x_15, 1, x_53); +x_54 = lean_apply_2(x_53, x_50, x_3); +x_55 = lean_apply_3(x_52, x_54, x_3, x_43); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_51); +lean_ctor_set(x_15, 1, x_56); return x_15; } } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_54 = lean_ctor_get(x_15, 1); -lean_inc(x_54); -lean_dec(x_15); -x_55 = lean_ctor_get(x_16, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_1, 6); -lean_inc(x_56); -x_57 = lean_ctor_get(x_1, 11); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_57 = lean_ctor_get(x_15, 1); lean_inc(x_57); -lean_dec(x_1); -x_58 = lean_ctor_get(x_54, 0); +lean_dec(x_15); +x_58 = lean_ctor_get(x_16, 0); lean_inc(x_58); -x_59 = lean_ctor_get(x_54, 1); +x_59 = lean_ctor_get(x_57, 0); lean_inc(x_59); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_60 = x_54; +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_61 = x_57; } else { - lean_dec_ref(x_54); - x_60 = lean_box(0); + lean_dec_ref(x_57); + x_61 = lean_box(0); } +x_62 = lean_ctor_get(x_1, 6); +lean_inc(x_62); +x_63 = lean_ctor_get(x_1, 10); +lean_inc(x_63); +lean_dec(x_1); lean_inc(x_3); -x_61 = lean_apply_2(x_57, x_58, x_3); -x_62 = lean_apply_3(x_56, x_61, x_3, x_55); -if (lean_is_scalar(x_60)) { - x_63 = lean_alloc_ctor(0, 2, 0); +x_64 = lean_apply_2(x_63, x_59, x_3); +x_65 = lean_apply_3(x_62, x_64, x_3, x_58); +if (lean_is_scalar(x_61)) { + x_66 = lean_alloc_ctor(0, 2, 0); } else { - x_63 = x_60; + x_66 = x_61; } -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_59); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_16); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_60); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_16); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } } else { -lean_object* x_65; uint8_t x_66; +uint8_t x_68; lean_dec(x_2); -x_65 = lean_ctor_get(x_1, 9); -lean_inc(x_65); -lean_dec(x_1); -x_66 = !lean_is_exclusive(x_10); -if (x_66 == 0) +x_68 = !lean_is_exclusive(x_10); +if (x_68 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_10, 0); -x_68 = lean_apply_5(x_65, x_67, x_3, x_6, x_7, x_9); -lean_ctor_set(x_10, 0, x_68); -x_69 = lean_box(0); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_10); -return x_70; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_69 = lean_ctor_get(x_10, 0); +x_70 = lean_ctor_get(x_1, 8); +lean_inc(x_70); +lean_dec(x_1); +x_71 = lean_apply_5(x_70, x_69, x_3, x_6, x_7, x_9); +lean_ctor_set(x_10, 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_10); +return x_73; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_71 = lean_ctor_get(x_10, 0); -x_72 = lean_ctor_get(x_10, 1); -lean_inc(x_72); -lean_inc(x_71); +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; +x_74 = lean_ctor_get(x_10, 0); +x_75 = lean_ctor_get(x_10, 1); +lean_inc(x_75); +lean_inc(x_74); lean_dec(x_10); -x_73 = lean_apply_5(x_65, x_71, x_3, x_6, x_7, x_9); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -return x_76; -} -} -} -else -{ -lean_object* x_77; uint8_t x_78; -lean_dec(x_2); -x_77 = lean_ctor_get(x_1, 9); -lean_inc(x_77); +x_76 = lean_ctor_get(x_1, 8); +lean_inc(x_76); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_10); -if (x_78 == 0) -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_79 = lean_ctor_get(x_10, 0); -x_80 = lean_apply_5(x_77, x_79, x_3, x_6, x_7, x_9); -lean_ctor_set(x_10, 0, x_80); -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_10); -return x_82; +x_77 = lean_apply_5(x_76, x_74, x_3, x_6, x_7, x_9); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +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_78); +return x_80; +} +} } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_83 = lean_ctor_get(x_10, 0); -x_84 = lean_ctor_get(x_10, 1); -lean_inc(x_84); +uint8_t x_81; +lean_dec(x_2); +x_81 = !lean_is_exclusive(x_10); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_ctor_get(x_10, 0); +x_83 = lean_ctor_get(x_1, 8); lean_inc(x_83); -lean_dec(x_10); -x_85 = lean_apply_5(x_77, x_83, x_3, x_6, x_7, x_9); +lean_dec(x_1); +x_84 = lean_apply_5(x_83, x_82, x_3, x_6, x_7, x_9); +lean_ctor_set(x_10, 0, x_84); +x_85 = lean_box(0); x_86 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_84); -x_87 = lean_box(0); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -return x_88; +lean_ctor_set(x_86, 1, x_10); +return x_86; +} +else +{ +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; +x_87 = lean_ctor_get(x_10, 0); +x_88 = lean_ctor_get(x_10, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_10); +x_89 = lean_ctor_get(x_1, 8); +lean_inc(x_89); +lean_dec(x_1); +x_90 = lean_apply_5(x_89, x_87, x_3, x_6, x_7, x_9); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_88); +x_92 = lean_box(0); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +return x_93; } } } @@ -3606,6 +3911,7 @@ x_11 = l_Lean_exprIsInhabited; 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); +lean_dec(x_12); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -3614,7 +3920,7 @@ lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); x_14 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; -x_15 = lean_unsigned_to_nat(194u); +x_15 = lean_unsigned_to_nat(197u); x_16 = lean_unsigned_to_nat(12u); x_17 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; x_18 = l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__2___rarg(x_14, x_15, x_16, x_17, x_6); @@ -3651,7 +3957,7 @@ else lean_object* x_37; lean_object* x_38; x_37 = lean_ctor_get(x_6, 1); lean_inc(x_37); -x_38 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_37, x_21); +x_38 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_37, x_21); lean_dec(x_37); if (lean_obj_tag(x_38) == 0) { @@ -3670,7 +3976,7 @@ if (x_42 == 0) lean_object* x_43; lean_object* x_44; x_43 = lean_ctor_get(x_40, 1); lean_inc(x_41); -x_44 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_43, x_21, x_41); +x_44 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_43, x_21, x_41); lean_ctor_set(x_40, 1, x_44); x_23 = x_41; x_24 = x_40; @@ -3685,7 +3991,7 @@ lean_inc(x_46); lean_inc(x_45); lean_dec(x_40); lean_inc(x_41); -x_47 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_46, x_21, x_41); +x_47 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_46, x_21, x_41); x_48 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_48, 0, x_45); lean_ctor_set(x_48, 1, x_47); @@ -3712,7 +4018,7 @@ else lean_object* x_50; lean_object* x_51; x_50 = lean_ctor_get(x_6, 1); lean_inc(x_50); -x_51 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_21); +x_51 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_50, x_21); lean_dec(x_50); if (lean_obj_tag(x_51) == 0) { @@ -3731,7 +4037,7 @@ if (x_55 == 0) 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_56, x_21, x_54); +x_57 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_56, x_21, x_54); lean_ctor_set(x_53, 1, x_57); x_23 = x_54; x_24 = x_53; @@ -3746,7 +4052,7 @@ lean_inc(x_59); lean_inc(x_58); lean_dec(x_53); lean_inc(x_54); -x_60 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_59, x_21, x_54); +x_60 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_59, x_21, 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); @@ -3845,7 +4151,7 @@ else lean_object* x_118; lean_object* x_119; x_118 = lean_ctor_get(x_6, 1); lean_inc(x_118); -x_119 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_118, x_64); +x_119 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_118, x_64); lean_dec(x_118); if (lean_obj_tag(x_119) == 0) { @@ -3864,7 +4170,7 @@ if (x_123 == 0) lean_object* x_124; lean_object* x_125; x_124 = lean_ctor_get(x_121, 1); lean_inc(x_122); -x_125 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_124, x_64, x_122); +x_125 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_124, x_64, x_122); lean_ctor_set(x_121, 1, x_125); x_66 = x_122; x_67 = x_121; @@ -3879,7 +4185,7 @@ lean_inc(x_127); lean_inc(x_126); lean_dec(x_121); lean_inc(x_122); -x_128 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_127, x_64, x_122); +x_128 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_127, x_64, x_122); x_129 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_129, 0, x_126); lean_ctor_set(x_129, 1, x_128); @@ -3906,7 +4212,7 @@ else lean_object* x_131; lean_object* x_132; x_131 = lean_ctor_get(x_6, 1); lean_inc(x_131); -x_132 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_131, x_64); +x_132 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_131, x_64); lean_dec(x_131); if (lean_obj_tag(x_132) == 0) { @@ -3925,7 +4231,7 @@ if (x_136 == 0) lean_object* x_137; lean_object* x_138; x_137 = lean_ctor_get(x_134, 1); lean_inc(x_135); -x_138 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_137, x_64, x_135); +x_138 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_137, x_64, x_135); lean_ctor_set(x_134, 1, x_138); x_66 = x_135; x_67 = x_134; @@ -3940,7 +4246,7 @@ lean_inc(x_140); lean_inc(x_139); lean_dec(x_134); lean_inc(x_135); -x_141 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_140, x_64, x_135); +x_141 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_140, x_64, x_135); x_142 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_142, 0, x_139); lean_ctor_set(x_142, 1, x_141); @@ -3988,7 +4294,7 @@ else lean_object* x_85; lean_object* x_86; x_85 = lean_ctor_get(x_67, 1); lean_inc(x_85); -x_86 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_85, x_65); +x_86 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_85, x_65); lean_dec(x_85); if (lean_obj_tag(x_86) == 0) { @@ -4007,7 +4313,7 @@ if (x_90 == 0) lean_object* x_91; lean_object* x_92; x_91 = lean_ctor_get(x_88, 1); lean_inc(x_89); -x_92 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_91, x_65, x_89); +x_92 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_91, x_65, x_89); lean_ctor_set(x_88, 1, x_92); x_68 = x_89; x_69 = x_88; @@ -4022,7 +4328,7 @@ lean_inc(x_94); lean_inc(x_93); lean_dec(x_88); lean_inc(x_89); -x_95 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_94, x_65, x_89); +x_95 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_94, x_65, x_89); x_96 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_96, 0, x_93); lean_ctor_set(x_96, 1, x_95); @@ -4049,7 +4355,7 @@ else lean_object* x_98; lean_object* x_99; x_98 = lean_ctor_get(x_67, 1); lean_inc(x_98); -x_99 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_98, x_65); +x_99 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_98, x_65); lean_dec(x_98); if (lean_obj_tag(x_99) == 0) { @@ -4068,7 +4374,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_104, x_65, x_102); +x_105 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_104, x_65, x_102); lean_ctor_set(x_101, 1, x_105); x_68 = x_102; x_69 = x_101; @@ -4083,7 +4389,7 @@ lean_inc(x_107); lean_inc(x_106); lean_dec(x_101); lean_inc(x_102); -x_108 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_107, x_65, x_102); +x_108 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_107, x_65, 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); @@ -4447,7 +4753,7 @@ else lean_object* x_21; lean_object* x_22; x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); -x_22 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_21, x_10); +x_22 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_21, x_10); lean_dec(x_21); if (lean_obj_tag(x_22) == 0) { @@ -4467,7 +4773,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean x_27 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_inc(x_10); -x_28 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_27, x_10, x_25); +x_28 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_27, x_10, x_25); lean_ctor_set(x_24, 1, x_28); x_29 = lean_unsigned_to_nat(1u); x_30 = lean_nat_add(x_2, x_29); @@ -4489,7 +4795,7 @@ lean_inc(x_34); lean_dec(x_24); lean_inc(x_25); lean_inc(x_10); -x_36 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_35, x_10, x_25); +x_36 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_35, x_10, x_25); x_37 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_37, 0, x_34); lean_ctor_set(x_37, 1, x_36); @@ -4526,7 +4832,7 @@ else lean_object* x_49; lean_object* x_50; x_49 = lean_ctor_get(x_4, 1); lean_inc(x_49); -x_50 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_49, x_10); +x_50 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_49, x_10); lean_dec(x_49); if (lean_obj_tag(x_50) == 0) { @@ -4546,7 +4852,7 @@ lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean x_55 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_inc(x_10); -x_56 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_55, x_10, x_53); +x_56 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_55, x_10, x_53); lean_ctor_set(x_52, 1, x_56); x_57 = lean_unsigned_to_nat(1u); x_58 = lean_nat_add(x_2, x_57); @@ -4568,7 +4874,7 @@ lean_inc(x_62); lean_dec(x_52); lean_inc(x_53); lean_inc(x_10); -x_64 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_63, x_10, x_53); +x_64 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_63, x_10, x_53); x_65 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_65, 0, x_62); lean_ctor_set(x_65, 1, x_64); @@ -4634,7 +4940,7 @@ else lean_object* x_77; lean_object* x_78; x_77 = lean_ctor_get(x_4, 1); lean_inc(x_77); -x_78 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_77, x_2); +x_78 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_77, x_2); lean_dec(x_77); if (lean_obj_tag(x_78) == 0) { @@ -4653,7 +4959,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_83, x_2, x_81); +x_84 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_83, x_2, x_81); lean_ctor_set(x_80, 1, x_84); x_6 = x_81; x_7 = x_80; @@ -4668,7 +4974,7 @@ lean_inc(x_86); lean_inc(x_85); lean_dec(x_80); lean_inc(x_81); -x_87 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_86, x_2, x_81); +x_87 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_86, x_2, 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); @@ -4695,7 +5001,7 @@ else lean_object* x_90; lean_object* x_91; x_90 = lean_ctor_get(x_4, 1); lean_inc(x_90); -x_91 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_90, x_2); +x_91 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_90, x_2); lean_dec(x_90); if (lean_obj_tag(x_91) == 0) { @@ -4714,7 +5020,7 @@ 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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_96, x_2, x_94); +x_97 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_96, x_2, x_94); lean_ctor_set(x_93, 1, x_97); x_6 = x_94; x_7 = x_93; @@ -4729,7 +5035,7 @@ lean_inc(x_99); lean_inc(x_98); lean_dec(x_93); lean_inc(x_94); -x_100 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_99, x_2, x_94); +x_100 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_99, x_2, 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); @@ -4795,7 +5101,7 @@ else lean_object* x_26; lean_object* x_27; x_26 = lean_ctor_get(x_7, 1); lean_inc(x_26); -x_27 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_26, x_22); +x_27 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_26, x_22); lean_dec(x_26); if (lean_obj_tag(x_27) == 0) { @@ -4814,7 +5120,7 @@ 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, 1); lean_inc(x_32); -x_34 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_33, x_22, x_32); +x_34 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_33, x_22, x_32); lean_ctor_set(x_30, 1, x_34); return x_28; } @@ -4828,7 +5134,7 @@ lean_inc(x_37); lean_inc(x_36); lean_dec(x_30); lean_inc(x_35); -x_38 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_37, x_22, x_35); +x_38 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_37, x_22, x_35); x_39 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_39, 0, x_36); lean_ctor_set(x_39, 1, x_38); @@ -4857,7 +5163,7 @@ if (lean_is_exclusive(x_40)) { x_44 = lean_box(0); } lean_inc(x_41); -x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_43, x_22, x_41); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_43, x_22, x_41); if (lean_is_scalar(x_44)) { x_46 = lean_alloc_ctor(0, 2, 0); } else { @@ -4891,7 +5197,7 @@ else lean_object* x_50; lean_object* x_51; x_50 = lean_ctor_get(x_7, 1); lean_inc(x_50); -x_51 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_22); +x_51 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_50, x_22); lean_dec(x_50); if (lean_obj_tag(x_51) == 0) { @@ -4910,7 +5216,7 @@ lean_object* x_56; lean_object* x_57; lean_object* x_58; x_56 = lean_ctor_get(x_52, 0); x_57 = lean_ctor_get(x_54, 1); lean_inc(x_56); -x_58 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_57, x_22, x_56); +x_58 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_57, x_22, x_56); lean_ctor_set(x_54, 1, x_58); return x_52; } @@ -4924,7 +5230,7 @@ lean_inc(x_61); lean_inc(x_60); lean_dec(x_54); lean_inc(x_59); -x_62 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_61, x_22, x_59); +x_62 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_61, x_22, x_59); x_63 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_63, 0, x_60); lean_ctor_set(x_63, 1, x_62); @@ -4953,7 +5259,7 @@ if (lean_is_exclusive(x_64)) { x_68 = lean_box(0); } lean_inc(x_65); -x_69 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_67, x_22, x_65); +x_69 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_67, x_22, x_65); if (lean_is_scalar(x_68)) { x_70 = lean_alloc_ctor(0, 2, 0); } else { @@ -5037,7 +5343,7 @@ else lean_object* x_175; lean_object* x_176; x_175 = lean_ctor_get(x_4, 1); lean_inc(x_175); -x_176 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_175, x_2); +x_176 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_175, x_2); lean_dec(x_175); if (lean_obj_tag(x_176) == 0) { @@ -5056,7 +5362,7 @@ if (x_180 == 0) lean_object* x_181; lean_object* x_182; x_181 = lean_ctor_get(x_178, 1); lean_inc(x_179); -x_182 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_181, x_2, x_179); +x_182 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_181, x_2, x_179); lean_ctor_set(x_178, 1, x_182); x_104 = x_179; x_105 = x_178; @@ -5071,7 +5377,7 @@ lean_inc(x_184); lean_inc(x_183); lean_dec(x_178); lean_inc(x_179); -x_185 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_184, x_2, x_179); +x_185 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_184, x_2, x_179); x_186 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_186, 0, x_183); lean_ctor_set(x_186, 1, x_185); @@ -5098,7 +5404,7 @@ else lean_object* x_188; lean_object* x_189; x_188 = lean_ctor_get(x_4, 1); lean_inc(x_188); -x_189 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_188, x_2); +x_189 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_188, x_2); lean_dec(x_188); if (lean_obj_tag(x_189) == 0) { @@ -5117,7 +5423,7 @@ if (x_193 == 0) lean_object* x_194; lean_object* x_195; x_194 = lean_ctor_get(x_191, 1); lean_inc(x_192); -x_195 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_194, x_2, x_192); +x_195 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_194, x_2, x_192); lean_ctor_set(x_191, 1, x_195); x_104 = x_192; x_105 = x_191; @@ -5132,7 +5438,7 @@ lean_inc(x_197); lean_inc(x_196); lean_dec(x_191); lean_inc(x_192); -x_198 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_197, x_2, x_192); +x_198 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_197, x_2, x_192); x_199 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_199, 0, x_196); lean_ctor_set(x_199, 1, x_198); @@ -5198,7 +5504,7 @@ else lean_object* x_124; lean_object* x_125; x_124 = lean_ctor_get(x_105, 1); lean_inc(x_124); -x_125 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_124, x_120); +x_125 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_124, x_120); lean_dec(x_124); if (lean_obj_tag(x_125) == 0) { @@ -5217,7 +5523,7 @@ lean_object* x_130; lean_object* x_131; lean_object* x_132; x_130 = lean_ctor_get(x_126, 0); x_131 = lean_ctor_get(x_128, 1); lean_inc(x_130); -x_132 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_131, x_120, x_130); +x_132 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_131, x_120, x_130); lean_ctor_set(x_128, 1, x_132); return x_126; } @@ -5231,7 +5537,7 @@ lean_inc(x_135); lean_inc(x_134); lean_dec(x_128); lean_inc(x_133); -x_136 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_135, x_120, x_133); +x_136 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_135, x_120, x_133); x_137 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_137, 0, x_134); lean_ctor_set(x_137, 1, x_136); @@ -5260,7 +5566,7 @@ if (lean_is_exclusive(x_138)) { x_142 = lean_box(0); } lean_inc(x_139); -x_143 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_141, x_120, x_139); +x_143 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_141, x_120, x_139); if (lean_is_scalar(x_142)) { x_144 = lean_alloc_ctor(0, 2, 0); } else { @@ -5294,7 +5600,7 @@ else lean_object* x_148; lean_object* x_149; x_148 = lean_ctor_get(x_105, 1); lean_inc(x_148); -x_149 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_148, x_120); +x_149 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_148, x_120); lean_dec(x_148); if (lean_obj_tag(x_149) == 0) { @@ -5313,7 +5619,7 @@ lean_object* x_154; lean_object* x_155; lean_object* x_156; x_154 = lean_ctor_get(x_150, 0); x_155 = lean_ctor_get(x_152, 1); lean_inc(x_154); -x_156 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_155, x_120, x_154); +x_156 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_155, x_120, x_154); lean_ctor_set(x_152, 1, x_156); return x_150; } @@ -5327,7 +5633,7 @@ lean_inc(x_159); lean_inc(x_158); lean_dec(x_152); lean_inc(x_157); -x_160 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_159, x_120, x_157); +x_160 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_159, x_120, x_157); x_161 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_161, 0, x_158); lean_ctor_set(x_161, 1, x_160); @@ -5356,7 +5662,7 @@ if (lean_is_exclusive(x_162)) { x_166 = lean_box(0); } lean_inc(x_163); -x_167 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_165, x_120, x_163); +x_167 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_165, x_120, x_163); if (lean_is_scalar(x_166)) { x_168 = lean_alloc_ctor(0, 2, 0); } else { @@ -5440,7 +5746,7 @@ else lean_object* x_273; lean_object* x_274; x_273 = lean_ctor_get(x_4, 1); lean_inc(x_273); -x_274 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_273, x_2); +x_274 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_273, x_2); lean_dec(x_273); if (lean_obj_tag(x_274) == 0) { @@ -5459,7 +5765,7 @@ if (x_278 == 0) lean_object* x_279; lean_object* x_280; x_279 = lean_ctor_get(x_276, 1); lean_inc(x_277); -x_280 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_279, x_2, x_277); +x_280 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_279, x_2, x_277); lean_ctor_set(x_276, 1, x_280); x_202 = x_277; x_203 = x_276; @@ -5474,7 +5780,7 @@ lean_inc(x_282); lean_inc(x_281); lean_dec(x_276); lean_inc(x_277); -x_283 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_282, x_2, x_277); +x_283 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_282, x_2, x_277); x_284 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_284, 0, x_281); lean_ctor_set(x_284, 1, x_283); @@ -5501,7 +5807,7 @@ else lean_object* x_286; lean_object* x_287; x_286 = lean_ctor_get(x_4, 1); lean_inc(x_286); -x_287 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_286, x_2); +x_287 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_286, x_2); lean_dec(x_286); if (lean_obj_tag(x_287) == 0) { @@ -5520,7 +5826,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_292, x_2, x_290); +x_293 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_292, x_2, x_290); lean_ctor_set(x_289, 1, x_293); x_202 = x_290; x_203 = x_289; @@ -5535,7 +5841,7 @@ lean_inc(x_295); lean_inc(x_294); lean_dec(x_289); lean_inc(x_290); -x_296 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_295, x_2, x_290); +x_296 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_295, x_2, 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); @@ -5601,7 +5907,7 @@ else lean_object* x_222; lean_object* x_223; x_222 = lean_ctor_get(x_203, 1); lean_inc(x_222); -x_223 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_222, x_218); +x_223 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_222, x_218); lean_dec(x_222); if (lean_obj_tag(x_223) == 0) { @@ -5620,7 +5926,7 @@ lean_object* x_228; lean_object* x_229; lean_object* x_230; x_228 = lean_ctor_get(x_224, 0); x_229 = lean_ctor_get(x_226, 1); lean_inc(x_228); -x_230 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_229, x_218, x_228); +x_230 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_229, x_218, x_228); lean_ctor_set(x_226, 1, x_230); return x_224; } @@ -5634,7 +5940,7 @@ lean_inc(x_233); lean_inc(x_232); lean_dec(x_226); lean_inc(x_231); -x_234 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_233, x_218, x_231); +x_234 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_233, x_218, x_231); x_235 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_235, 0, x_232); lean_ctor_set(x_235, 1, x_234); @@ -5663,7 +5969,7 @@ if (lean_is_exclusive(x_236)) { x_240 = lean_box(0); } lean_inc(x_237); -x_241 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_239, x_218, x_237); +x_241 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_239, x_218, x_237); if (lean_is_scalar(x_240)) { x_242 = lean_alloc_ctor(0, 2, 0); } else { @@ -5697,7 +6003,7 @@ else lean_object* x_246; lean_object* x_247; x_246 = lean_ctor_get(x_203, 1); lean_inc(x_246); -x_247 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_246, x_218); +x_247 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_246, x_218); lean_dec(x_246); if (lean_obj_tag(x_247) == 0) { @@ -5716,7 +6022,7 @@ lean_object* x_252; lean_object* x_253; lean_object* x_254; x_252 = lean_ctor_get(x_248, 0); x_253 = lean_ctor_get(x_250, 1); lean_inc(x_252); -x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_253, x_218, x_252); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_253, x_218, x_252); lean_ctor_set(x_250, 1, x_254); return x_248; } @@ -5730,7 +6036,7 @@ lean_inc(x_257); lean_inc(x_256); lean_dec(x_250); lean_inc(x_255); -x_258 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_257, x_218, x_255); +x_258 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_257, x_218, x_255); x_259 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_259, 0, x_256); lean_ctor_set(x_259, 1, x_258); @@ -5759,7 +6065,7 @@ if (lean_is_exclusive(x_260)) { x_264 = lean_box(0); } lean_inc(x_261); -x_265 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_263, x_218, x_261); +x_265 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_263, x_218, x_261); if (lean_is_scalar(x_264)) { x_266 = lean_alloc_ctor(0, 2, 0); } else { @@ -5843,7 +6149,7 @@ else lean_object* x_371; lean_object* x_372; x_371 = lean_ctor_get(x_4, 1); lean_inc(x_371); -x_372 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_371, x_2); +x_372 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_371, x_2); lean_dec(x_371); if (lean_obj_tag(x_372) == 0) { @@ -5862,7 +6168,7 @@ if (x_376 == 0) lean_object* x_377; lean_object* x_378; x_377 = lean_ctor_get(x_374, 1); lean_inc(x_375); -x_378 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_377, x_2, x_375); +x_378 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_377, x_2, x_375); lean_ctor_set(x_374, 1, x_378); x_300 = x_375; x_301 = x_374; @@ -5877,7 +6183,7 @@ lean_inc(x_380); lean_inc(x_379); lean_dec(x_374); lean_inc(x_375); -x_381 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_380, x_2, x_375); +x_381 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_380, x_2, x_375); x_382 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_382, 0, x_379); lean_ctor_set(x_382, 1, x_381); @@ -5904,7 +6210,7 @@ else lean_object* x_384; lean_object* x_385; x_384 = lean_ctor_get(x_4, 1); lean_inc(x_384); -x_385 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_384, x_2); +x_385 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_384, x_2); lean_dec(x_384); if (lean_obj_tag(x_385) == 0) { @@ -5923,7 +6229,7 @@ if (x_389 == 0) lean_object* x_390; lean_object* x_391; x_390 = lean_ctor_get(x_387, 1); lean_inc(x_388); -x_391 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_390, x_2, x_388); +x_391 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_390, x_2, x_388); lean_ctor_set(x_387, 1, x_391); x_300 = x_388; x_301 = x_387; @@ -5938,7 +6244,7 @@ lean_inc(x_393); lean_inc(x_392); lean_dec(x_387); lean_inc(x_388); -x_394 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_393, x_2, x_388); +x_394 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_393, x_2, x_388); x_395 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_395, 0, x_392); lean_ctor_set(x_395, 1, x_394); @@ -6004,7 +6310,7 @@ else lean_object* x_320; lean_object* x_321; x_320 = lean_ctor_get(x_301, 1); lean_inc(x_320); -x_321 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_320, x_316); +x_321 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_320, x_316); lean_dec(x_320); if (lean_obj_tag(x_321) == 0) { @@ -6023,7 +6329,7 @@ lean_object* x_326; lean_object* x_327; lean_object* x_328; x_326 = lean_ctor_get(x_322, 0); x_327 = lean_ctor_get(x_324, 1); lean_inc(x_326); -x_328 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_327, x_316, x_326); +x_328 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_327, x_316, x_326); lean_ctor_set(x_324, 1, x_328); return x_322; } @@ -6037,7 +6343,7 @@ lean_inc(x_331); lean_inc(x_330); lean_dec(x_324); lean_inc(x_329); -x_332 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_331, x_316, x_329); +x_332 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_331, x_316, x_329); x_333 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_333, 0, x_330); lean_ctor_set(x_333, 1, x_332); @@ -6066,7 +6372,7 @@ if (lean_is_exclusive(x_334)) { x_338 = lean_box(0); } lean_inc(x_335); -x_339 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_337, x_316, x_335); +x_339 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_337, x_316, x_335); if (lean_is_scalar(x_338)) { x_340 = lean_alloc_ctor(0, 2, 0); } else { @@ -6100,7 +6406,7 @@ else lean_object* x_344; lean_object* x_345; x_344 = lean_ctor_get(x_301, 1); lean_inc(x_344); -x_345 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_344, x_316); +x_345 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_344, x_316); lean_dec(x_344); if (lean_obj_tag(x_345) == 0) { @@ -6119,7 +6425,7 @@ lean_object* x_350; lean_object* x_351; lean_object* x_352; x_350 = lean_ctor_get(x_346, 0); x_351 = lean_ctor_get(x_348, 1); lean_inc(x_350); -x_352 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_351, x_316, x_350); +x_352 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_351, x_316, x_350); lean_ctor_set(x_348, 1, x_352); return x_346; } @@ -6133,7 +6439,7 @@ lean_inc(x_355); lean_inc(x_354); lean_dec(x_348); lean_inc(x_353); -x_356 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_355, x_316, x_353); +x_356 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_355, x_316, x_353); x_357 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_357, 0, x_354); lean_ctor_set(x_357, 1, x_356); @@ -6162,7 +6468,7 @@ if (lean_is_exclusive(x_358)) { x_362 = lean_box(0); } lean_inc(x_359); -x_363 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_361, x_316, x_359); +x_363 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_361, x_316, x_359); if (lean_is_scalar(x_362)) { x_364 = lean_alloc_ctor(0, 2, 0); } else { @@ -6246,7 +6552,7 @@ else lean_object* x_469; lean_object* x_470; x_469 = lean_ctor_get(x_4, 1); lean_inc(x_469); -x_470 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_469, x_2); +x_470 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_469, x_2); lean_dec(x_469); if (lean_obj_tag(x_470) == 0) { @@ -6265,7 +6571,7 @@ if (x_474 == 0) lean_object* x_475; lean_object* x_476; x_475 = lean_ctor_get(x_472, 1); lean_inc(x_473); -x_476 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_475, x_2, x_473); +x_476 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_475, x_2, x_473); lean_ctor_set(x_472, 1, x_476); x_398 = x_473; x_399 = x_472; @@ -6280,7 +6586,7 @@ lean_inc(x_478); lean_inc(x_477); lean_dec(x_472); lean_inc(x_473); -x_479 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_478, x_2, x_473); +x_479 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_478, x_2, x_473); x_480 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_480, 0, x_477); lean_ctor_set(x_480, 1, x_479); @@ -6307,7 +6613,7 @@ else lean_object* x_482; lean_object* x_483; x_482 = lean_ctor_get(x_4, 1); lean_inc(x_482); -x_483 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_482, x_2); +x_483 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_482, x_2); lean_dec(x_482); if (lean_obj_tag(x_483) == 0) { @@ -6326,7 +6632,7 @@ if (x_487 == 0) lean_object* x_488; lean_object* x_489; x_488 = lean_ctor_get(x_485, 1); lean_inc(x_486); -x_489 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_488, x_2, x_486); +x_489 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_488, x_2, x_486); lean_ctor_set(x_485, 1, x_489); x_398 = x_486; x_399 = x_485; @@ -6341,7 +6647,7 @@ lean_inc(x_491); lean_inc(x_490); lean_dec(x_485); lean_inc(x_486); -x_492 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_491, x_2, x_486); +x_492 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_491, x_2, x_486); x_493 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_493, 0, x_490); lean_ctor_set(x_493, 1, x_492); @@ -6407,7 +6713,7 @@ else lean_object* x_418; lean_object* x_419; x_418 = lean_ctor_get(x_399, 1); lean_inc(x_418); -x_419 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_418, x_414); +x_419 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_418, x_414); lean_dec(x_418); if (lean_obj_tag(x_419) == 0) { @@ -6426,7 +6732,7 @@ lean_object* x_424; lean_object* x_425; lean_object* x_426; x_424 = lean_ctor_get(x_420, 0); x_425 = lean_ctor_get(x_422, 1); lean_inc(x_424); -x_426 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_425, x_414, x_424); +x_426 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_425, x_414, x_424); lean_ctor_set(x_422, 1, x_426); return x_420; } @@ -6440,7 +6746,7 @@ lean_inc(x_429); lean_inc(x_428); lean_dec(x_422); lean_inc(x_427); -x_430 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_429, x_414, x_427); +x_430 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_429, x_414, x_427); x_431 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_431, 0, x_428); lean_ctor_set(x_431, 1, x_430); @@ -6469,7 +6775,7 @@ if (lean_is_exclusive(x_432)) { x_436 = lean_box(0); } lean_inc(x_433); -x_437 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_435, x_414, x_433); +x_437 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_435, x_414, x_433); if (lean_is_scalar(x_436)) { x_438 = lean_alloc_ctor(0, 2, 0); } else { @@ -6503,7 +6809,7 @@ else lean_object* x_442; lean_object* x_443; x_442 = lean_ctor_get(x_399, 1); lean_inc(x_442); -x_443 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_442, x_414); +x_443 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_442, x_414); lean_dec(x_442); if (lean_obj_tag(x_443) == 0) { @@ -6522,7 +6828,7 @@ lean_object* x_448; lean_object* x_449; lean_object* x_450; x_448 = lean_ctor_get(x_444, 0); x_449 = lean_ctor_get(x_446, 1); lean_inc(x_448); -x_450 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_449, x_414, x_448); +x_450 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_449, x_414, x_448); lean_ctor_set(x_446, 1, x_450); return x_444; } @@ -6536,7 +6842,7 @@ lean_inc(x_453); lean_inc(x_452); lean_dec(x_446); lean_inc(x_451); -x_454 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_453, x_414, x_451); +x_454 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_453, x_414, x_451); x_455 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_455, 0, x_452); lean_ctor_set(x_455, 1, x_454); @@ -6565,7 +6871,7 @@ if (lean_is_exclusive(x_456)) { x_460 = lean_box(0); } lean_inc(x_457); -x_461 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_459, x_414, x_457); +x_461 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_459, x_414, x_457); if (lean_is_scalar(x_460)) { x_462 = lean_alloc_ctor(0, 2, 0); } else { @@ -6662,7 +6968,7 @@ else lean_object* x_571; lean_object* x_572; x_571 = lean_ctor_get(x_4, 1); lean_inc(x_571); -x_572 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_571, x_2); +x_572 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_571, x_2); lean_dec(x_571); if (lean_obj_tag(x_572) == 0) { @@ -6681,7 +6987,7 @@ if (x_576 == 0) lean_object* x_577; lean_object* x_578; x_577 = lean_ctor_get(x_574, 1); lean_inc(x_575); -x_578 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_577, x_2, x_575); +x_578 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_577, x_2, x_575); lean_ctor_set(x_574, 1, x_578); x_500 = x_575; x_501 = x_574; @@ -6696,7 +7002,7 @@ lean_inc(x_580); lean_inc(x_579); lean_dec(x_574); lean_inc(x_575); -x_581 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_580, x_2, x_575); +x_581 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_580, x_2, x_575); x_582 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_582, 0, x_579); lean_ctor_set(x_582, 1, x_581); @@ -6723,7 +7029,7 @@ else lean_object* x_584; lean_object* x_585; x_584 = lean_ctor_get(x_4, 1); lean_inc(x_584); -x_585 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_584, x_2); +x_585 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_584, x_2); lean_dec(x_584); if (lean_obj_tag(x_585) == 0) { @@ -6742,7 +7048,7 @@ if (x_589 == 0) lean_object* x_590; lean_object* x_591; x_590 = lean_ctor_get(x_587, 1); lean_inc(x_588); -x_591 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_590, x_2, x_588); +x_591 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_590, x_2, x_588); lean_ctor_set(x_587, 1, x_591); x_500 = x_588; x_501 = x_587; @@ -6757,7 +7063,7 @@ lean_inc(x_593); lean_inc(x_592); lean_dec(x_587); lean_inc(x_588); -x_594 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_593, x_2, x_588); +x_594 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_593, x_2, x_588); x_595 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_595, 0, x_592); lean_ctor_set(x_595, 1, x_594); @@ -6823,7 +7129,7 @@ else lean_object* x_520; lean_object* x_521; x_520 = lean_ctor_get(x_501, 1); lean_inc(x_520); -x_521 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_520, x_516); +x_521 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_520, x_516); lean_dec(x_520); if (lean_obj_tag(x_521) == 0) { @@ -6842,7 +7148,7 @@ lean_object* x_526; lean_object* x_527; lean_object* x_528; x_526 = lean_ctor_get(x_522, 0); x_527 = lean_ctor_get(x_524, 1); lean_inc(x_526); -x_528 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_527, x_516, x_526); +x_528 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_527, x_516, x_526); lean_ctor_set(x_524, 1, x_528); return x_522; } @@ -6856,7 +7162,7 @@ lean_inc(x_531); lean_inc(x_530); lean_dec(x_524); lean_inc(x_529); -x_532 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_531, x_516, x_529); +x_532 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_531, x_516, x_529); x_533 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_533, 0, x_530); lean_ctor_set(x_533, 1, x_532); @@ -6885,7 +7191,7 @@ if (lean_is_exclusive(x_534)) { x_538 = lean_box(0); } lean_inc(x_535); -x_539 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_537, x_516, x_535); +x_539 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_537, x_516, x_535); if (lean_is_scalar(x_538)) { x_540 = lean_alloc_ctor(0, 2, 0); } else { @@ -6919,7 +7225,7 @@ else lean_object* x_544; lean_object* x_545; x_544 = lean_ctor_get(x_501, 1); lean_inc(x_544); -x_545 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_544, x_516); +x_545 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_544, x_516); lean_dec(x_544); if (lean_obj_tag(x_545) == 0) { @@ -6938,7 +7244,7 @@ lean_object* x_550; lean_object* x_551; lean_object* x_552; x_550 = lean_ctor_get(x_546, 0); x_551 = lean_ctor_get(x_548, 1); lean_inc(x_550); -x_552 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_551, x_516, x_550); +x_552 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_551, x_516, x_550); lean_ctor_set(x_548, 1, x_552); return x_546; } @@ -6952,7 +7258,7 @@ lean_inc(x_555); lean_inc(x_554); lean_dec(x_548); lean_inc(x_553); -x_556 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_555, x_516, x_553); +x_556 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_555, x_516, x_553); x_557 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_557, 0, x_554); lean_ctor_set(x_557, 1, x_556); @@ -6981,7 +7287,7 @@ if (lean_is_exclusive(x_558)) { x_562 = lean_box(0); } lean_inc(x_559); -x_563 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_561, x_516, x_559); +x_563 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_561, x_516, x_559); if (lean_is_scalar(x_562)) { x_564 = lean_alloc_ctor(0, 2, 0); } else { @@ -7065,7 +7371,7 @@ else lean_object* x_669; lean_object* x_670; x_669 = lean_ctor_get(x_4, 1); lean_inc(x_669); -x_670 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_669, x_2); +x_670 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_669, x_2); lean_dec(x_669); if (lean_obj_tag(x_670) == 0) { @@ -7084,7 +7390,7 @@ if (x_674 == 0) lean_object* x_675; lean_object* x_676; x_675 = lean_ctor_get(x_672, 1); lean_inc(x_673); -x_676 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_675, x_2, x_673); +x_676 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_675, x_2, x_673); lean_ctor_set(x_672, 1, x_676); x_598 = x_673; x_599 = x_672; @@ -7099,7 +7405,7 @@ lean_inc(x_678); lean_inc(x_677); lean_dec(x_672); lean_inc(x_673); -x_679 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_678, x_2, x_673); +x_679 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_678, x_2, x_673); x_680 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_680, 0, x_677); lean_ctor_set(x_680, 1, x_679); @@ -7126,7 +7432,7 @@ else lean_object* x_682; lean_object* x_683; x_682 = lean_ctor_get(x_4, 1); lean_inc(x_682); -x_683 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_682, x_2); +x_683 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_682, x_2); lean_dec(x_682); if (lean_obj_tag(x_683) == 0) { @@ -7145,7 +7451,7 @@ if (x_687 == 0) lean_object* x_688; lean_object* x_689; x_688 = lean_ctor_get(x_685, 1); lean_inc(x_686); -x_689 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_688, x_2, x_686); +x_689 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_688, x_2, x_686); lean_ctor_set(x_685, 1, x_689); x_598 = x_686; x_599 = x_685; @@ -7160,7 +7466,7 @@ lean_inc(x_691); lean_inc(x_690); lean_dec(x_685); lean_inc(x_686); -x_692 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_691, x_2, x_686); +x_692 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_691, x_2, x_686); x_693 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_693, 0, x_690); lean_ctor_set(x_693, 1, x_692); @@ -7226,7 +7532,7 @@ else lean_object* x_618; lean_object* x_619; x_618 = lean_ctor_get(x_599, 1); lean_inc(x_618); -x_619 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_618, x_614); +x_619 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_618, x_614); lean_dec(x_618); if (lean_obj_tag(x_619) == 0) { @@ -7245,7 +7551,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_625, x_614, x_624); +x_626 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_625, x_614, x_624); lean_ctor_set(x_622, 1, x_626); return x_620; } @@ -7259,7 +7565,7 @@ lean_inc(x_629); lean_inc(x_628); lean_dec(x_622); lean_inc(x_627); -x_630 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_629, x_614, x_627); +x_630 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_629, x_614, 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); @@ -7288,7 +7594,7 @@ if (lean_is_exclusive(x_632)) { x_636 = lean_box(0); } lean_inc(x_633); -x_637 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_635, x_614, x_633); +x_637 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_635, x_614, x_633); if (lean_is_scalar(x_636)) { x_638 = lean_alloc_ctor(0, 2, 0); } else { @@ -7322,7 +7628,7 @@ else lean_object* x_642; lean_object* x_643; x_642 = lean_ctor_get(x_599, 1); lean_inc(x_642); -x_643 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_642, x_614); +x_643 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_642, x_614); lean_dec(x_642); if (lean_obj_tag(x_643) == 0) { @@ -7341,7 +7647,7 @@ lean_object* x_648; lean_object* x_649; lean_object* x_650; x_648 = lean_ctor_get(x_644, 0); x_649 = lean_ctor_get(x_646, 1); lean_inc(x_648); -x_650 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_649, x_614, x_648); +x_650 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_649, x_614, x_648); lean_ctor_set(x_646, 1, x_650); return x_644; } @@ -7355,7 +7661,7 @@ lean_inc(x_653); lean_inc(x_652); lean_dec(x_646); lean_inc(x_651); -x_654 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_653, x_614, x_651); +x_654 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_653, x_614, x_651); x_655 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_655, 0, x_652); lean_ctor_set(x_655, 1, x_654); @@ -7384,7 +7690,7 @@ if (lean_is_exclusive(x_656)) { x_660 = lean_box(0); } lean_inc(x_657); -x_661 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_659, x_614, x_657); +x_661 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_659, x_614, x_657); if (lean_is_scalar(x_660)) { x_662 = lean_alloc_ctor(0, 2, 0); } else { @@ -7468,7 +7774,7 @@ else lean_object* x_767; lean_object* x_768; x_767 = lean_ctor_get(x_4, 1); lean_inc(x_767); -x_768 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_767, x_2); +x_768 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_767, x_2); lean_dec(x_767); if (lean_obj_tag(x_768) == 0) { @@ -7487,7 +7793,7 @@ if (x_772 == 0) lean_object* x_773; lean_object* x_774; x_773 = lean_ctor_get(x_770, 1); lean_inc(x_771); -x_774 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_773, x_2, x_771); +x_774 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_773, x_2, x_771); lean_ctor_set(x_770, 1, x_774); x_696 = x_771; x_697 = x_770; @@ -7502,7 +7808,7 @@ lean_inc(x_776); lean_inc(x_775); lean_dec(x_770); lean_inc(x_771); -x_777 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_776, x_2, x_771); +x_777 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_776, x_2, x_771); x_778 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_778, 0, x_775); lean_ctor_set(x_778, 1, x_777); @@ -7529,7 +7835,7 @@ else lean_object* x_780; lean_object* x_781; x_780 = lean_ctor_get(x_4, 1); lean_inc(x_780); -x_781 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_780, x_2); +x_781 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_780, x_2); lean_dec(x_780); if (lean_obj_tag(x_781) == 0) { @@ -7548,7 +7854,7 @@ if (x_785 == 0) lean_object* x_786; lean_object* x_787; x_786 = lean_ctor_get(x_783, 1); lean_inc(x_784); -x_787 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_786, x_2, x_784); +x_787 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_786, x_2, x_784); lean_ctor_set(x_783, 1, x_787); x_696 = x_784; x_697 = x_783; @@ -7563,7 +7869,7 @@ lean_inc(x_789); lean_inc(x_788); lean_dec(x_783); lean_inc(x_784); -x_790 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_789, x_2, x_784); +x_790 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_789, x_2, x_784); x_791 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_791, 0, x_788); lean_ctor_set(x_791, 1, x_790); @@ -7629,7 +7935,7 @@ else lean_object* x_716; lean_object* x_717; x_716 = lean_ctor_get(x_697, 1); lean_inc(x_716); -x_717 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_716, x_712); +x_717 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_716, x_712); lean_dec(x_716); if (lean_obj_tag(x_717) == 0) { @@ -7648,7 +7954,7 @@ lean_object* x_722; lean_object* x_723; lean_object* x_724; x_722 = lean_ctor_get(x_718, 0); x_723 = lean_ctor_get(x_720, 1); lean_inc(x_722); -x_724 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_723, x_712, x_722); +x_724 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_723, x_712, x_722); lean_ctor_set(x_720, 1, x_724); return x_718; } @@ -7662,7 +7968,7 @@ lean_inc(x_727); lean_inc(x_726); lean_dec(x_720); lean_inc(x_725); -x_728 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_727, x_712, x_725); +x_728 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_727, x_712, x_725); x_729 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_729, 0, x_726); lean_ctor_set(x_729, 1, x_728); @@ -7691,7 +7997,7 @@ if (lean_is_exclusive(x_730)) { x_734 = lean_box(0); } lean_inc(x_731); -x_735 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_733, x_712, x_731); +x_735 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_733, x_712, x_731); if (lean_is_scalar(x_734)) { x_736 = lean_alloc_ctor(0, 2, 0); } else { @@ -7725,7 +8031,7 @@ else lean_object* x_740; lean_object* x_741; x_740 = lean_ctor_get(x_697, 1); lean_inc(x_740); -x_741 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_740, x_712); +x_741 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_740, x_712); lean_dec(x_740); if (lean_obj_tag(x_741) == 0) { @@ -7744,7 +8050,7 @@ lean_object* x_746; lean_object* x_747; lean_object* x_748; x_746 = lean_ctor_get(x_742, 0); x_747 = lean_ctor_get(x_744, 1); lean_inc(x_746); -x_748 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_747, x_712, x_746); +x_748 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_747, x_712, x_746); lean_ctor_set(x_744, 1, x_748); return x_742; } @@ -7758,7 +8064,7 @@ lean_inc(x_751); lean_inc(x_750); lean_dec(x_744); lean_inc(x_749); -x_752 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_751, x_712, x_749); +x_752 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_751, x_712, x_749); x_753 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_753, 0, x_750); lean_ctor_set(x_753, 1, x_752); @@ -7787,7 +8093,7 @@ if (lean_is_exclusive(x_754)) { x_758 = lean_box(0); } lean_inc(x_755); -x_759 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_757, x_712, x_755); +x_759 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_757, x_712, x_755); if (lean_is_scalar(x_758)) { x_760 = lean_alloc_ctor(0, 2, 0); } else { @@ -7871,7 +8177,7 @@ else lean_object* x_865; lean_object* x_866; x_865 = lean_ctor_get(x_4, 1); lean_inc(x_865); -x_866 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_865, x_2); +x_866 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_865, x_2); lean_dec(x_865); if (lean_obj_tag(x_866) == 0) { @@ -7890,7 +8196,7 @@ if (x_870 == 0) lean_object* x_871; lean_object* x_872; x_871 = lean_ctor_get(x_868, 1); lean_inc(x_869); -x_872 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_871, x_2, x_869); +x_872 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_871, x_2, x_869); lean_ctor_set(x_868, 1, x_872); x_794 = x_869; x_795 = x_868; @@ -7905,7 +8211,7 @@ lean_inc(x_874); lean_inc(x_873); lean_dec(x_868); lean_inc(x_869); -x_875 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_874, x_2, x_869); +x_875 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_874, x_2, x_869); x_876 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_876, 0, x_873); lean_ctor_set(x_876, 1, x_875); @@ -7932,7 +8238,7 @@ else lean_object* x_878; lean_object* x_879; x_878 = lean_ctor_get(x_4, 1); lean_inc(x_878); -x_879 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_878, x_2); +x_879 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_878, x_2); lean_dec(x_878); if (lean_obj_tag(x_879) == 0) { @@ -7951,7 +8257,7 @@ if (x_883 == 0) lean_object* x_884; lean_object* x_885; x_884 = lean_ctor_get(x_881, 1); lean_inc(x_882); -x_885 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_884, x_2, x_882); +x_885 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_884, x_2, x_882); lean_ctor_set(x_881, 1, x_885); x_794 = x_882; x_795 = x_881; @@ -7966,7 +8272,7 @@ lean_inc(x_887); lean_inc(x_886); lean_dec(x_881); lean_inc(x_882); -x_888 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_887, x_2, x_882); +x_888 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_887, x_2, x_882); x_889 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_889, 0, x_886); lean_ctor_set(x_889, 1, x_888); @@ -8032,7 +8338,7 @@ else lean_object* x_814; lean_object* x_815; x_814 = lean_ctor_get(x_795, 1); lean_inc(x_814); -x_815 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_814, x_810); +x_815 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_814, x_810); lean_dec(x_814); if (lean_obj_tag(x_815) == 0) { @@ -8051,7 +8357,7 @@ lean_object* x_820; lean_object* x_821; lean_object* x_822; x_820 = lean_ctor_get(x_816, 0); x_821 = lean_ctor_get(x_818, 1); lean_inc(x_820); -x_822 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_821, x_810, x_820); +x_822 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_821, x_810, x_820); lean_ctor_set(x_818, 1, x_822); return x_816; } @@ -8065,7 +8371,7 @@ lean_inc(x_825); lean_inc(x_824); lean_dec(x_818); lean_inc(x_823); -x_826 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_825, x_810, x_823); +x_826 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_825, x_810, x_823); x_827 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_827, 0, x_824); lean_ctor_set(x_827, 1, x_826); @@ -8094,7 +8400,7 @@ if (lean_is_exclusive(x_828)) { x_832 = lean_box(0); } lean_inc(x_829); -x_833 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_831, x_810, x_829); +x_833 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_831, x_810, x_829); if (lean_is_scalar(x_832)) { x_834 = lean_alloc_ctor(0, 2, 0); } else { @@ -8128,7 +8434,7 @@ else lean_object* x_838; lean_object* x_839; x_838 = lean_ctor_get(x_795, 1); lean_inc(x_838); -x_839 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_838, x_810); +x_839 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_838, x_810); lean_dec(x_838); if (lean_obj_tag(x_839) == 0) { @@ -8147,7 +8453,7 @@ lean_object* x_844; lean_object* x_845; lean_object* x_846; x_844 = lean_ctor_get(x_840, 0); x_845 = lean_ctor_get(x_842, 1); lean_inc(x_844); -x_846 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_845, x_810, x_844); +x_846 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_845, x_810, x_844); lean_ctor_set(x_842, 1, x_846); return x_840; } @@ -8161,7 +8467,7 @@ lean_inc(x_849); lean_inc(x_848); lean_dec(x_842); lean_inc(x_847); -x_850 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_849, x_810, x_847); +x_850 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_849, x_810, x_847); x_851 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_851, 0, x_848); lean_ctor_set(x_851, 1, x_850); @@ -8190,7 +8496,7 @@ if (lean_is_exclusive(x_852)) { x_856 = lean_box(0); } lean_inc(x_853); -x_857 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_855, x_810, x_853); +x_857 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_855, x_810, x_853); if (lean_is_scalar(x_856)) { x_858 = lean_alloc_ctor(0, 2, 0); } else { @@ -8274,7 +8580,7 @@ else lean_object* x_963; lean_object* x_964; x_963 = lean_ctor_get(x_4, 1); lean_inc(x_963); -x_964 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_963, x_2); +x_964 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_963, x_2); lean_dec(x_963); if (lean_obj_tag(x_964) == 0) { @@ -8293,7 +8599,7 @@ if (x_968 == 0) lean_object* x_969; lean_object* x_970; x_969 = lean_ctor_get(x_966, 1); lean_inc(x_967); -x_970 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_969, x_2, x_967); +x_970 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_969, x_2, x_967); lean_ctor_set(x_966, 1, x_970); x_892 = x_967; x_893 = x_966; @@ -8308,7 +8614,7 @@ lean_inc(x_972); lean_inc(x_971); lean_dec(x_966); lean_inc(x_967); -x_973 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_972, x_2, x_967); +x_973 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_972, x_2, x_967); x_974 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_974, 0, x_971); lean_ctor_set(x_974, 1, x_973); @@ -8335,7 +8641,7 @@ else lean_object* x_976; lean_object* x_977; x_976 = lean_ctor_get(x_4, 1); lean_inc(x_976); -x_977 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_976, x_2); +x_977 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_976, x_2); lean_dec(x_976); if (lean_obj_tag(x_977) == 0) { @@ -8354,7 +8660,7 @@ if (x_981 == 0) lean_object* x_982; lean_object* x_983; x_982 = lean_ctor_get(x_979, 1); lean_inc(x_980); -x_983 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_982, x_2, x_980); +x_983 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_982, x_2, x_980); lean_ctor_set(x_979, 1, x_983); x_892 = x_980; x_893 = x_979; @@ -8369,7 +8675,7 @@ lean_inc(x_985); lean_inc(x_984); lean_dec(x_979); lean_inc(x_980); -x_986 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_985, x_2, x_980); +x_986 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_985, x_2, x_980); x_987 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_987, 0, x_984); lean_ctor_set(x_987, 1, x_986); @@ -8435,7 +8741,7 @@ else lean_object* x_912; lean_object* x_913; x_912 = lean_ctor_get(x_893, 1); lean_inc(x_912); -x_913 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_912, x_908); +x_913 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_912, x_908); lean_dec(x_912); if (lean_obj_tag(x_913) == 0) { @@ -8454,7 +8760,7 @@ lean_object* x_918; lean_object* x_919; lean_object* x_920; x_918 = lean_ctor_get(x_914, 0); x_919 = lean_ctor_get(x_916, 1); lean_inc(x_918); -x_920 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_919, x_908, x_918); +x_920 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_919, x_908, x_918); lean_ctor_set(x_916, 1, x_920); return x_914; } @@ -8468,7 +8774,7 @@ lean_inc(x_923); lean_inc(x_922); lean_dec(x_916); lean_inc(x_921); -x_924 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_923, x_908, x_921); +x_924 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_923, x_908, x_921); x_925 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_925, 0, x_922); lean_ctor_set(x_925, 1, x_924); @@ -8497,7 +8803,7 @@ if (lean_is_exclusive(x_926)) { x_930 = lean_box(0); } lean_inc(x_927); -x_931 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_929, x_908, x_927); +x_931 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_929, x_908, x_927); if (lean_is_scalar(x_930)) { x_932 = lean_alloc_ctor(0, 2, 0); } else { @@ -8531,7 +8837,7 @@ else lean_object* x_936; lean_object* x_937; x_936 = lean_ctor_get(x_893, 1); lean_inc(x_936); -x_937 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_936, x_908); +x_937 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_936, x_908); lean_dec(x_936); if (lean_obj_tag(x_937) == 0) { @@ -8550,7 +8856,7 @@ lean_object* x_942; lean_object* x_943; lean_object* x_944; x_942 = lean_ctor_get(x_938, 0); x_943 = lean_ctor_get(x_940, 1); lean_inc(x_942); -x_944 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_943, x_908, x_942); +x_944 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_943, x_908, x_942); lean_ctor_set(x_940, 1, x_944); return x_938; } @@ -8564,7 +8870,7 @@ lean_inc(x_947); lean_inc(x_946); lean_dec(x_940); lean_inc(x_945); -x_948 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_947, x_908, x_945); +x_948 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_947, x_908, x_945); x_949 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_949, 0, x_946); lean_ctor_set(x_949, 1, x_948); @@ -8593,7 +8899,7 @@ if (lean_is_exclusive(x_950)) { x_954 = lean_box(0); } lean_inc(x_951); -x_955 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_953, x_908, x_951); +x_955 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_953, x_908, x_951); if (lean_is_scalar(x_954)) { x_956 = lean_alloc_ctor(0, 2, 0); } else { @@ -8677,7 +8983,7 @@ else lean_object* x_1061; lean_object* x_1062; x_1061 = lean_ctor_get(x_4, 1); lean_inc(x_1061); -x_1062 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1061, x_2); +x_1062 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1061, x_2); lean_dec(x_1061); if (lean_obj_tag(x_1062) == 0) { @@ -8696,7 +9002,7 @@ if (x_1066 == 0) lean_object* x_1067; lean_object* x_1068; x_1067 = lean_ctor_get(x_1064, 1); lean_inc(x_1065); -x_1068 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1067, x_2, x_1065); +x_1068 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1067, x_2, x_1065); lean_ctor_set(x_1064, 1, x_1068); x_990 = x_1065; x_991 = x_1064; @@ -8711,7 +9017,7 @@ lean_inc(x_1070); lean_inc(x_1069); lean_dec(x_1064); lean_inc(x_1065); -x_1071 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1070, x_2, x_1065); +x_1071 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1070, x_2, x_1065); x_1072 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_1072, 0, x_1069); lean_ctor_set(x_1072, 1, x_1071); @@ -8738,7 +9044,7 @@ else lean_object* x_1074; lean_object* x_1075; x_1074 = lean_ctor_get(x_4, 1); lean_inc(x_1074); -x_1075 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1074, x_2); +x_1075 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1074, x_2); lean_dec(x_1074); if (lean_obj_tag(x_1075) == 0) { @@ -8757,7 +9063,7 @@ if (x_1079 == 0) lean_object* x_1080; lean_object* x_1081; x_1080 = lean_ctor_get(x_1077, 1); lean_inc(x_1078); -x_1081 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1080, x_2, x_1078); +x_1081 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1080, x_2, x_1078); lean_ctor_set(x_1077, 1, x_1081); x_990 = x_1078; x_991 = x_1077; @@ -8772,7 +9078,7 @@ lean_inc(x_1083); lean_inc(x_1082); lean_dec(x_1077); lean_inc(x_1078); -x_1084 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1083, x_2, x_1078); +x_1084 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1083, x_2, x_1078); x_1085 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_1085, 0, x_1082); lean_ctor_set(x_1085, 1, x_1084); @@ -8838,7 +9144,7 @@ else lean_object* x_1010; lean_object* x_1011; x_1010 = lean_ctor_get(x_991, 1); lean_inc(x_1010); -x_1011 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1010, x_1006); +x_1011 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1010, x_1006); lean_dec(x_1010); if (lean_obj_tag(x_1011) == 0) { @@ -8857,7 +9163,7 @@ lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; x_1016 = lean_ctor_get(x_1012, 0); x_1017 = lean_ctor_get(x_1014, 1); lean_inc(x_1016); -x_1018 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1017, x_1006, x_1016); +x_1018 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1017, x_1006, x_1016); lean_ctor_set(x_1014, 1, x_1018); return x_1012; } @@ -8871,7 +9177,7 @@ lean_inc(x_1021); lean_inc(x_1020); lean_dec(x_1014); lean_inc(x_1019); -x_1022 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1021, x_1006, x_1019); +x_1022 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1021, x_1006, x_1019); x_1023 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_1023, 0, x_1020); lean_ctor_set(x_1023, 1, x_1022); @@ -8900,7 +9206,7 @@ if (lean_is_exclusive(x_1024)) { x_1028 = lean_box(0); } lean_inc(x_1025); -x_1029 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1027, x_1006, x_1025); +x_1029 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1027, x_1006, x_1025); if (lean_is_scalar(x_1028)) { x_1030 = lean_alloc_ctor(0, 2, 0); } else { @@ -8934,7 +9240,7 @@ else lean_object* x_1034; lean_object* x_1035; x_1034 = lean_ctor_get(x_991, 1); lean_inc(x_1034); -x_1035 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1034, x_1006); +x_1035 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1034, x_1006); lean_dec(x_1034); if (lean_obj_tag(x_1035) == 0) { @@ -8953,7 +9259,7 @@ lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; x_1040 = lean_ctor_get(x_1036, 0); x_1041 = lean_ctor_get(x_1038, 1); lean_inc(x_1040); -x_1042 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1041, x_1006, x_1040); +x_1042 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1041, x_1006, x_1040); lean_ctor_set(x_1038, 1, x_1042); return x_1036; } @@ -8967,7 +9273,7 @@ lean_inc(x_1045); lean_inc(x_1044); lean_dec(x_1038); lean_inc(x_1043); -x_1046 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1045, x_1006, x_1043); +x_1046 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1045, x_1006, x_1043); x_1047 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_1047, 0, x_1044); lean_ctor_set(x_1047, 1, x_1046); @@ -8996,7 +9302,7 @@ if (lean_is_exclusive(x_1048)) { x_1052 = lean_box(0); } lean_inc(x_1049); -x_1053 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1051, x_1006, x_1049); +x_1053 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1051, x_1006, x_1049); if (lean_is_scalar(x_1052)) { x_1054 = lean_alloc_ctor(0, 2, 0); } else { @@ -9078,32 +9384,32 @@ lean_object* x_4; lean_object* x_5; lean_object* x_16; lean_object* x_17; lean_o switch (lean_obj_tag(x_2)) { case 2: { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_50; lean_object* x_51; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_51; lean_object* x_52; x_38 = lean_ctor_get(x_2, 0); lean_inc(x_38); -x_50 = lean_ctor_get(x_3, 1); -lean_inc(x_50); -x_51 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_2); -if (lean_obj_tag(x_51) == 0) +x_51 = lean_ctor_get(x_3, 1); +lean_inc(x_51); +x_52 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_51, x_2); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_3, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_1, 5); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_3, 0); lean_inc(x_53); +x_54 = lean_ctor_get(x_1, 5); +lean_inc(x_54); lean_inc(x_38); -lean_inc(x_52); -x_54 = lean_apply_2(x_53, x_52, x_38); -if (lean_obj_tag(x_54) == 0) +lean_inc(x_53); +x_55 = lean_apply_2(x_54, x_53, x_38); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_1, 10); -lean_inc(x_55); +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_1, 9); +lean_inc(x_56); lean_inc(x_38); -x_56 = lean_apply_2(x_55, x_52, x_38); -if (lean_obj_tag(x_56) == 0) +x_57 = lean_apply_2(x_56, x_53, x_38); +if (lean_obj_tag(x_57) == 0) { -lean_dec(x_50); +lean_dec(x_51); lean_dec(x_38); lean_dec(x_1); lean_inc(x_2); @@ -9113,325 +9419,339 @@ goto block_15; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_108; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -lean_dec(x_56); +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_114; x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -x_60 = lean_ctor_get(x_57, 2); -lean_inc(x_60); lean_dec(x_57); -x_108 = lean_expr_has_expr_mvar(x_60); -if (x_108 == 0) -{ -uint8_t x_109; -x_109 = lean_expr_has_level_mvar(x_60); -if (x_109 == 0) -{ -lean_dec(x_50); -x_61 = x_60; -x_62 = x_3; -goto block_107; -} -else -{ -lean_object* x_110; -x_110 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_60); -lean_dec(x_50); -if (lean_obj_tag(x_110) == 0) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); lean_inc(x_60); -lean_inc(x_1); -x_111 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_60, x_3); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 0); -lean_inc(x_113); -lean_dec(x_111); -x_114 = !lean_is_exclusive(x_112); +x_61 = lean_ctor_get(x_58, 2); +lean_inc(x_61); +lean_dec(x_58); +x_114 = lean_expr_has_expr_mvar(x_61); 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_115, x_60, x_113); -lean_ctor_set(x_112, 1, x_116); -x_61 = x_113; -x_62 = x_112; -goto block_107; +uint8_t x_115; +x_115 = lean_expr_has_level_mvar(x_61); +if (x_115 == 0) +{ +lean_dec(x_51); +x_62 = x_61; +x_63 = x_3; +goto block_113; } 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_118, x_60, 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_61 = x_113; -x_62 = x_120; -goto block_107; -} -} -else +lean_object* x_116; +x_116 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_51, x_61); +lean_dec(x_51); +if (lean_obj_tag(x_116) == 0) { -lean_object* x_121; -lean_dec(x_60); -x_121 = lean_ctor_get(x_110, 0); -lean_inc(x_121); -lean_dec(x_110); -x_61 = x_121; -x_62 = x_3; -goto block_107; -} -} -} -else -{ -lean_object* x_122; -x_122 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_60); -lean_dec(x_50); -if (lean_obj_tag(x_122) == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; -lean_inc(x_60); +lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +lean_inc(x_61); lean_inc(x_1); -x_123 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_60, x_3); -x_124 = lean_ctor_get(x_123, 1); +x_117 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_61, x_3); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +x_119 = lean_ctor_get(x_117, 0); +lean_inc(x_119); +lean_dec(x_117); +x_120 = !lean_is_exclusive(x_118); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +x_122 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_121, x_61, x_119); +lean_ctor_set(x_118, 1, x_122); +x_62 = x_119; +x_63 = x_118; +goto block_113; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_118, 0); +x_124 = lean_ctor_get(x_118, 1); lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 0); -lean_inc(x_125); -lean_dec(x_123); -x_126 = !lean_is_exclusive(x_124); -if (x_126 == 0) -{ -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_124, 1); -lean_inc(x_125); -x_128 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_127, x_60, x_125); -lean_ctor_set(x_124, 1, x_128); -x_61 = x_125; -x_62 = x_124; -goto block_107; +lean_inc(x_123); +lean_dec(x_118); +lean_inc(x_119); +x_125 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_124, x_61, x_119); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_125); +x_62 = x_119; +x_63 = x_126; +goto block_113; +} } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_129 = lean_ctor_get(x_124, 0); -x_130 = lean_ctor_get(x_124, 1); +lean_object* x_127; +lean_dec(x_61); +x_127 = lean_ctor_get(x_116, 0); +lean_inc(x_127); +lean_dec(x_116); +x_62 = x_127; +x_63 = x_3; +goto block_113; +} +} +} +else +{ +lean_object* x_128; +x_128 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_51, x_61); +lean_dec(x_51); +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_61); +lean_inc(x_1); +x_129 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_61, x_3); +x_130 = lean_ctor_get(x_129, 1); lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_124); -lean_inc(x_125); -x_131 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_130, x_60, x_125); -x_132 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_131); -x_61 = x_125; -x_62 = x_132; -goto block_107; +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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_133, x_61, x_131); +lean_ctor_set(x_130, 1, x_134); +x_62 = x_131; +x_63 = x_130; +goto block_113; +} +else +{ +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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_136, x_61, 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_62 = x_131; +x_63 = x_138; +goto block_113; } } else { -lean_object* x_133; -lean_dec(x_60); -x_133 = lean_ctor_get(x_122, 0); -lean_inc(x_133); -lean_dec(x_122); -x_61 = x_133; -x_62 = x_3; -goto block_107; +lean_object* x_139; +lean_dec(x_61); +x_139 = lean_ctor_get(x_128, 0); +lean_inc(x_139); +lean_dec(x_128); +x_62 = x_139; +x_63 = x_3; +goto block_113; } } -block_107: -{ -uint8_t x_63; -x_63 = lean_expr_has_expr_mvar(x_61); -if (x_63 == 0) +block_113: { uint8_t x_64; -x_64 = lean_expr_has_level_mvar(x_61); +x_64 = lean_expr_has_expr_mvar(x_62); if (x_64 == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_65 = lean_array_get_size(x_59); -x_66 = lean_expr_abstract(x_61, x_59); -lean_inc(x_58); -lean_inc(x_1); -x_67 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__1___rarg(x_1, x_58, x_59, x_65, x_66, x_62); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -if (lean_obj_tag(x_68) == 0) +uint8_t x_65; +x_65 = lean_expr_has_level_mvar(x_62); +if (x_65 == 0) { -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_67, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_66 = lean_array_get_size(x_60); +x_67 = lean_expr_abstract(x_62, x_60); +lean_inc(x_59); +lean_inc(x_1); +x_68 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__1___rarg(x_1, x_59, x_60, x_66, x_67, x_63); +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_ctor_get(x_1, 9); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; uint8_t x_71; +x_70 = lean_ctor_get(x_68, 1); lean_inc(x_70); -lean_dec(x_1); -x_71 = !lean_is_exclusive(x_69); +lean_dec(x_68); +x_71 = !lean_is_exclusive(x_70); if (x_71 == 0) { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_69, 0); -x_73 = lean_apply_5(x_70, x_72, x_38, x_58, x_59, x_61); -lean_ctor_set(x_69, 0, x_73); -lean_inc(x_2); -x_4 = x_2; -x_5 = x_69; -goto block_15; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_74 = lean_ctor_get(x_69, 0); -x_75 = lean_ctor_get(x_69, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_69); -x_76 = lean_apply_5(x_70, x_74, x_38, x_58, x_59, x_61); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_75); -lean_inc(x_2); -x_4 = x_2; -x_5 = x_77; -goto block_15; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; -lean_dec(x_61); -lean_dec(x_59); -lean_dec(x_58); -x_78 = lean_ctor_get(x_67, 1); -lean_inc(x_78); -lean_dec(x_67); -x_79 = lean_ctor_get(x_68, 0); -lean_inc(x_79); -lean_dec(x_68); -x_80 = lean_ctor_get(x_1, 6); -lean_inc(x_80); -x_81 = lean_ctor_get(x_1, 11); -lean_inc(x_81); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_70, 0); +x_73 = lean_ctor_get(x_1, 8); +lean_inc(x_73); lean_dec(x_1); -x_82 = !lean_is_exclusive(x_78); +x_74 = lean_apply_5(x_73, x_72, x_38, x_59, x_60, x_62); +lean_ctor_set(x_70, 0, x_74); +lean_inc(x_2); +x_4 = x_2; +x_5 = x_70; +goto block_15; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_75 = lean_ctor_get(x_70, 0); +x_76 = lean_ctor_get(x_70, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_70); +x_77 = lean_ctor_get(x_1, 8); +lean_inc(x_77); +lean_dec(x_1); +x_78 = lean_apply_5(x_77, x_75, x_38, x_59, x_60, x_62); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); +lean_inc(x_2); +x_4 = x_2; +x_5 = x_79; +goto block_15; +} +} +else +{ +lean_object* x_80; lean_object* x_81; uint8_t x_82; +lean_dec(x_62); +lean_dec(x_60); +lean_dec(x_59); +x_80 = lean_ctor_get(x_68, 1); +lean_inc(x_80); +lean_dec(x_68); +x_81 = lean_ctor_get(x_69, 0); +lean_inc(x_81); +lean_dec(x_69); +x_82 = !lean_is_exclusive(x_80); if (x_82 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_78, 0); +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_83 = lean_ctor_get(x_80, 0); +x_84 = lean_ctor_get(x_1, 6); +lean_inc(x_84); +x_85 = lean_ctor_get(x_1, 10); +lean_inc(x_85); +lean_dec(x_1); lean_inc(x_38); -x_84 = lean_apply_2(x_81, x_83, x_38); -lean_inc(x_79); -x_85 = lean_apply_3(x_80, x_84, x_38, x_79); -lean_ctor_set(x_78, 0, x_85); -x_4 = x_79; -x_5 = x_78; +x_86 = lean_apply_2(x_85, x_83, x_38); +lean_inc(x_81); +x_87 = lean_apply_3(x_84, x_86, x_38, x_81); +lean_ctor_set(x_80, 0, x_87); +x_4 = x_81; +x_5 = x_80; goto block_15; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_86 = lean_ctor_get(x_78, 0); -x_87 = lean_ctor_get(x_78, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_78); -lean_inc(x_38); -x_88 = lean_apply_2(x_81, x_86, x_38); -lean_inc(x_79); -x_89 = lean_apply_3(x_80, x_88, x_38, x_79); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_87); -x_4 = x_79; -x_5 = x_90; -goto block_15; -} -} -} -else -{ -lean_object* x_91; uint8_t x_92; -x_91 = lean_ctor_get(x_1, 9); +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; +x_88 = lean_ctor_get(x_80, 0); +x_89 = lean_ctor_get(x_80, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_80); +x_90 = lean_ctor_get(x_1, 6); +lean_inc(x_90); +x_91 = lean_ctor_get(x_1, 10); lean_inc(x_91); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_62); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_62, 0); -x_94 = lean_apply_5(x_91, x_93, x_38, x_58, x_59, x_61); -lean_ctor_set(x_62, 0, x_94); -lean_inc(x_2); -x_4 = x_2; -x_5 = x_62; -goto block_15; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_62, 0); -x_96 = lean_ctor_get(x_62, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_62); -x_97 = lean_apply_5(x_91, x_95, x_38, x_58, x_59, x_61); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -lean_inc(x_2); -x_4 = x_2; -x_5 = x_98; +lean_inc(x_38); +x_92 = lean_apply_2(x_91, x_88, x_38); +lean_inc(x_81); +x_93 = lean_apply_3(x_90, x_92, x_38, x_81); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_89); +x_4 = x_81; +x_5 = x_94; goto block_15; } } } else { -lean_object* x_99; uint8_t x_100; -x_99 = lean_ctor_get(x_1, 9); -lean_inc(x_99); +uint8_t x_95; +x_95 = !lean_is_exclusive(x_63); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_63, 0); +x_97 = lean_ctor_get(x_1, 8); +lean_inc(x_97); lean_dec(x_1); -x_100 = !lean_is_exclusive(x_62); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; -x_101 = lean_ctor_get(x_62, 0); -x_102 = lean_apply_5(x_99, x_101, x_38, x_58, x_59, x_61); -lean_ctor_set(x_62, 0, x_102); +x_98 = lean_apply_5(x_97, x_96, x_38, x_59, x_60, x_62); +lean_ctor_set(x_63, 0, x_98); lean_inc(x_2); x_4 = x_2; -x_5 = x_62; +x_5 = x_63; goto block_15; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_103 = lean_ctor_get(x_62, 0); -x_104 = lean_ctor_get(x_62, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_62); -x_105 = lean_apply_5(x_99, x_103, x_38, x_58, x_59, x_61); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_99 = lean_ctor_get(x_63, 0); +x_100 = lean_ctor_get(x_63, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_63); +x_101 = lean_ctor_get(x_1, 8); +lean_inc(x_101); +lean_dec(x_1); +x_102 = lean_apply_5(x_101, x_99, x_38, x_59, x_60, x_62); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_100); lean_inc(x_2); x_4 = x_2; -x_5 = x_106; +x_5 = x_103; +goto block_15; +} +} +} +else +{ +uint8_t x_104; +x_104 = !lean_is_exclusive(x_63); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_63, 0); +x_106 = lean_ctor_get(x_1, 8); +lean_inc(x_106); +lean_dec(x_1); +x_107 = lean_apply_5(x_106, x_105, x_38, x_59, x_60, x_62); +lean_ctor_set(x_63, 0, x_107); +lean_inc(x_2); +x_4 = x_2; +x_5 = x_63; +goto block_15; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_108 = lean_ctor_get(x_63, 0); +x_109 = lean_ctor_get(x_63, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_63); +x_110 = lean_ctor_get(x_1, 8); +lean_inc(x_110); +lean_dec(x_1); +x_111 = lean_apply_5(x_110, x_108, x_38, x_59, x_60, x_62); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_109); +lean_inc(x_2); +x_4 = x_2; +x_5 = x_112; goto block_15; } } @@ -9440,170 +9760,170 @@ goto block_15; } else { -lean_object* x_134; uint8_t x_135; -lean_dec(x_52); -x_134 = lean_ctor_get(x_54, 0); -lean_inc(x_134); -lean_dec(x_54); -x_135 = lean_expr_has_expr_mvar(x_134); -if (x_135 == 0) -{ -uint8_t x_136; -x_136 = lean_expr_has_level_mvar(x_134); -if (x_136 == 0) -{ -lean_dec(x_50); -x_39 = x_134; -x_40 = x_3; -goto block_49; -} -else -{ -lean_object* x_137; -x_137 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_134); -lean_dec(x_50); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; -lean_inc(x_134); -lean_inc(x_1); -x_138 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_134, x_3); -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 0); +lean_object* x_140; uint8_t x_141; +lean_dec(x_53); +x_140 = lean_ctor_get(x_55, 0); lean_inc(x_140); -lean_dec(x_138); -x_141 = !lean_is_exclusive(x_139); +lean_dec(x_55); +x_141 = lean_expr_has_expr_mvar(x_140); if (x_141 == 0) { -lean_object* x_142; lean_object* x_143; -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -x_143 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_142, x_134, x_140); -lean_ctor_set(x_139, 1, x_143); -x_39 = x_140; -x_40 = x_139; -goto block_49; -} -else +uint8_t x_142; +x_142 = lean_expr_has_level_mvar(x_140); +if (x_142 == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_144 = lean_ctor_get(x_139, 0); -x_145 = lean_ctor_get(x_139, 1); -lean_inc(x_145); -lean_inc(x_144); -lean_dec(x_139); -lean_inc(x_140); -x_146 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_145, x_134, x_140); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_144); -lean_ctor_set(x_147, 1, x_146); +lean_dec(x_51); x_39 = x_140; -x_40 = x_147; -goto block_49; -} -} -else -{ -lean_object* x_148; -lean_dec(x_134); -x_148 = lean_ctor_get(x_137, 0); -lean_inc(x_148); -lean_dec(x_137); -x_39 = x_148; x_40 = x_3; -goto block_49; -} -} +goto block_50; } else { -lean_object* x_149; -x_149 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_50, x_134); -lean_dec(x_50); -if (lean_obj_tag(x_149) == 0) +lean_object* x_143; +x_143 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_51, x_140); +lean_dec(x_51); +if (lean_obj_tag(x_143) == 0) { -lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; -lean_inc(x_134); +lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; +lean_inc(x_140); lean_inc(x_1); -x_150 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_134, x_3); -x_151 = lean_ctor_get(x_150, 1); +x_144 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_140, x_3); +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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_148, x_140, x_146); +lean_ctor_set(x_145, 1, x_149); +x_39 = x_146; +x_40 = x_145; +goto block_50; +} +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); -x_152 = lean_ctor_get(x_150, 0); -lean_inc(x_152); -lean_dec(x_150); -x_153 = !lean_is_exclusive(x_151); -if (x_153 == 0) -{ -lean_object* x_154; lean_object* x_155; -x_154 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -x_155 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_154, x_134, x_152); -lean_ctor_set(x_151, 1, x_155); -x_39 = x_152; -x_40 = x_151; -goto block_49; -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_156 = lean_ctor_get(x_151, 0); -x_157 = lean_ctor_get(x_151, 1); -lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_151); -lean_inc(x_152); -x_158 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_157, x_134, x_152); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_158); -x_39 = x_152; -x_40 = x_159; -goto block_49; +lean_inc(x_150); +lean_dec(x_145); +lean_inc(x_146); +x_152 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_151, x_140, 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_39 = x_146; +x_40 = x_153; +goto block_50; } } else { -lean_object* x_160; -lean_dec(x_134); -x_160 = lean_ctor_get(x_149, 0); -lean_inc(x_160); -lean_dec(x_149); -x_39 = x_160; +lean_object* x_154; +lean_dec(x_140); +x_154 = lean_ctor_get(x_143, 0); +lean_inc(x_154); +lean_dec(x_143); +x_39 = x_154; x_40 = x_3; -goto block_49; +goto block_50; +} +} +} +else +{ +lean_object* x_155; +x_155 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_51, x_140); +lean_dec(x_51); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +lean_inc(x_140); +lean_inc(x_1); +x_156 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_140, x_3); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +x_158 = lean_ctor_get(x_156, 0); +lean_inc(x_158); +lean_dec(x_156); +x_159 = !lean_is_exclusive(x_157); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; +x_160 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +x_161 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_160, x_140, x_158); +lean_ctor_set(x_157, 1, x_161); +x_39 = x_158; +x_40 = x_157; +goto block_50; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_157, 0); +x_163 = lean_ctor_get(x_157, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_157); +lean_inc(x_158); +x_164 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_163, x_140, x_158); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_164); +x_39 = x_158; +x_40 = x_165; +goto block_50; +} +} +else +{ +lean_object* x_166; +lean_dec(x_140); +x_166 = lean_ctor_get(x_155, 0); +lean_inc(x_166); +lean_dec(x_155); +x_39 = x_166; +x_40 = x_3; +goto block_50; } } } } else { -lean_object* x_161; lean_object* x_162; -lean_dec(x_50); +lean_object* x_167; lean_object* x_168; +lean_dec(x_51); lean_dec(x_38); lean_dec(x_2); lean_dec(x_1); -x_161 = lean_ctor_get(x_51, 0); -lean_inc(x_161); -lean_dec(x_51); -x_162 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_3); -return x_162; +x_167 = lean_ctor_get(x_52, 0); +lean_inc(x_167); +lean_dec(x_52); +x_168 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_168, 0, x_167); +lean_ctor_set(x_168, 1, x_3); +return x_168; } -block_49: +block_50: { -lean_object* x_41; uint8_t x_42; -x_41 = lean_ctor_get(x_1, 6); -lean_inc(x_41); +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_1, 6); +lean_inc(x_43); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_40, 0); lean_inc(x_39); -x_44 = lean_apply_3(x_41, x_43, x_38, x_39); +x_44 = lean_apply_3(x_43, x_42, x_38, x_39); lean_ctor_set(x_40, 0, x_44); x_4 = x_39; x_5 = x_40; @@ -9611,1188 +9931,1191 @@ goto block_15; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; x_45 = lean_ctor_get(x_40, 0); x_46 = lean_ctor_get(x_40, 1); lean_inc(x_46); lean_inc(x_45); lean_dec(x_40); +x_47 = lean_ctor_get(x_1, 6); +lean_inc(x_47); +lean_dec(x_1); lean_inc(x_39); -x_47 = lean_apply_3(x_41, x_45, x_38, 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_46); +x_48 = lean_apply_3(x_47, x_45, x_38, x_39); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_46); x_4 = x_39; -x_5 = x_48; +x_5 = x_49; goto block_15; } } } case 3: { -lean_object* x_163; uint8_t x_164; -x_163 = lean_ctor_get(x_2, 0); -lean_inc(x_163); -x_164 = !lean_is_exclusive(x_3); -if (x_164 == 0) +lean_object* x_169; uint8_t x_170; +x_169 = lean_ctor_get(x_2, 0); +lean_inc(x_169); +x_170 = !lean_is_exclusive(x_3); +if (x_170 == 0) { -lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_165 = lean_ctor_get(x_3, 0); -x_166 = l_Lean_AbstractMetavarContext_instantiateLevelMVars___main___rarg(x_1, x_163, x_165); -x_167 = !lean_is_exclusive(x_166); -if (x_167 == 0) +lean_object* x_171; lean_object* x_172; uint8_t x_173; +x_171 = lean_ctor_get(x_3, 0); +x_172 = l_Lean_AbstractMetavarContext_instantiateLevelMVars___main___rarg(x_1, x_169, x_171); +x_173 = !lean_is_exclusive(x_172); +if (x_173 == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_166, 0); -x_169 = lean_ctor_get(x_166, 1); -lean_ctor_set(x_3, 0, x_169); -x_170 = lean_expr_update_sort(x_2, x_168); -lean_ctor_set(x_166, 1, x_3); -lean_ctor_set(x_166, 0, x_170); -return x_166; +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_172, 0); +x_175 = lean_ctor_get(x_172, 1); +lean_ctor_set(x_3, 0, x_175); +x_176 = lean_expr_update_sort(x_2, x_174); +lean_ctor_set(x_172, 1, x_3); +lean_ctor_set(x_172, 0, x_176); +return x_172; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_171 = lean_ctor_get(x_166, 0); -x_172 = lean_ctor_get(x_166, 1); -lean_inc(x_172); -lean_inc(x_171); -lean_dec(x_166); -lean_ctor_set(x_3, 0, x_172); -x_173 = lean_expr_update_sort(x_2, x_171); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_3); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_175 = lean_ctor_get(x_3, 0); -x_176 = lean_ctor_get(x_3, 1); -lean_inc(x_176); -lean_inc(x_175); -lean_dec(x_3); -x_177 = l_Lean_AbstractMetavarContext_instantiateLevelMVars___main___rarg(x_1, x_163, x_175); -x_178 = lean_ctor_get(x_177, 0); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_177 = lean_ctor_get(x_172, 0); +x_178 = lean_ctor_get(x_172, 1); lean_inc(x_178); -x_179 = lean_ctor_get(x_177, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_180 = x_177; -} else { - lean_dec_ref(x_177); - x_180 = lean_box(0); +lean_inc(x_177); +lean_dec(x_172); +lean_ctor_set(x_3, 0, x_178); +x_179 = lean_expr_update_sort(x_2, x_177); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_3); +return x_180; } -x_181 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_176); -x_182 = lean_expr_update_sort(x_2, x_178); -if (lean_is_scalar(x_180)) { - x_183 = lean_alloc_ctor(0, 2, 0); -} else { - x_183 = x_180; } -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_181); -return x_183; +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_181 = lean_ctor_get(x_3, 0); +x_182 = lean_ctor_get(x_3, 1); +lean_inc(x_182); +lean_inc(x_181); +lean_dec(x_3); +x_183 = l_Lean_AbstractMetavarContext_instantiateLevelMVars___main___rarg(x_1, x_169, x_181); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_186 = x_183; +} else { + lean_dec_ref(x_183); + x_186 = lean_box(0); +} +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_182); +x_188 = lean_expr_update_sort(x_2, x_184); +if (lean_is_scalar(x_186)) { + x_189 = lean_alloc_ctor(0, 2, 0); +} else { + x_189 = x_186; +} +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +return x_189; } } case 4: { -lean_object* x_184; lean_object* x_185; uint8_t x_186; -x_184 = lean_ctor_get(x_2, 1); -lean_inc(x_184); -x_185 = l_List_mapM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__3___rarg(x_1, x_184, x_3); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) +lean_object* x_190; lean_object* x_191; uint8_t x_192; +x_190 = lean_ctor_get(x_2, 1); +lean_inc(x_190); +x_191 = l_List_mapM___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__3___rarg(x_1, x_190, x_3); +x_192 = !lean_is_exclusive(x_191); +if (x_192 == 0) { -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_185, 0); -x_188 = lean_expr_update_const(x_2, x_187); -lean_ctor_set(x_185, 0, x_188); -return x_185; +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_191, 0); +x_194 = lean_expr_update_const(x_2, x_193); +lean_ctor_set(x_191, 0, x_194); +return x_191; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_189 = lean_ctor_get(x_185, 0); -x_190 = lean_ctor_get(x_185, 1); -lean_inc(x_190); -lean_inc(x_189); -lean_dec(x_185); -x_191 = lean_expr_update_const(x_2, x_189); -x_192 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_190); -return x_192; +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_195 = lean_ctor_get(x_191, 0); +x_196 = lean_ctor_get(x_191, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_191); +x_197 = lean_expr_update_const(x_2, x_195); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +return x_198; } } case 5: { -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_193 = lean_unsigned_to_nat(0u); -x_194 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_193); -x_195 = lean_mk_empty_array_with_capacity(x_194); -lean_dec(x_194); -x_196 = l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__5___rarg(x_1, x_2, x_195, x_3); -return x_196; +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_199 = lean_unsigned_to_nat(0u); +x_200 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_199); +x_201 = lean_mk_empty_array_with_capacity(x_200); +lean_dec(x_200); +x_202 = l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___spec__5___rarg(x_1, x_2, x_201, x_3); +return x_202; } case 6: { -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_242; -x_197 = lean_ctor_get(x_2, 1); -lean_inc(x_197); -x_198 = lean_ctor_get(x_2, 2); -lean_inc(x_198); -x_242 = lean_expr_has_expr_mvar(x_197); -if (x_242 == 0) +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_248; +x_203 = lean_ctor_get(x_2, 1); +lean_inc(x_203); +x_204 = lean_ctor_get(x_2, 2); +lean_inc(x_204); +x_248 = lean_expr_has_expr_mvar(x_203); +if (x_248 == 0) { -uint8_t x_243; -x_243 = lean_expr_has_level_mvar(x_197); -if (x_243 == 0) -{ -x_199 = x_197; -x_200 = x_3; -goto block_241; -} -else -{ -lean_object* x_244; lean_object* x_245; -x_244 = lean_ctor_get(x_3, 1); -lean_inc(x_244); -x_245 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_244, x_197); -lean_dec(x_244); -if (lean_obj_tag(x_245) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; -lean_inc(x_197); -lean_inc(x_1); -x_246 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_197, x_3); -x_247 = lean_ctor_get(x_246, 1); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 0); -lean_inc(x_248); -lean_dec(x_246); -x_249 = !lean_is_exclusive(x_247); +uint8_t x_249; +x_249 = lean_expr_has_level_mvar(x_203); if (x_249 == 0) { +x_205 = x_203; +x_206 = x_3; +goto block_247; +} +else +{ lean_object* x_250; lean_object* x_251; -x_250 = lean_ctor_get(x_247, 1); -lean_inc(x_248); -x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_250, x_197, x_248); -lean_ctor_set(x_247, 1, x_251); -x_199 = x_248; -x_200 = x_247; -goto block_241; -} -else +x_250 = lean_ctor_get(x_3, 1); +lean_inc(x_250); +x_251 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_250, x_203); +lean_dec(x_250); +if (lean_obj_tag(x_251) == 0) { -lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_252 = lean_ctor_get(x_247, 0); -x_253 = lean_ctor_get(x_247, 1); -lean_inc(x_253); -lean_inc(x_252); -lean_dec(x_247); -lean_inc(x_248); -x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_253, x_197, x_248); -x_255 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_255, 0, x_252); -lean_ctor_set(x_255, 1, x_254); -x_199 = x_248; -x_200 = x_255; -goto block_241; -} -} -else -{ -lean_object* x_256; -lean_dec(x_197); -x_256 = lean_ctor_get(x_245, 0); -lean_inc(x_256); -lean_dec(x_245); -x_199 = x_256; -x_200 = x_3; -goto block_241; -} -} -} -else -{ -lean_object* x_257; lean_object* x_258; -x_257 = lean_ctor_get(x_3, 1); -lean_inc(x_257); -x_258 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_257, x_197); -lean_dec(x_257); -if (lean_obj_tag(x_258) == 0) -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; -lean_inc(x_197); +lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; +lean_inc(x_203); lean_inc(x_1); -x_259 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_197, x_3); -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) +x_252 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_203, x_3); +x_253 = lean_ctor_get(x_252, 1); +lean_inc(x_253); +x_254 = lean_ctor_get(x_252, 0); +lean_inc(x_254); +lean_dec(x_252); +x_255 = !lean_is_exclusive(x_253); +if (x_255 == 0) +{ +lean_object* x_256; lean_object* x_257; +x_256 = lean_ctor_get(x_253, 1); +lean_inc(x_254); +x_257 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_256, x_203, x_254); +lean_ctor_set(x_253, 1, x_257); +x_205 = x_254; +x_206 = x_253; +goto block_247; +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_258 = lean_ctor_get(x_253, 0); +x_259 = lean_ctor_get(x_253, 1); +lean_inc(x_259); +lean_inc(x_258); +lean_dec(x_253); +lean_inc(x_254); +x_260 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_259, x_203, x_254); +x_261 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_261, 0, x_258); +lean_ctor_set(x_261, 1, x_260); +x_205 = x_254; +x_206 = x_261; +goto block_247; +} +} +else +{ +lean_object* x_262; +lean_dec(x_203); +x_262 = lean_ctor_get(x_251, 0); +lean_inc(x_262); +lean_dec(x_251); +x_205 = x_262; +x_206 = x_3; +goto block_247; +} +} +} +else { lean_object* x_263; lean_object* x_264; -x_263 = lean_ctor_get(x_260, 1); -lean_inc(x_261); -x_264 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_263, x_197, x_261); -lean_ctor_set(x_260, 1, x_264); -x_199 = x_261; -x_200 = x_260; -goto block_241; -} -else +x_263 = lean_ctor_get(x_3, 1); +lean_inc(x_263); +x_264 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_263, x_203); +lean_dec(x_263); +if (lean_obj_tag(x_264) == 0) { -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_265 = lean_ctor_get(x_260, 0); -x_266 = lean_ctor_get(x_260, 1); +lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; +lean_inc(x_203); +lean_inc(x_1); +x_265 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_203, x_3); +x_266 = lean_ctor_get(x_265, 1); lean_inc(x_266); -lean_inc(x_265); -lean_dec(x_260); -lean_inc(x_261); -x_267 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_266, x_197, x_261); -x_268 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_268, 0, x_265); -lean_ctor_set(x_268, 1, x_267); -x_199 = x_261; -x_200 = x_268; -goto block_241; +x_267 = lean_ctor_get(x_265, 0); +lean_inc(x_267); +lean_dec(x_265); +x_268 = !lean_is_exclusive(x_266); +if (x_268 == 0) +{ +lean_object* x_269; lean_object* x_270; +x_269 = lean_ctor_get(x_266, 1); +lean_inc(x_267); +x_270 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_269, x_203, x_267); +lean_ctor_set(x_266, 1, x_270); +x_205 = x_267; +x_206 = x_266; +goto block_247; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_271 = lean_ctor_get(x_266, 0); +x_272 = lean_ctor_get(x_266, 1); +lean_inc(x_272); +lean_inc(x_271); +lean_dec(x_266); +lean_inc(x_267); +x_273 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_272, x_203, x_267); +x_274 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_274, 0, x_271); +lean_ctor_set(x_274, 1, x_273); +x_205 = x_267; +x_206 = x_274; +goto block_247; } } else { -lean_object* x_269; -lean_dec(x_197); -x_269 = lean_ctor_get(x_258, 0); -lean_inc(x_269); -lean_dec(x_258); -x_199 = x_269; -x_200 = x_3; -goto block_241; +lean_object* x_275; +lean_dec(x_203); +x_275 = lean_ctor_get(x_264, 0); +lean_inc(x_275); +lean_dec(x_264); +x_205 = x_275; +x_206 = x_3; +goto block_247; } } -block_241: +block_247: { -lean_object* x_201; lean_object* x_202; uint8_t x_213; -x_213 = lean_expr_has_expr_mvar(x_198); -if (x_213 == 0) +lean_object* x_207; lean_object* x_208; uint8_t x_219; +x_219 = lean_expr_has_expr_mvar(x_204); +if (x_219 == 0) { -uint8_t x_214; -x_214 = lean_expr_has_level_mvar(x_198); -if (x_214 == 0) -{ -lean_dec(x_1); -x_201 = x_198; -x_202 = x_200; -goto block_212; -} -else -{ -lean_object* x_215; lean_object* x_216; -x_215 = lean_ctor_get(x_200, 1); -lean_inc(x_215); -x_216 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_215, x_198); -lean_dec(x_215); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; -lean_inc(x_198); -x_217 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_198, x_200); -x_218 = lean_ctor_get(x_217, 1); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 0); -lean_inc(x_219); -lean_dec(x_217); -x_220 = !lean_is_exclusive(x_218); +uint8_t x_220; +x_220 = lean_expr_has_level_mvar(x_204); if (x_220 == 0) { -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_218, 1); -lean_inc(x_219); -x_222 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_221, x_198, x_219); -lean_ctor_set(x_218, 1, x_222); -x_201 = x_219; -x_202 = x_218; -goto block_212; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_223 = lean_ctor_get(x_218, 0); -x_224 = lean_ctor_get(x_218, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_218); -lean_inc(x_219); -x_225 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_224, x_198, x_219); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_223); -lean_ctor_set(x_226, 1, x_225); -x_201 = x_219; -x_202 = x_226; -goto block_212; -} -} -else -{ -lean_object* x_227; -lean_dec(x_198); lean_dec(x_1); -x_227 = lean_ctor_get(x_216, 0); -lean_inc(x_227); -lean_dec(x_216); -x_201 = x_227; -x_202 = x_200; -goto block_212; +x_207 = x_204; +x_208 = x_206; +goto block_218; } +else +{ +lean_object* x_221; lean_object* x_222; +x_221 = lean_ctor_get(x_206, 1); +lean_inc(x_221); +x_222 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_221, x_204); +lean_dec(x_221); +if (lean_obj_tag(x_222) == 0) +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; +lean_inc(x_204); +x_223 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_204, x_206); +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 0); +lean_inc(x_225); +lean_dec(x_223); +x_226 = !lean_is_exclusive(x_224); +if (x_226 == 0) +{ +lean_object* x_227; lean_object* x_228; +x_227 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +x_228 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_227, x_204, x_225); +lean_ctor_set(x_224, 1, x_228); +x_207 = x_225; +x_208 = x_224; +goto block_218; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_229 = lean_ctor_get(x_224, 0); +x_230 = lean_ctor_get(x_224, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_224); +lean_inc(x_225); +x_231 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_230, x_204, x_225); +x_232 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_231); +x_207 = x_225; +x_208 = x_232; +goto block_218; } } else { -lean_object* x_228; lean_object* x_229; -x_228 = lean_ctor_get(x_200, 1); -lean_inc(x_228); -x_229 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_228, x_198); -lean_dec(x_228); -if (lean_obj_tag(x_229) == 0) -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; uint8_t x_233; -lean_inc(x_198); -x_230 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_198, x_200); -x_231 = lean_ctor_get(x_230, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_230, 0); -lean_inc(x_232); -lean_dec(x_230); -x_233 = !lean_is_exclusive(x_231); -if (x_233 == 0) +lean_object* x_233; +lean_dec(x_204); +lean_dec(x_1); +x_233 = lean_ctor_get(x_222, 0); +lean_inc(x_233); +lean_dec(x_222); +x_207 = x_233; +x_208 = x_206; +goto block_218; +} +} +} +else { lean_object* x_234; lean_object* x_235; -x_234 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_234, x_198, x_232); -lean_ctor_set(x_231, 1, x_235); -x_201 = x_232; -x_202 = x_231; -goto block_212; -} -else +x_234 = lean_ctor_get(x_206, 1); +lean_inc(x_234); +x_235 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_234, x_204); +lean_dec(x_234); +if (lean_obj_tag(x_235) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_236 = lean_ctor_get(x_231, 0); -x_237 = lean_ctor_get(x_231, 1); +lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_204); +x_236 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_204, x_206); +x_237 = lean_ctor_get(x_236, 1); lean_inc(x_237); -lean_inc(x_236); -lean_dec(x_231); -lean_inc(x_232); -x_238 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_237, x_198, x_232); -x_239 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_239, 0, x_236); -lean_ctor_set(x_239, 1, x_238); -x_201 = x_232; -x_202 = x_239; -goto block_212; +x_238 = lean_ctor_get(x_236, 0); +lean_inc(x_238); +lean_dec(x_236); +x_239 = !lean_is_exclusive(x_237); +if (x_239 == 0) +{ +lean_object* x_240; lean_object* x_241; +x_240 = lean_ctor_get(x_237, 1); +lean_inc(x_238); +x_241 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_240, x_204, x_238); +lean_ctor_set(x_237, 1, x_241); +x_207 = x_238; +x_208 = x_237; +goto block_218; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_242 = lean_ctor_get(x_237, 0); +x_243 = lean_ctor_get(x_237, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_237); +lean_inc(x_238); +x_244 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_243, x_204, x_238); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_242); +lean_ctor_set(x_245, 1, x_244); +x_207 = x_238; +x_208 = x_245; +goto block_218; } } else { -lean_object* x_240; -lean_dec(x_198); +lean_object* x_246; +lean_dec(x_204); lean_dec(x_1); -x_240 = lean_ctor_get(x_229, 0); -lean_inc(x_240); -lean_dec(x_229); -x_201 = x_240; -x_202 = x_200; -goto block_212; +x_246 = lean_ctor_get(x_235, 0); +lean_inc(x_246); +lean_dec(x_235); +x_207 = x_246; +x_208 = x_206; +goto block_218; } } -block_212: +block_218: { if (lean_obj_tag(x_2) == 6) { -uint8_t x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -x_204 = lean_expr_update_lambda(x_2, x_203, x_199, x_201); -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_202); -return x_205; +uint8_t x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +x_210 = lean_expr_update_lambda(x_2, x_209, x_205, x_207); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_208); +return x_211; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_201); -lean_dec(x_199); +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_dec(x_207); +lean_dec(x_205); lean_dec(x_2); -x_206 = l_Lean_Expr_constName___closed__1; -x_207 = lean_unsigned_to_nat(471u); -x_208 = lean_unsigned_to_nat(18u); -x_209 = l_Lean_Expr_updateLambda_x21___closed__1; -x_210 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_206, x_207, x_208, x_209); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_202); -return x_211; +x_212 = l_Lean_Expr_constName_x21___closed__1; +x_213 = lean_unsigned_to_nat(475u); +x_214 = lean_unsigned_to_nat(18u); +x_215 = l_Lean_Expr_updateLambda_x21___closed__1; +x_216 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_212, x_213, x_214, 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_208); +return x_217; } } } } case 7: { -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; uint8_t x_315; -x_270 = lean_ctor_get(x_2, 1); -lean_inc(x_270); -x_271 = lean_ctor_get(x_2, 2); -lean_inc(x_271); -x_315 = lean_expr_has_expr_mvar(x_270); -if (x_315 == 0) +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_321; +x_276 = lean_ctor_get(x_2, 1); +lean_inc(x_276); +x_277 = lean_ctor_get(x_2, 2); +lean_inc(x_277); +x_321 = lean_expr_has_expr_mvar(x_276); +if (x_321 == 0) { -uint8_t x_316; -x_316 = lean_expr_has_level_mvar(x_270); -if (x_316 == 0) -{ -x_272 = x_270; -x_273 = x_3; -goto block_314; -} -else -{ -lean_object* x_317; lean_object* x_318; -x_317 = lean_ctor_get(x_3, 1); -lean_inc(x_317); -x_318 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_317, x_270); -lean_dec(x_317); -if (lean_obj_tag(x_318) == 0) -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; -lean_inc(x_270); -lean_inc(x_1); -x_319 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_270, x_3); -x_320 = lean_ctor_get(x_319, 1); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 0); -lean_inc(x_321); -lean_dec(x_319); -x_322 = !lean_is_exclusive(x_320); +uint8_t x_322; +x_322 = lean_expr_has_level_mvar(x_276); if (x_322 == 0) { +x_278 = x_276; +x_279 = x_3; +goto block_320; +} +else +{ lean_object* x_323; lean_object* x_324; -x_323 = lean_ctor_get(x_320, 1); -lean_inc(x_321); -x_324 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_323, x_270, x_321); -lean_ctor_set(x_320, 1, x_324); -x_272 = x_321; -x_273 = x_320; -goto block_314; -} -else +x_323 = lean_ctor_get(x_3, 1); +lean_inc(x_323); +x_324 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_323, x_276); +lean_dec(x_323); +if (lean_obj_tag(x_324) == 0) { -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -x_325 = lean_ctor_get(x_320, 0); -x_326 = lean_ctor_get(x_320, 1); -lean_inc(x_326); -lean_inc(x_325); -lean_dec(x_320); -lean_inc(x_321); -x_327 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_326, x_270, x_321); -x_328 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_328, 0, x_325); -lean_ctor_set(x_328, 1, x_327); -x_272 = x_321; -x_273 = x_328; -goto block_314; -} -} -else -{ -lean_object* x_329; -lean_dec(x_270); -x_329 = lean_ctor_get(x_318, 0); -lean_inc(x_329); -lean_dec(x_318); -x_272 = x_329; -x_273 = x_3; -goto block_314; -} -} -} -else -{ -lean_object* x_330; lean_object* x_331; -x_330 = lean_ctor_get(x_3, 1); -lean_inc(x_330); -x_331 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_330, x_270); -lean_dec(x_330); -if (lean_obj_tag(x_331) == 0) -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; -lean_inc(x_270); +lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; +lean_inc(x_276); lean_inc(x_1); -x_332 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_270, x_3); -x_333 = lean_ctor_get(x_332, 1); -lean_inc(x_333); -x_334 = lean_ctor_get(x_332, 0); -lean_inc(x_334); -lean_dec(x_332); -x_335 = !lean_is_exclusive(x_333); -if (x_335 == 0) +x_325 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_276, x_3); +x_326 = lean_ctor_get(x_325, 1); +lean_inc(x_326); +x_327 = lean_ctor_get(x_325, 0); +lean_inc(x_327); +lean_dec(x_325); +x_328 = !lean_is_exclusive(x_326); +if (x_328 == 0) +{ +lean_object* x_329; lean_object* x_330; +x_329 = lean_ctor_get(x_326, 1); +lean_inc(x_327); +x_330 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_329, x_276, x_327); +lean_ctor_set(x_326, 1, x_330); +x_278 = x_327; +x_279 = x_326; +goto block_320; +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; +x_331 = lean_ctor_get(x_326, 0); +x_332 = lean_ctor_get(x_326, 1); +lean_inc(x_332); +lean_inc(x_331); +lean_dec(x_326); +lean_inc(x_327); +x_333 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_332, x_276, x_327); +x_334 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_334, 0, x_331); +lean_ctor_set(x_334, 1, x_333); +x_278 = x_327; +x_279 = x_334; +goto block_320; +} +} +else +{ +lean_object* x_335; +lean_dec(x_276); +x_335 = lean_ctor_get(x_324, 0); +lean_inc(x_335); +lean_dec(x_324); +x_278 = x_335; +x_279 = x_3; +goto block_320; +} +} +} +else { lean_object* x_336; lean_object* x_337; -x_336 = lean_ctor_get(x_333, 1); -lean_inc(x_334); -x_337 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_336, x_270, x_334); -lean_ctor_set(x_333, 1, x_337); -x_272 = x_334; -x_273 = x_333; -goto block_314; -} -else +x_336 = lean_ctor_get(x_3, 1); +lean_inc(x_336); +x_337 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_336, x_276); +lean_dec(x_336); +if (lean_obj_tag(x_337) == 0) { -lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_338 = lean_ctor_get(x_333, 0); -x_339 = lean_ctor_get(x_333, 1); +lean_object* x_338; lean_object* x_339; lean_object* x_340; uint8_t x_341; +lean_inc(x_276); +lean_inc(x_1); +x_338 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_276, x_3); +x_339 = lean_ctor_get(x_338, 1); lean_inc(x_339); -lean_inc(x_338); -lean_dec(x_333); -lean_inc(x_334); -x_340 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_339, x_270, x_334); -x_341 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_341, 0, x_338); -lean_ctor_set(x_341, 1, x_340); -x_272 = x_334; -x_273 = x_341; -goto block_314; +x_340 = lean_ctor_get(x_338, 0); +lean_inc(x_340); +lean_dec(x_338); +x_341 = !lean_is_exclusive(x_339); +if (x_341 == 0) +{ +lean_object* x_342; lean_object* x_343; +x_342 = lean_ctor_get(x_339, 1); +lean_inc(x_340); +x_343 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_342, x_276, x_340); +lean_ctor_set(x_339, 1, x_343); +x_278 = x_340; +x_279 = x_339; +goto block_320; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_344 = lean_ctor_get(x_339, 0); +x_345 = lean_ctor_get(x_339, 1); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_339); +lean_inc(x_340); +x_346 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_345, x_276, x_340); +x_347 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_347, 0, x_344); +lean_ctor_set(x_347, 1, x_346); +x_278 = x_340; +x_279 = x_347; +goto block_320; } } else { -lean_object* x_342; -lean_dec(x_270); -x_342 = lean_ctor_get(x_331, 0); -lean_inc(x_342); -lean_dec(x_331); -x_272 = x_342; -x_273 = x_3; -goto block_314; +lean_object* x_348; +lean_dec(x_276); +x_348 = lean_ctor_get(x_337, 0); +lean_inc(x_348); +lean_dec(x_337); +x_278 = x_348; +x_279 = x_3; +goto block_320; } } -block_314: +block_320: { -lean_object* x_274; lean_object* x_275; uint8_t x_286; -x_286 = lean_expr_has_expr_mvar(x_271); -if (x_286 == 0) +lean_object* x_280; lean_object* x_281; uint8_t x_292; +x_292 = lean_expr_has_expr_mvar(x_277); +if (x_292 == 0) { -uint8_t x_287; -x_287 = lean_expr_has_level_mvar(x_271); -if (x_287 == 0) -{ -lean_dec(x_1); -x_274 = x_271; -x_275 = x_273; -goto block_285; -} -else -{ -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_273, 1); -lean_inc(x_288); -x_289 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_288, x_271); -lean_dec(x_288); -if (lean_obj_tag(x_289) == 0) -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; -lean_inc(x_271); -x_290 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_271, x_273); -x_291 = lean_ctor_get(x_290, 1); -lean_inc(x_291); -x_292 = lean_ctor_get(x_290, 0); -lean_inc(x_292); -lean_dec(x_290); -x_293 = !lean_is_exclusive(x_291); +uint8_t x_293; +x_293 = lean_expr_has_level_mvar(x_277); if (x_293 == 0) { -lean_object* x_294; lean_object* x_295; -x_294 = lean_ctor_get(x_291, 1); -lean_inc(x_292); -x_295 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_294, x_271, x_292); -lean_ctor_set(x_291, 1, x_295); -x_274 = x_292; -x_275 = x_291; -goto block_285; -} -else -{ -lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_296 = lean_ctor_get(x_291, 0); -x_297 = lean_ctor_get(x_291, 1); -lean_inc(x_297); -lean_inc(x_296); -lean_dec(x_291); -lean_inc(x_292); -x_298 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_297, x_271, x_292); -x_299 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_299, 0, x_296); -lean_ctor_set(x_299, 1, x_298); -x_274 = x_292; -x_275 = x_299; -goto block_285; -} -} -else -{ -lean_object* x_300; -lean_dec(x_271); lean_dec(x_1); -x_300 = lean_ctor_get(x_289, 0); -lean_inc(x_300); -lean_dec(x_289); -x_274 = x_300; -x_275 = x_273; -goto block_285; +x_280 = x_277; +x_281 = x_279; +goto block_291; } +else +{ +lean_object* x_294; lean_object* x_295; +x_294 = lean_ctor_get(x_279, 1); +lean_inc(x_294); +x_295 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_294, x_277); +lean_dec(x_294); +if (lean_obj_tag(x_295) == 0) +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; +lean_inc(x_277); +x_296 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_277, x_279); +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 0); +lean_inc(x_298); +lean_dec(x_296); +x_299 = !lean_is_exclusive(x_297); +if (x_299 == 0) +{ +lean_object* x_300; lean_object* x_301; +x_300 = lean_ctor_get(x_297, 1); +lean_inc(x_298); +x_301 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_300, x_277, x_298); +lean_ctor_set(x_297, 1, x_301); +x_280 = x_298; +x_281 = x_297; +goto block_291; +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +x_302 = lean_ctor_get(x_297, 0); +x_303 = lean_ctor_get(x_297, 1); +lean_inc(x_303); +lean_inc(x_302); +lean_dec(x_297); +lean_inc(x_298); +x_304 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_303, x_277, x_298); +x_305 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_305, 0, x_302); +lean_ctor_set(x_305, 1, x_304); +x_280 = x_298; +x_281 = x_305; +goto block_291; } } else { -lean_object* x_301; lean_object* x_302; -x_301 = lean_ctor_get(x_273, 1); -lean_inc(x_301); -x_302 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_301, x_271); -lean_dec(x_301); -if (lean_obj_tag(x_302) == 0) -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; uint8_t x_306; -lean_inc(x_271); -x_303 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_271, x_273); -x_304 = lean_ctor_get(x_303, 1); -lean_inc(x_304); -x_305 = lean_ctor_get(x_303, 0); -lean_inc(x_305); -lean_dec(x_303); -x_306 = !lean_is_exclusive(x_304); -if (x_306 == 0) +lean_object* x_306; +lean_dec(x_277); +lean_dec(x_1); +x_306 = lean_ctor_get(x_295, 0); +lean_inc(x_306); +lean_dec(x_295); +x_280 = x_306; +x_281 = x_279; +goto block_291; +} +} +} +else { lean_object* x_307; lean_object* x_308; -x_307 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -x_308 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_307, x_271, x_305); -lean_ctor_set(x_304, 1, x_308); -x_274 = x_305; -x_275 = x_304; -goto block_285; -} -else +x_307 = lean_ctor_get(x_279, 1); +lean_inc(x_307); +x_308 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_307, x_277); +lean_dec(x_307); +if (lean_obj_tag(x_308) == 0) { -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_309 = lean_ctor_get(x_304, 0); -x_310 = lean_ctor_get(x_304, 1); +lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; +lean_inc(x_277); +x_309 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_277, x_279); +x_310 = lean_ctor_get(x_309, 1); lean_inc(x_310); -lean_inc(x_309); -lean_dec(x_304); -lean_inc(x_305); -x_311 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_310, x_271, x_305); -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_309); -lean_ctor_set(x_312, 1, x_311); -x_274 = x_305; -x_275 = x_312; -goto block_285; +x_311 = lean_ctor_get(x_309, 0); +lean_inc(x_311); +lean_dec(x_309); +x_312 = !lean_is_exclusive(x_310); +if (x_312 == 0) +{ +lean_object* x_313; lean_object* x_314; +x_313 = lean_ctor_get(x_310, 1); +lean_inc(x_311); +x_314 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_313, x_277, x_311); +lean_ctor_set(x_310, 1, x_314); +x_280 = x_311; +x_281 = x_310; +goto block_291; +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +x_315 = lean_ctor_get(x_310, 0); +x_316 = lean_ctor_get(x_310, 1); +lean_inc(x_316); +lean_inc(x_315); +lean_dec(x_310); +lean_inc(x_311); +x_317 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_316, x_277, x_311); +x_318 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_317); +x_280 = x_311; +x_281 = x_318; +goto block_291; } } else { -lean_object* x_313; -lean_dec(x_271); +lean_object* x_319; +lean_dec(x_277); lean_dec(x_1); -x_313 = lean_ctor_get(x_302, 0); -lean_inc(x_313); -lean_dec(x_302); -x_274 = x_313; -x_275 = x_273; -goto block_285; +x_319 = lean_ctor_get(x_308, 0); +lean_inc(x_319); +lean_dec(x_308); +x_280 = x_319; +x_281 = x_279; +goto block_291; } } -block_285: +block_291: { if (lean_obj_tag(x_2) == 7) { -uint8_t x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); -x_277 = lean_expr_update_forall(x_2, x_276, x_272, x_274); -x_278 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_278, 0, x_277); -lean_ctor_set(x_278, 1, x_275); -return x_278; +uint8_t x_282; lean_object* x_283; lean_object* x_284; +x_282 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +x_283 = lean_expr_update_forall(x_2, x_282, x_278, x_280); +x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_284, 0, x_283); +lean_ctor_set(x_284, 1, x_281); +return x_284; } else { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -lean_dec(x_274); -lean_dec(x_272); +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +lean_dec(x_280); +lean_dec(x_278); lean_dec(x_2); -x_279 = l_Lean_Expr_constName___closed__1; -x_280 = lean_unsigned_to_nat(457u); -x_281 = lean_unsigned_to_nat(22u); -x_282 = l_Lean_Expr_updateForall_x21___closed__1; -x_283 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_279, x_280, x_281, x_282); -x_284 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_275); -return x_284; +x_285 = l_Lean_Expr_constName_x21___closed__1; +x_286 = lean_unsigned_to_nat(461u); +x_287 = lean_unsigned_to_nat(22u); +x_288 = l_Lean_Expr_updateForall_x21___closed__1; +x_289 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_285, x_286, x_287, x_288); +x_290 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_290, 0, x_289); +lean_ctor_set(x_290, 1, x_281); +return x_290; } } } } case 8: { -lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_419; -x_343 = lean_ctor_get(x_2, 1); -lean_inc(x_343); -x_344 = lean_ctor_get(x_2, 2); -lean_inc(x_344); -x_345 = lean_ctor_get(x_2, 3); -lean_inc(x_345); -x_419 = lean_expr_has_expr_mvar(x_343); -if (x_419 == 0) +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_425; +x_349 = lean_ctor_get(x_2, 1); +lean_inc(x_349); +x_350 = lean_ctor_get(x_2, 2); +lean_inc(x_350); +x_351 = lean_ctor_get(x_2, 3); +lean_inc(x_351); +x_425 = lean_expr_has_expr_mvar(x_349); +if (x_425 == 0) { -uint8_t x_420; -x_420 = lean_expr_has_level_mvar(x_343); -if (x_420 == 0) -{ -x_346 = x_343; -x_347 = x_3; -goto block_418; -} -else -{ -lean_object* x_421; lean_object* x_422; -x_421 = lean_ctor_get(x_3, 1); -lean_inc(x_421); -x_422 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_421, x_343); -lean_dec(x_421); -if (lean_obj_tag(x_422) == 0) -{ -lean_object* x_423; lean_object* x_424; lean_object* x_425; uint8_t x_426; -lean_inc(x_343); -lean_inc(x_1); -x_423 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_343, x_3); -x_424 = lean_ctor_get(x_423, 1); -lean_inc(x_424); -x_425 = lean_ctor_get(x_423, 0); -lean_inc(x_425); -lean_dec(x_423); -x_426 = !lean_is_exclusive(x_424); +uint8_t x_426; +x_426 = lean_expr_has_level_mvar(x_349); if (x_426 == 0) { +x_352 = x_349; +x_353 = x_3; +goto block_424; +} +else +{ lean_object* x_427; lean_object* x_428; -x_427 = lean_ctor_get(x_424, 1); -lean_inc(x_425); -x_428 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_427, x_343, x_425); -lean_ctor_set(x_424, 1, x_428); -x_346 = x_425; -x_347 = x_424; -goto block_418; -} -else +x_427 = lean_ctor_get(x_3, 1); +lean_inc(x_427); +x_428 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_427, x_349); +lean_dec(x_427); +if (lean_obj_tag(x_428) == 0) { -lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; -x_429 = lean_ctor_get(x_424, 0); -x_430 = lean_ctor_get(x_424, 1); -lean_inc(x_430); -lean_inc(x_429); -lean_dec(x_424); -lean_inc(x_425); -x_431 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_430, x_343, x_425); -x_432 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_432, 0, x_429); -lean_ctor_set(x_432, 1, x_431); -x_346 = x_425; -x_347 = x_432; -goto block_418; -} -} -else -{ -lean_object* x_433; -lean_dec(x_343); -x_433 = lean_ctor_get(x_422, 0); -lean_inc(x_433); -lean_dec(x_422); -x_346 = x_433; -x_347 = x_3; -goto block_418; -} -} -} -else -{ -lean_object* x_434; lean_object* x_435; -x_434 = lean_ctor_get(x_3, 1); -lean_inc(x_434); -x_435 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_434, x_343); -lean_dec(x_434); -if (lean_obj_tag(x_435) == 0) -{ -lean_object* x_436; lean_object* x_437; lean_object* x_438; uint8_t x_439; -lean_inc(x_343); +lean_object* x_429; lean_object* x_430; lean_object* x_431; uint8_t x_432; +lean_inc(x_349); lean_inc(x_1); -x_436 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_343, x_3); -x_437 = lean_ctor_get(x_436, 1); -lean_inc(x_437); -x_438 = lean_ctor_get(x_436, 0); -lean_inc(x_438); -lean_dec(x_436); -x_439 = !lean_is_exclusive(x_437); -if (x_439 == 0) +x_429 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_349, x_3); +x_430 = lean_ctor_get(x_429, 1); +lean_inc(x_430); +x_431 = lean_ctor_get(x_429, 0); +lean_inc(x_431); +lean_dec(x_429); +x_432 = !lean_is_exclusive(x_430); +if (x_432 == 0) +{ +lean_object* x_433; lean_object* x_434; +x_433 = lean_ctor_get(x_430, 1); +lean_inc(x_431); +x_434 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_433, x_349, x_431); +lean_ctor_set(x_430, 1, x_434); +x_352 = x_431; +x_353 = x_430; +goto block_424; +} +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +x_435 = lean_ctor_get(x_430, 0); +x_436 = lean_ctor_get(x_430, 1); +lean_inc(x_436); +lean_inc(x_435); +lean_dec(x_430); +lean_inc(x_431); +x_437 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_436, x_349, x_431); +x_438 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_438, 0, x_435); +lean_ctor_set(x_438, 1, x_437); +x_352 = x_431; +x_353 = x_438; +goto block_424; +} +} +else +{ +lean_object* x_439; +lean_dec(x_349); +x_439 = lean_ctor_get(x_428, 0); +lean_inc(x_439); +lean_dec(x_428); +x_352 = x_439; +x_353 = x_3; +goto block_424; +} +} +} +else { lean_object* x_440; lean_object* x_441; -x_440 = lean_ctor_get(x_437, 1); -lean_inc(x_438); -x_441 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_440, x_343, x_438); -lean_ctor_set(x_437, 1, x_441); -x_346 = x_438; -x_347 = x_437; -goto block_418; -} -else +x_440 = lean_ctor_get(x_3, 1); +lean_inc(x_440); +x_441 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_440, x_349); +lean_dec(x_440); +if (lean_obj_tag(x_441) == 0) { -lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_442 = lean_ctor_get(x_437, 0); -x_443 = lean_ctor_get(x_437, 1); -lean_inc(x_443); -lean_inc(x_442); -lean_dec(x_437); -lean_inc(x_438); -x_444 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_443, x_343, x_438); -x_445 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_445, 0, x_442); -lean_ctor_set(x_445, 1, x_444); -x_346 = x_438; -x_347 = x_445; -goto block_418; -} -} -else -{ -lean_object* x_446; -lean_dec(x_343); -x_446 = lean_ctor_get(x_435, 0); -lean_inc(x_446); -lean_dec(x_435); -x_346 = x_446; -x_347 = x_3; -goto block_418; -} -} -block_418: -{ -lean_object* x_348; lean_object* x_349; uint8_t x_390; -x_390 = lean_expr_has_expr_mvar(x_344); -if (x_390 == 0) -{ -uint8_t x_391; -x_391 = lean_expr_has_level_mvar(x_344); -if (x_391 == 0) -{ -x_348 = x_344; -x_349 = x_347; -goto block_389; -} -else -{ -lean_object* x_392; lean_object* x_393; -x_392 = lean_ctor_get(x_347, 1); -lean_inc(x_392); -x_393 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_392, x_344); -lean_dec(x_392); -if (lean_obj_tag(x_393) == 0) -{ -lean_object* x_394; lean_object* x_395; lean_object* x_396; uint8_t x_397; -lean_inc(x_344); +lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; +lean_inc(x_349); lean_inc(x_1); -x_394 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_344, x_347); -x_395 = lean_ctor_get(x_394, 1); -lean_inc(x_395); -x_396 = lean_ctor_get(x_394, 0); -lean_inc(x_396); -lean_dec(x_394); -x_397 = !lean_is_exclusive(x_395); +x_442 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_349, x_3); +x_443 = lean_ctor_get(x_442, 1); +lean_inc(x_443); +x_444 = lean_ctor_get(x_442, 0); +lean_inc(x_444); +lean_dec(x_442); +x_445 = !lean_is_exclusive(x_443); +if (x_445 == 0) +{ +lean_object* x_446; lean_object* x_447; +x_446 = lean_ctor_get(x_443, 1); +lean_inc(x_444); +x_447 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_446, x_349, x_444); +lean_ctor_set(x_443, 1, x_447); +x_352 = x_444; +x_353 = x_443; +goto block_424; +} +else +{ +lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_448 = lean_ctor_get(x_443, 0); +x_449 = lean_ctor_get(x_443, 1); +lean_inc(x_449); +lean_inc(x_448); +lean_dec(x_443); +lean_inc(x_444); +x_450 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_449, x_349, x_444); +x_451 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_451, 0, x_448); +lean_ctor_set(x_451, 1, x_450); +x_352 = x_444; +x_353 = x_451; +goto block_424; +} +} +else +{ +lean_object* x_452; +lean_dec(x_349); +x_452 = lean_ctor_get(x_441, 0); +lean_inc(x_452); +lean_dec(x_441); +x_352 = x_452; +x_353 = x_3; +goto block_424; +} +} +block_424: +{ +lean_object* x_354; lean_object* x_355; uint8_t x_396; +x_396 = lean_expr_has_expr_mvar(x_350); +if (x_396 == 0) +{ +uint8_t x_397; +x_397 = lean_expr_has_level_mvar(x_350); if (x_397 == 0) { +x_354 = x_350; +x_355 = x_353; +goto block_395; +} +else +{ lean_object* x_398; lean_object* x_399; -x_398 = lean_ctor_get(x_395, 1); -lean_inc(x_396); -x_399 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_398, x_344, x_396); -lean_ctor_set(x_395, 1, x_399); -x_348 = x_396; -x_349 = x_395; -goto block_389; -} -else +x_398 = lean_ctor_get(x_353, 1); +lean_inc(x_398); +x_399 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_398, x_350); +lean_dec(x_398); +if (lean_obj_tag(x_399) == 0) { -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; -x_400 = lean_ctor_get(x_395, 0); -x_401 = lean_ctor_get(x_395, 1); -lean_inc(x_401); -lean_inc(x_400); -lean_dec(x_395); -lean_inc(x_396); -x_402 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_401, x_344, x_396); -x_403 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_403, 0, x_400); -lean_ctor_set(x_403, 1, x_402); -x_348 = x_396; -x_349 = x_403; -goto block_389; -} -} -else -{ -lean_object* x_404; -lean_dec(x_344); -x_404 = lean_ctor_get(x_393, 0); -lean_inc(x_404); -lean_dec(x_393); -x_348 = x_404; -x_349 = x_347; -goto block_389; -} -} -} -else -{ -lean_object* x_405; lean_object* x_406; -x_405 = lean_ctor_get(x_347, 1); -lean_inc(x_405); -x_406 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_405, x_344); -lean_dec(x_405); -if (lean_obj_tag(x_406) == 0) -{ -lean_object* x_407; lean_object* x_408; lean_object* x_409; uint8_t x_410; -lean_inc(x_344); +lean_object* x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; +lean_inc(x_350); lean_inc(x_1); -x_407 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_344, x_347); -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) +x_400 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_350, x_353); +x_401 = lean_ctor_get(x_400, 1); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 0); +lean_inc(x_402); +lean_dec(x_400); +x_403 = !lean_is_exclusive(x_401); +if (x_403 == 0) +{ +lean_object* x_404; lean_object* x_405; +x_404 = lean_ctor_get(x_401, 1); +lean_inc(x_402); +x_405 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_404, x_350, x_402); +lean_ctor_set(x_401, 1, x_405); +x_354 = x_402; +x_355 = x_401; +goto block_395; +} +else +{ +lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_406 = lean_ctor_get(x_401, 0); +x_407 = lean_ctor_get(x_401, 1); +lean_inc(x_407); +lean_inc(x_406); +lean_dec(x_401); +lean_inc(x_402); +x_408 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_407, x_350, x_402); +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_406); +lean_ctor_set(x_409, 1, x_408); +x_354 = x_402; +x_355 = x_409; +goto block_395; +} +} +else +{ +lean_object* x_410; +lean_dec(x_350); +x_410 = lean_ctor_get(x_399, 0); +lean_inc(x_410); +lean_dec(x_399); +x_354 = x_410; +x_355 = x_353; +goto block_395; +} +} +} +else { lean_object* x_411; lean_object* x_412; -x_411 = lean_ctor_get(x_408, 1); -lean_inc(x_409); -x_412 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_411, x_344, x_409); -lean_ctor_set(x_408, 1, x_412); -x_348 = x_409; -x_349 = x_408; -goto block_389; -} -else +x_411 = lean_ctor_get(x_353, 1); +lean_inc(x_411); +x_412 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_411, x_350); +lean_dec(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_408, 0); -x_414 = lean_ctor_get(x_408, 1); +lean_object* x_413; lean_object* x_414; lean_object* x_415; uint8_t x_416; +lean_inc(x_350); +lean_inc(x_1); +x_413 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_350, x_353); +x_414 = lean_ctor_get(x_413, 1); lean_inc(x_414); -lean_inc(x_413); -lean_dec(x_408); -lean_inc(x_409); -x_415 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_414, x_344, x_409); -x_416 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_416, 0, x_413); -lean_ctor_set(x_416, 1, x_415); -x_348 = x_409; -x_349 = x_416; -goto block_389; +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_417; lean_object* x_418; +x_417 = lean_ctor_get(x_414, 1); +lean_inc(x_415); +x_418 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_417, x_350, x_415); +lean_ctor_set(x_414, 1, x_418); +x_354 = x_415; +x_355 = x_414; +goto block_395; +} +else +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_419 = lean_ctor_get(x_414, 0); +x_420 = lean_ctor_get(x_414, 1); +lean_inc(x_420); +lean_inc(x_419); +lean_dec(x_414); +lean_inc(x_415); +x_421 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_420, x_350, x_415); +x_422 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_422, 0, x_419); +lean_ctor_set(x_422, 1, x_421); +x_354 = x_415; +x_355 = x_422; +goto block_395; } } else { -lean_object* x_417; -lean_dec(x_344); -x_417 = lean_ctor_get(x_406, 0); -lean_inc(x_417); -lean_dec(x_406); -x_348 = x_417; -x_349 = x_347; -goto block_389; +lean_object* x_423; +lean_dec(x_350); +x_423 = lean_ctor_get(x_412, 0); +lean_inc(x_423); +lean_dec(x_412); +x_354 = x_423; +x_355 = x_353; +goto block_395; } } -block_389: +block_395: { -lean_object* x_350; lean_object* x_351; uint8_t x_361; -x_361 = lean_expr_has_expr_mvar(x_345); -if (x_361 == 0) +lean_object* x_356; lean_object* x_357; uint8_t x_367; +x_367 = lean_expr_has_expr_mvar(x_351); +if (x_367 == 0) { -uint8_t x_362; -x_362 = lean_expr_has_level_mvar(x_345); -if (x_362 == 0) -{ -lean_dec(x_1); -x_350 = x_345; -x_351 = x_349; -goto block_360; -} -else -{ -lean_object* x_363; lean_object* x_364; -x_363 = lean_ctor_get(x_349, 1); -lean_inc(x_363); -x_364 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_363, x_345); -lean_dec(x_363); -if (lean_obj_tag(x_364) == 0) -{ -lean_object* x_365; lean_object* x_366; lean_object* x_367; uint8_t x_368; -lean_inc(x_345); -x_365 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_345, x_349); -x_366 = lean_ctor_get(x_365, 1); -lean_inc(x_366); -x_367 = lean_ctor_get(x_365, 0); -lean_inc(x_367); -lean_dec(x_365); -x_368 = !lean_is_exclusive(x_366); +uint8_t x_368; +x_368 = lean_expr_has_level_mvar(x_351); if (x_368 == 0) { -lean_object* x_369; lean_object* x_370; -x_369 = lean_ctor_get(x_366, 1); -lean_inc(x_367); -x_370 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_369, x_345, x_367); -lean_ctor_set(x_366, 1, x_370); -x_350 = x_367; -x_351 = x_366; -goto block_360; -} -else -{ -lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_371 = lean_ctor_get(x_366, 0); -x_372 = lean_ctor_get(x_366, 1); -lean_inc(x_372); -lean_inc(x_371); -lean_dec(x_366); -lean_inc(x_367); -x_373 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_372, x_345, x_367); -x_374 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_374, 0, x_371); -lean_ctor_set(x_374, 1, x_373); -x_350 = x_367; -x_351 = x_374; -goto block_360; -} -} -else -{ -lean_object* x_375; -lean_dec(x_345); lean_dec(x_1); -x_375 = lean_ctor_get(x_364, 0); -lean_inc(x_375); -lean_dec(x_364); -x_350 = x_375; -x_351 = x_349; -goto block_360; +x_356 = x_351; +x_357 = x_355; +goto block_366; } +else +{ +lean_object* x_369; lean_object* x_370; +x_369 = lean_ctor_get(x_355, 1); +lean_inc(x_369); +x_370 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_369, x_351); +lean_dec(x_369); +if (lean_obj_tag(x_370) == 0) +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; uint8_t x_374; +lean_inc(x_351); +x_371 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_351, x_355); +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, 1); +lean_inc(x_373); +x_376 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_375, x_351, x_373); +lean_ctor_set(x_372, 1, x_376); +x_356 = x_373; +x_357 = x_372; +goto block_366; +} +else +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +x_377 = lean_ctor_get(x_372, 0); +x_378 = lean_ctor_get(x_372, 1); +lean_inc(x_378); +lean_inc(x_377); +lean_dec(x_372); +lean_inc(x_373); +x_379 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_378, x_351, x_373); +x_380 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_380, 0, x_377); +lean_ctor_set(x_380, 1, x_379); +x_356 = x_373; +x_357 = x_380; +goto block_366; } } else { -lean_object* x_376; lean_object* x_377; -x_376 = lean_ctor_get(x_349, 1); -lean_inc(x_376); -x_377 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_376, x_345); -lean_dec(x_376); -if (lean_obj_tag(x_377) == 0) -{ -lean_object* x_378; lean_object* x_379; lean_object* x_380; uint8_t x_381; -lean_inc(x_345); -x_378 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_345, x_349); -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_381; +lean_dec(x_351); +lean_dec(x_1); +x_381 = lean_ctor_get(x_370, 0); +lean_inc(x_381); +lean_dec(x_370); +x_356 = x_381; +x_357 = x_355; +goto block_366; +} +} +} +else { lean_object* x_382; lean_object* x_383; -x_382 = lean_ctor_get(x_379, 1); -lean_inc(x_380); -x_383 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_382, x_345, x_380); -lean_ctor_set(x_379, 1, x_383); -x_350 = x_380; -x_351 = x_379; -goto block_360; -} -else +x_382 = lean_ctor_get(x_355, 1); +lean_inc(x_382); +x_383 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_382, x_351); +lean_dec(x_382); +if (lean_obj_tag(x_383) == 0) { -lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_384 = lean_ctor_get(x_379, 0); -x_385 = lean_ctor_get(x_379, 1); +lean_object* x_384; lean_object* x_385; lean_object* x_386; uint8_t x_387; +lean_inc(x_351); +x_384 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_351, x_355); +x_385 = lean_ctor_get(x_384, 1); lean_inc(x_385); -lean_inc(x_384); -lean_dec(x_379); -lean_inc(x_380); -x_386 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_385, x_345, x_380); -x_387 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_387, 0, x_384); -lean_ctor_set(x_387, 1, x_386); -x_350 = x_380; -x_351 = x_387; -goto block_360; +x_386 = lean_ctor_get(x_384, 0); +lean_inc(x_386); +lean_dec(x_384); +x_387 = !lean_is_exclusive(x_385); +if (x_387 == 0) +{ +lean_object* x_388; lean_object* x_389; +x_388 = lean_ctor_get(x_385, 1); +lean_inc(x_386); +x_389 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_388, x_351, x_386); +lean_ctor_set(x_385, 1, x_389); +x_356 = x_386; +x_357 = x_385; +goto block_366; +} +else +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_390 = lean_ctor_get(x_385, 0); +x_391 = lean_ctor_get(x_385, 1); +lean_inc(x_391); +lean_inc(x_390); +lean_dec(x_385); +lean_inc(x_386); +x_392 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_391, x_351, x_386); +x_393 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_393, 0, x_390); +lean_ctor_set(x_393, 1, x_392); +x_356 = x_386; +x_357 = x_393; +goto block_366; } } else { -lean_object* x_388; -lean_dec(x_345); +lean_object* x_394; +lean_dec(x_351); lean_dec(x_1); -x_388 = lean_ctor_get(x_377, 0); -lean_inc(x_388); -lean_dec(x_377); -x_350 = x_388; -x_351 = x_349; -goto block_360; +x_394 = lean_ctor_get(x_383, 0); +lean_inc(x_394); +lean_dec(x_383); +x_356 = x_394; +x_357 = x_355; +goto block_366; } } -block_360: +block_366: { if (lean_obj_tag(x_2) == 8) { -lean_object* x_352; lean_object* x_353; -x_352 = lean_expr_update_let(x_2, x_346, x_348, x_350); -x_353 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_353, 0, x_352); -lean_ctor_set(x_353, 1, x_351); -return x_353; +lean_object* x_358; lean_object* x_359; +x_358 = lean_expr_update_let(x_2, x_352, x_354, x_356); +x_359 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_357); +return x_359; } else { -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -lean_dec(x_350); -lean_dec(x_348); -lean_dec(x_346); +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +lean_dec(x_356); +lean_dec(x_354); +lean_dec(x_352); lean_dec(x_2); -x_354 = l_Lean_Expr_constName___closed__1; -x_355 = lean_unsigned_to_nat(480u); -x_356 = lean_unsigned_to_nat(18u); -x_357 = l_Lean_Expr_letName___closed__1; -x_358 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_354, x_355, x_356, x_357); -x_359 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_359, 1, x_351); -return x_359; +x_360 = l_Lean_Expr_constName_x21___closed__1; +x_361 = lean_unsigned_to_nat(484u); +x_362 = lean_unsigned_to_nat(18u); +x_363 = l_Lean_Expr_letName_x21___closed__1; +x_364 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_360, x_361, x_362, x_363); +x_365 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_365, 0, x_364); +lean_ctor_set(x_365, 1, x_357); +return x_365; } } } @@ -10800,77 +11123,77 @@ return x_359; } case 10: { -lean_object* x_447; uint8_t x_448; -x_447 = lean_ctor_get(x_2, 1); -lean_inc(x_447); -x_448 = lean_expr_has_expr_mvar(x_447); -if (x_448 == 0) -{ -uint8_t x_449; -x_449 = lean_expr_has_level_mvar(x_447); -if (x_449 == 0) -{ -lean_dec(x_1); -x_16 = x_447; -x_17 = x_3; -goto block_26; -} -else -{ -lean_object* x_450; lean_object* x_451; -x_450 = lean_ctor_get(x_3, 1); -lean_inc(x_450); -x_451 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_450, x_447); -lean_dec(x_450); -if (lean_obj_tag(x_451) == 0) -{ -lean_object* x_452; lean_object* x_453; lean_object* x_454; uint8_t x_455; -lean_inc(x_447); -x_452 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_447, x_3); -x_453 = lean_ctor_get(x_452, 1); +lean_object* x_453; uint8_t x_454; +x_453 = lean_ctor_get(x_2, 1); lean_inc(x_453); -x_454 = lean_ctor_get(x_452, 0); -lean_inc(x_454); -lean_dec(x_452); -x_455 = !lean_is_exclusive(x_453); +x_454 = lean_expr_has_expr_mvar(x_453); +if (x_454 == 0) +{ +uint8_t x_455; +x_455 = lean_expr_has_level_mvar(x_453); if (x_455 == 0) { -lean_object* x_456; lean_object* x_457; -x_456 = lean_ctor_get(x_453, 1); -lean_inc(x_454); -x_457 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_456, x_447, x_454); -lean_ctor_set(x_453, 1, x_457); -x_16 = x_454; -x_17 = x_453; -goto block_26; -} -else -{ -lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; -x_458 = lean_ctor_get(x_453, 0); -x_459 = lean_ctor_get(x_453, 1); -lean_inc(x_459); -lean_inc(x_458); -lean_dec(x_453); -lean_inc(x_454); -x_460 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_459, x_447, x_454); -x_461 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_461, 0, x_458); -lean_ctor_set(x_461, 1, x_460); -x_16 = x_454; -x_17 = x_461; -goto block_26; -} -} -else -{ -lean_object* x_462; -lean_dec(x_447); lean_dec(x_1); -x_462 = lean_ctor_get(x_451, 0); -lean_inc(x_462); -lean_dec(x_451); -x_16 = x_462; +x_16 = x_453; +x_17 = x_3; +goto block_26; +} +else +{ +lean_object* x_456; lean_object* x_457; +x_456 = lean_ctor_get(x_3, 1); +lean_inc(x_456); +x_457 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_456, x_453); +lean_dec(x_456); +if (lean_obj_tag(x_457) == 0) +{ +lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; +lean_inc(x_453); +x_458 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_453, x_3); +x_459 = lean_ctor_get(x_458, 1); +lean_inc(x_459); +x_460 = lean_ctor_get(x_458, 0); +lean_inc(x_460); +lean_dec(x_458); +x_461 = !lean_is_exclusive(x_459); +if (x_461 == 0) +{ +lean_object* x_462; lean_object* x_463; +x_462 = lean_ctor_get(x_459, 1); +lean_inc(x_460); +x_463 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_462, x_453, x_460); +lean_ctor_set(x_459, 1, x_463); +x_16 = x_460; +x_17 = x_459; +goto block_26; +} +else +{ +lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_464 = lean_ctor_get(x_459, 0); +x_465 = lean_ctor_get(x_459, 1); +lean_inc(x_465); +lean_inc(x_464); +lean_dec(x_459); +lean_inc(x_460); +x_466 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_465, x_453, x_460); +x_467 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_467, 0, x_464); +lean_ctor_set(x_467, 1, x_466); +x_16 = x_460; +x_17 = x_467; +goto block_26; +} +} +else +{ +lean_object* x_468; +lean_dec(x_453); +lean_dec(x_1); +x_468 = lean_ctor_get(x_457, 0); +lean_inc(x_468); +lean_dec(x_457); +x_16 = x_468; x_17 = x_3; goto block_26; } @@ -10878,60 +11201,60 @@ goto block_26; } else { -lean_object* x_463; lean_object* x_464; -x_463 = lean_ctor_get(x_3, 1); -lean_inc(x_463); -x_464 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_463, x_447); -lean_dec(x_463); -if (lean_obj_tag(x_464) == 0) -{ -lean_object* x_465; lean_object* x_466; lean_object* x_467; uint8_t x_468; -lean_inc(x_447); -x_465 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_447, x_3); -x_466 = lean_ctor_get(x_465, 1); -lean_inc(x_466); -x_467 = lean_ctor_get(x_465, 0); -lean_inc(x_467); -lean_dec(x_465); -x_468 = !lean_is_exclusive(x_466); -if (x_468 == 0) -{ lean_object* x_469; lean_object* x_470; -x_469 = lean_ctor_get(x_466, 1); -lean_inc(x_467); -x_470 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_469, x_447, x_467); -lean_ctor_set(x_466, 1, x_470); -x_16 = x_467; -x_17 = x_466; -goto block_26; -} -else +x_469 = lean_ctor_get(x_3, 1); +lean_inc(x_469); +x_470 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_469, x_453); +lean_dec(x_469); +if (lean_obj_tag(x_470) == 0) { -lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; -x_471 = lean_ctor_get(x_466, 0); -x_472 = lean_ctor_get(x_466, 1); +lean_object* x_471; lean_object* x_472; lean_object* x_473; uint8_t x_474; +lean_inc(x_453); +x_471 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_453, x_3); +x_472 = lean_ctor_get(x_471, 1); lean_inc(x_472); -lean_inc(x_471); -lean_dec(x_466); -lean_inc(x_467); -x_473 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_472, x_447, x_467); -x_474 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_474, 0, x_471); -lean_ctor_set(x_474, 1, x_473); -x_16 = x_467; -x_17 = x_474; +x_473 = lean_ctor_get(x_471, 0); +lean_inc(x_473); +lean_dec(x_471); +x_474 = !lean_is_exclusive(x_472); +if (x_474 == 0) +{ +lean_object* x_475; lean_object* x_476; +x_475 = lean_ctor_get(x_472, 1); +lean_inc(x_473); +x_476 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_475, x_453, x_473); +lean_ctor_set(x_472, 1, x_476); +x_16 = x_473; +x_17 = x_472; +goto block_26; +} +else +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_477 = lean_ctor_get(x_472, 0); +x_478 = lean_ctor_get(x_472, 1); +lean_inc(x_478); +lean_inc(x_477); +lean_dec(x_472); +lean_inc(x_473); +x_479 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_478, x_453, x_473); +x_480 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_480, 0, x_477); +lean_ctor_set(x_480, 1, x_479); +x_16 = x_473; +x_17 = x_480; goto block_26; } } else { -lean_object* x_475; -lean_dec(x_447); +lean_object* x_481; +lean_dec(x_453); lean_dec(x_1); -x_475 = lean_ctor_get(x_464, 0); -lean_inc(x_475); -lean_dec(x_464); -x_16 = x_475; +x_481 = lean_ctor_get(x_470, 0); +lean_inc(x_481); +lean_dec(x_470); +x_16 = x_481; x_17 = x_3; goto block_26; } @@ -10939,77 +11262,77 @@ goto block_26; } case 11: { -lean_object* x_476; uint8_t x_477; -x_476 = lean_ctor_get(x_2, 2); -lean_inc(x_476); -x_477 = lean_expr_has_expr_mvar(x_476); -if (x_477 == 0) -{ -uint8_t x_478; -x_478 = lean_expr_has_level_mvar(x_476); -if (x_478 == 0) -{ -lean_dec(x_1); -x_27 = x_476; -x_28 = x_3; -goto block_37; -} -else -{ -lean_object* x_479; lean_object* x_480; -x_479 = lean_ctor_get(x_3, 1); -lean_inc(x_479); -x_480 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_479, x_476); -lean_dec(x_479); -if (lean_obj_tag(x_480) == 0) -{ -lean_object* x_481; lean_object* x_482; lean_object* x_483; uint8_t x_484; -lean_inc(x_476); -x_481 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_476, x_3); -x_482 = lean_ctor_get(x_481, 1); +lean_object* x_482; uint8_t x_483; +x_482 = lean_ctor_get(x_2, 2); lean_inc(x_482); -x_483 = lean_ctor_get(x_481, 0); -lean_inc(x_483); -lean_dec(x_481); -x_484 = !lean_is_exclusive(x_482); +x_483 = lean_expr_has_expr_mvar(x_482); +if (x_483 == 0) +{ +uint8_t x_484; +x_484 = lean_expr_has_level_mvar(x_482); if (x_484 == 0) { -lean_object* x_485; lean_object* x_486; -x_485 = lean_ctor_get(x_482, 1); -lean_inc(x_483); -x_486 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_485, x_476, x_483); -lean_ctor_set(x_482, 1, x_486); -x_27 = x_483; -x_28 = x_482; -goto block_37; -} -else -{ -lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_487 = lean_ctor_get(x_482, 0); -x_488 = lean_ctor_get(x_482, 1); -lean_inc(x_488); -lean_inc(x_487); -lean_dec(x_482); -lean_inc(x_483); -x_489 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_488, x_476, x_483); -x_490 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_490, 0, x_487); -lean_ctor_set(x_490, 1, x_489); -x_27 = x_483; -x_28 = x_490; -goto block_37; -} -} -else -{ -lean_object* x_491; -lean_dec(x_476); lean_dec(x_1); -x_491 = lean_ctor_get(x_480, 0); -lean_inc(x_491); -lean_dec(x_480); -x_27 = x_491; +x_27 = x_482; +x_28 = x_3; +goto block_37; +} +else +{ +lean_object* x_485; lean_object* x_486; +x_485 = lean_ctor_get(x_3, 1); +lean_inc(x_485); +x_486 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_485, x_482); +lean_dec(x_485); +if (lean_obj_tag(x_486) == 0) +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; uint8_t x_490; +lean_inc(x_482); +x_487 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_482, x_3); +x_488 = lean_ctor_get(x_487, 1); +lean_inc(x_488); +x_489 = lean_ctor_get(x_487, 0); +lean_inc(x_489); +lean_dec(x_487); +x_490 = !lean_is_exclusive(x_488); +if (x_490 == 0) +{ +lean_object* x_491; lean_object* x_492; +x_491 = lean_ctor_get(x_488, 1); +lean_inc(x_489); +x_492 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_491, x_482, x_489); +lean_ctor_set(x_488, 1, x_492); +x_27 = x_489; +x_28 = x_488; +goto block_37; +} +else +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; +x_493 = lean_ctor_get(x_488, 0); +x_494 = lean_ctor_get(x_488, 1); +lean_inc(x_494); +lean_inc(x_493); +lean_dec(x_488); +lean_inc(x_489); +x_495 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_494, x_482, x_489); +x_496 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_496, 0, x_493); +lean_ctor_set(x_496, 1, x_495); +x_27 = x_489; +x_28 = x_496; +goto block_37; +} +} +else +{ +lean_object* x_497; +lean_dec(x_482); +lean_dec(x_1); +x_497 = lean_ctor_get(x_486, 0); +lean_inc(x_497); +lean_dec(x_486); +x_27 = x_497; x_28 = x_3; goto block_37; } @@ -11017,60 +11340,60 @@ goto block_37; } else { -lean_object* x_492; lean_object* x_493; -x_492 = lean_ctor_get(x_3, 1); -lean_inc(x_492); -x_493 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_492, x_476); -lean_dec(x_492); -if (lean_obj_tag(x_493) == 0) -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; uint8_t x_497; -lean_inc(x_476); -x_494 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_476, x_3); -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, 1); -lean_inc(x_496); -x_499 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_498, x_476, x_496); -lean_ctor_set(x_495, 1, x_499); -x_27 = x_496; -x_28 = x_495; -goto block_37; -} -else +x_498 = lean_ctor_get(x_3, 1); +lean_inc(x_498); +x_499 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_498, x_482); +lean_dec(x_498); +if (lean_obj_tag(x_499) == 0) { -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; -x_500 = lean_ctor_get(x_495, 0); -x_501 = lean_ctor_get(x_495, 1); +lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; +lean_inc(x_482); +x_500 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___rarg(x_1, x_482, x_3); +x_501 = lean_ctor_get(x_500, 1); lean_inc(x_501); -lean_inc(x_500); -lean_dec(x_495); -lean_inc(x_496); -x_502 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_501, x_476, x_496); -x_503 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_503, 0, x_500); -lean_ctor_set(x_503, 1, x_502); -x_27 = x_496; -x_28 = x_503; +x_502 = lean_ctor_get(x_500, 0); +lean_inc(x_502); +lean_dec(x_500); +x_503 = !lean_is_exclusive(x_501); +if (x_503 == 0) +{ +lean_object* x_504; lean_object* x_505; +x_504 = lean_ctor_get(x_501, 1); +lean_inc(x_502); +x_505 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_504, x_482, x_502); +lean_ctor_set(x_501, 1, x_505); +x_27 = x_502; +x_28 = x_501; +goto block_37; +} +else +{ +lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; +x_506 = lean_ctor_get(x_501, 0); +x_507 = lean_ctor_get(x_501, 1); +lean_inc(x_507); +lean_inc(x_506); +lean_dec(x_501); +lean_inc(x_502); +x_508 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_507, x_482, x_502); +x_509 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_509, 0, x_506); +lean_ctor_set(x_509, 1, x_508); +x_27 = x_502; +x_28 = x_509; goto block_37; } } else { -lean_object* x_504; -lean_dec(x_476); +lean_object* x_510; +lean_dec(x_482); lean_dec(x_1); -x_504 = lean_ctor_get(x_493, 0); -lean_inc(x_504); -lean_dec(x_493); -x_27 = x_504; +x_510 = lean_ctor_get(x_499, 0); +lean_inc(x_510); +lean_dec(x_499); +x_27 = x_510; x_28 = x_3; goto block_37; } @@ -11078,12 +11401,12 @@ goto block_37; } default: { -lean_object* x_505; +lean_object* x_511; lean_dec(x_1); -x_505 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_505, 0, x_2); -lean_ctor_set(x_505, 1, x_3); -return x_505; +x_511 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_511, 0, x_2); +lean_ctor_set(x_511, 1, x_3); +return x_511; } } block_15: @@ -11095,7 +11418,7 @@ if (x_6 == 0) lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_5, 1); lean_inc(x_4); -x_8 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_7, x_2, x_4); +x_8 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_7, x_2, x_4); lean_ctor_set(x_5, 1, x_8); x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_4); @@ -11111,7 +11434,7 @@ lean_inc(x_11); lean_inc(x_10); lean_dec(x_5); lean_inc(x_4); -x_12 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_11, x_2, x_4); +x_12 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_11, x_2, x_4); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_10); lean_ctor_set(x_13, 1, x_12); @@ -11137,11 +11460,11 @@ 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_dec(x_16); lean_dec(x_2); -x_20 = l_Lean_Expr_constName___closed__1; -x_21 = lean_unsigned_to_nat(438u); +x_20 = l_Lean_Expr_constName_x21___closed__1; +x_21 = lean_unsigned_to_nat(442u); x_22 = lean_unsigned_to_nat(15u); x_23 = l_Lean_Expr_updateMData_x21___closed__1; -x_24 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_20, x_21, x_22, x_23); +x_24 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_20, x_21, x_22, 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_17); @@ -11164,11 +11487,11 @@ else 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_dec(x_27); lean_dec(x_2); -x_31 = l_Lean_Expr_constName___closed__1; -x_32 = lean_unsigned_to_nat(443u); +x_31 = l_Lean_Expr_constName_x21___closed__1; +x_32 = lean_unsigned_to_nat(447u); x_33 = lean_unsigned_to_nat(16u); x_34 = l_Lean_Expr_updateProj_x21___closed__1; -x_35 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_31, x_32, x_33, x_34); +x_35 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_31, x_32, x_33, x_34); x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_28); @@ -11762,43 +12085,7 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* _init_l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__1; -x_2 = l_Bool_Inhabited; -x_3 = lean_box(x_2); -x_4 = l_monadInhabited___rarg(x_1, x_3); -return x_4; -} -} -lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_6 = l_panicWithPos___rarg___closed__1; -x_7 = lean_string_append(x_6, x_1); -x_8 = l_panicWithPos___rarg___closed__2; -x_9 = lean_string_append(x_7, x_8); -x_10 = l_Nat_repr(x_2); -x_11 = lean_string_append(x_9, x_10); -lean_dec(x_10); -x_12 = l_panicWithPos___rarg___closed__2; -x_13 = lean_string_append(x_11, x_12); -x_14 = l_Nat_repr(x_3); -x_15 = lean_string_append(x_13, x_14); -lean_dec(x_14); -x_16 = l_panicWithPos___rarg___closed__3; -x_17 = lean_string_append(x_15, x_16); -x_18 = lean_string_append(x_17, x_4); -x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___closed__1; -x_20 = lean_panic_fn(x_18); -x_21 = lean_apply_1(x_20, x_5); -return x_21; -} -} -uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11818,7 +12105,7 @@ else lean_object* x_7; uint8_t x_8; x_7 = lean_array_fget(x_2, x_3); lean_inc(x_1); -x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(x_1, x_7); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(x_1, x_7); lean_dec(x_7); if (x_8 == 0) { @@ -11838,6 +12125,86 @@ return x_8; } } } +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +lean_dec(x_1); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +lean_inc(x_1); +x_13 = lean_apply_1(x_1, x_12); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +lean_dec(x_1); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4(x_1, x_6, x_7); +return x_8; +} +} +} uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -11897,99 +12264,19 @@ return x_14; } } } -uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4(x_1, x_3, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__5(x_1, x_6, x_7); -return x_8; -} -} -} -uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_2); -x_5 = lean_nat_dec_lt(x_3, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_3); -lean_dec(x_1); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; -x_7 = lean_array_fget(x_2, x_3); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_unsigned_to_nat(1u); -x_9 = lean_nat_add(x_3, x_8); -lean_dec(x_3); -x_3 = x_9; -goto _start; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = lean_ctor_get(x_7, 0); -lean_inc(x_11); -lean_dec(x_7); -x_12 = l_Lean_LocalDecl_name(x_11); -lean_dec(x_11); -lean_inc(x_1); -x_13 = lean_apply_1(x_1, x_12); -x_14 = lean_unbox(x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_3, x_15); -lean_dec(x_3); -x_3 = x_16; -goto _start; -} -else -{ -lean_dec(x_3); -lean_dec(x_1); -return x_14; -} -} -} -} -} -uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(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); lean_inc(x_1); -x_4 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(x_1, x_3); +x_4 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(x_1, x_3); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; uint8_t x_7; x_5 = lean_ctor_get(x_2, 1); x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__6(x_1, x_5, x_6); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__5(x_1, x_5, x_6); return x_7; } else @@ -11999,14 +12286,6 @@ return x_4; } } } -lean_object* _init_l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unknown metavariable"); -return x_1; -} -} lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -12041,1137 +12320,1122 @@ lean_inc(x_2); x_13 = lean_apply_2(x_12, x_2, x_11); if (lean_obj_tag(x_13) == 0) { -lean_object* x_14; lean_object* x_15; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; x_14 = lean_ctor_get(x_1, 7); lean_inc(x_14); lean_dec(x_1); x_15 = lean_apply_2(x_14, x_2, x_11); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_3); -x_16 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; -x_17 = lean_unsigned_to_nat(305u); -x_18 = lean_unsigned_to_nat(19u); -x_19 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg___closed__1; -x_20 = l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(x_16, x_17, x_18, x_19, x_5); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(x_3, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); return x_20; } else { -lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_15, 0); -lean_inc(x_21); -lean_dec(x_15); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(x_3, x_22); -lean_dec(x_22); -x_24 = lean_box(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_5); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t x_36; +lean_object* x_21; lean_object* x_22; uint8_t x_31; lean_dec(x_11); -x_26 = lean_ctor_get(x_13, 0); -lean_inc(x_26); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); lean_dec(x_13); -x_36 = lean_expr_has_expr_mvar(x_26); -if (x_36 == 0) +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) { -uint8_t x_37; -x_37 = lean_expr_has_level_mvar(x_26); -if (x_37 == 0) +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) { -uint8_t x_38; -x_38 = lean_expr_has_fvar(x_26); -if (x_38 == 0) +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) { -uint8_t x_39; lean_object* x_40; lean_object* x_41; -lean_dec(x_26); +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = 0; -x_40 = lean_box(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_5); -return x_41; +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; } else { -lean_object* x_42; -x_42 = lean_box(0); -x_27 = x_42; -goto block_35; +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; } } else { -lean_object* x_43; -x_43 = lean_box(0); -x_27 = x_43; -goto block_35; +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; } } else { -lean_object* x_44; -x_44 = lean_box(0); -x_27 = x_44; -goto block_35; +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; } -block_35: +block_30: { -uint8_t x_28; -lean_dec(x_27); -x_28 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_26); -if (x_28 == 0) +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_box(0); -lean_inc(x_26); -x_30 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_26, x_29); -x_4 = x_26; -x_5 = x_30; +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; goto _start; } else { -uint8_t x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_26); +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_32 = 0; -x_33 = lean_box(x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_5); -return x_34; +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; } } } } case 5: { -lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_72; uint8_t x_82; -x_45 = lean_ctor_get(x_4, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_4, 1); -lean_inc(x_46); +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); lean_dec(x_4); -x_82 = lean_expr_has_expr_mvar(x_46); -if (x_82 == 0) +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) { -uint8_t x_83; -x_83 = lean_expr_has_level_mvar(x_46); -if (x_83 == 0) +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) { -uint8_t x_84; -x_84 = lean_expr_has_fvar(x_46); -if (x_84 == 0) +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) { -uint8_t x_85; -lean_dec(x_46); -x_85 = 0; -x_47 = x_85; -x_48 = x_5; -goto block_71; +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; } else { -lean_object* x_86; -x_86 = lean_box(0); -x_72 = x_86; -goto block_81; +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; } } else { -lean_object* x_87; -x_87 = lean_box(0); -x_72 = x_87; -goto block_81; +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; } } else { -lean_object* x_88; -x_88 = lean_box(0); -x_72 = x_88; -goto block_81; +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; } -block_71: +block_66: { -if (x_47 == 0) +if (x_42 == 0) { -uint8_t x_49; -x_49 = l_Lean_Expr_isApp(x_45); -if (x_49 == 0) +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) { -lean_object* x_50; uint8_t x_59; -x_59 = lean_expr_has_expr_mvar(x_45); -if (x_59 == 0) +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) { -uint8_t x_60; -x_60 = lean_expr_has_level_mvar(x_45); -if (x_60 == 0) +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) { -uint8_t x_61; -x_61 = lean_expr_has_fvar(x_45); -if (x_61 == 0) +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) { -uint8_t x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_45); +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_62 = 0; -x_63 = lean_box(x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_48); -return x_64; +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; } else { -lean_object* x_65; -x_65 = lean_box(0); -x_50 = x_65; -goto block_58; +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; } } else { -lean_object* x_66; -x_66 = lean_box(0); -x_50 = x_66; -goto block_58; +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; } } else { -lean_object* x_67; -x_67 = lean_box(0); -x_50 = x_67; -goto block_58; +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; } -block_58: +block_53: { -uint8_t x_51; -lean_dec(x_50); -x_51 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_48, x_45); -if (x_51 == 0) -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_box(0); -lean_inc(x_45); -x_53 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_48, x_45, x_52); -x_4 = x_45; -x_5 = x_53; -goto _start; -} -else -{ -uint8_t x_55; lean_object* x_56; lean_object* x_57; +uint8_t x_46; lean_dec(x_45); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_55 = 0; -x_56 = lean_box(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_48); -return x_57; -} -} -} -else +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) { -x_4 = x_45; +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; x_5 = x_48; goto _start; } -} else { -lean_object* x_69; lean_object* x_70; -lean_dec(x_45); +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_69 = lean_box(x_47); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_48); -return x_70; +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_43); +return x_52; } } -block_81: -{ -uint8_t x_73; -lean_dec(x_72); -x_73 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_46); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_74 = lean_box(0); -lean_inc(x_46); -x_75 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_46, x_74); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_76 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_46, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_unbox(x_77); -lean_dec(x_77); -x_47 = x_79; -x_48 = x_78; -goto block_71; } else { -uint8_t x_80; -lean_dec(x_46); -x_80 = 0; -x_47 = x_80; -x_48 = x_5; -goto block_71; +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; } } } case 6: { -lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_114; uint8_t x_124; -x_89 = lean_ctor_get(x_4, 1); -lean_inc(x_89); -x_90 = lean_ctor_get(x_4, 2); -lean_inc(x_90); +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); lean_dec(x_4); -x_124 = lean_expr_has_expr_mvar(x_89); -if (x_124 == 0) +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) { -uint8_t x_125; -x_125 = lean_expr_has_level_mvar(x_89); -if (x_125 == 0) +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) { -uint8_t x_126; -x_126 = lean_expr_has_fvar(x_89); -if (x_126 == 0) +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) { -uint8_t x_127; -lean_dec(x_89); -x_127 = 0; -x_91 = x_127; -x_92 = x_5; -goto block_113; +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; } else { -lean_object* x_128; -x_128 = lean_box(0); -x_114 = x_128; -goto block_123; +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; } } else { -lean_object* x_129; -x_129 = lean_box(0); -x_114 = x_129; -goto block_123; +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; } } else { -lean_object* x_130; -x_130 = lean_box(0); -x_114 = x_130; -goto block_123; +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; } -block_113: +block_108: { -if (x_91 == 0) +if (x_86 == 0) { -lean_object* x_93; uint8_t x_102; -x_102 = lean_expr_has_expr_mvar(x_90); -if (x_102 == 0) +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) { -uint8_t x_103; -x_103 = lean_expr_has_level_mvar(x_90); -if (x_103 == 0) +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) { -uint8_t x_104; -x_104 = lean_expr_has_fvar(x_90); -if (x_104 == 0) +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) { -uint8_t x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_90); +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_105 = 0; -x_106 = lean_box(x_105); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_92); -return x_107; +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; } else { -lean_object* x_108; -x_108 = lean_box(0); -x_93 = x_108; -goto block_101; +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; } } else { -lean_object* x_109; -x_109 = lean_box(0); -x_93 = x_109; -goto block_101; +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; } } else { -lean_object* x_110; -x_110 = lean_box(0); -x_93 = x_110; -goto block_101; +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; } -block_101: +block_96: { -uint8_t x_94; -lean_dec(x_93); -x_94 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_92, x_90); -if (x_94 == 0) +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) { -lean_object* x_95; lean_object* x_96; -x_95 = lean_box(0); -lean_inc(x_90); -x_96 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_92, x_90, x_95); -x_4 = x_90; -x_5 = x_96; +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; goto _start; } else { -uint8_t x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_90); +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_98 = 0; -x_99 = lean_box(x_98); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_92); -return x_100; +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; } } } else { -lean_object* x_111; lean_object* x_112; -lean_dec(x_90); +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_111 = lean_box(x_91); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); -lean_ctor_set(x_112, 1, x_92); -return x_112; +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; } } -block_123: +block_118: { -uint8_t x_115; -lean_dec(x_114); -x_115 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_89); -if (x_115 == 0) +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) { -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_116 = lean_box(0); -lean_inc(x_89); -x_117 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_89, x_116); +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_118 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_89, x_117); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = lean_unbox(x_119); -lean_dec(x_119); -x_91 = x_121; -x_92 = x_120; -goto block_113; +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; } else { -uint8_t x_122; -lean_dec(x_89); -x_122 = 0; -x_91 = x_122; -x_92 = x_5; -goto block_113; +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; } } } case 7: { -lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_156; uint8_t x_166; -x_131 = lean_ctor_get(x_4, 1); -lean_inc(x_131); -x_132 = lean_ctor_get(x_4, 2); -lean_inc(x_132); +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); lean_dec(x_4); -x_166 = lean_expr_has_expr_mvar(x_131); -if (x_166 == 0) +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) { -uint8_t x_167; -x_167 = lean_expr_has_level_mvar(x_131); -if (x_167 == 0) +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) { -uint8_t x_168; -x_168 = lean_expr_has_fvar(x_131); -if (x_168 == 0) +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) { -uint8_t x_169; -lean_dec(x_131); -x_169 = 0; -x_133 = x_169; -x_134 = x_5; -goto block_155; +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; } else { -lean_object* x_170; -x_170 = lean_box(0); -x_156 = x_170; -goto block_165; +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; } } else { -lean_object* x_171; -x_171 = lean_box(0); -x_156 = x_171; -goto block_165; +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; } } else { -lean_object* x_172; -x_172 = lean_box(0); -x_156 = x_172; -goto block_165; +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; } -block_155: +block_150: { -if (x_133 == 0) +if (x_128 == 0) { -lean_object* x_135; uint8_t x_144; -x_144 = lean_expr_has_expr_mvar(x_132); -if (x_144 == 0) +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) { -uint8_t x_145; -x_145 = lean_expr_has_level_mvar(x_132); -if (x_145 == 0) +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) { -uint8_t x_146; -x_146 = lean_expr_has_fvar(x_132); -if (x_146 == 0) +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) { -uint8_t x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_132); +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_147 = 0; -x_148 = lean_box(x_147); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_134); -return x_149; +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; } else { -lean_object* x_150; -x_150 = lean_box(0); -x_135 = x_150; -goto block_143; +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; } } else { -lean_object* x_151; -x_151 = lean_box(0); -x_135 = x_151; -goto block_143; +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; } } else { -lean_object* x_152; -x_152 = lean_box(0); -x_135 = x_152; -goto block_143; +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; } -block_143: +block_138: { -uint8_t x_136; -lean_dec(x_135); -x_136 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_134, x_132); -if (x_136 == 0) +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) { -lean_object* x_137; lean_object* x_138; -x_137 = lean_box(0); -lean_inc(x_132); -x_138 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_134, x_132, x_137); -x_4 = x_132; -x_5 = x_138; +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; goto _start; } else { -uint8_t x_140; lean_object* x_141; lean_object* x_142; -lean_dec(x_132); +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_140 = 0; -x_141 = lean_box(x_140); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_134); -return x_142; +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; } } } else { -lean_object* x_153; lean_object* x_154; -lean_dec(x_132); +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_153 = lean_box(x_133); -x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_134); -return x_154; +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; } } -block_165: +block_160: { -uint8_t x_157; -lean_dec(x_156); -x_157 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_131); -if (x_157 == 0) +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_158 = lean_box(0); -lean_inc(x_131); -x_159 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_131, x_158); +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_160 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_131, x_159); -x_161 = lean_ctor_get(x_160, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_160, 1); -lean_inc(x_162); -lean_dec(x_160); -x_163 = lean_unbox(x_161); -lean_dec(x_161); -x_133 = x_163; -x_134 = x_162; -goto block_155; +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; } else { -uint8_t x_164; -lean_dec(x_131); -x_164 = 0; -x_133 = x_164; -x_134 = x_5; -goto block_155; +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; } } } case 8: { -lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; uint8_t x_199; lean_object* x_200; lean_object* x_219; uint8_t x_229; -x_173 = lean_ctor_get(x_4, 1); -lean_inc(x_173); -x_174 = lean_ctor_get(x_4, 2); -lean_inc(x_174); -x_175 = lean_ctor_get(x_4, 3); -lean_inc(x_175); +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); lean_dec(x_4); -x_229 = lean_expr_has_expr_mvar(x_173); -if (x_229 == 0) +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) { -uint8_t x_230; -x_230 = lean_expr_has_level_mvar(x_173); -if (x_230 == 0) +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) { -uint8_t x_231; -x_231 = lean_expr_has_fvar(x_173); -if (x_231 == 0) +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) { -uint8_t x_232; -lean_dec(x_173); -x_232 = 0; -x_199 = x_232; -x_200 = x_5; -goto block_218; +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; } else { -lean_object* x_233; -x_233 = lean_box(0); -x_219 = x_233; -goto block_228; +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; } } else { -lean_object* x_234; -x_234 = lean_box(0); -x_219 = x_234; -goto block_228; +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; } } else { -lean_object* x_235; -x_235 = lean_box(0); -x_219 = x_235; -goto block_228; +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; } -block_198: +block_193: { -if (x_176 == 0) +if (x_171 == 0) { -lean_object* x_178; uint8_t x_187; -x_187 = lean_expr_has_expr_mvar(x_175); -if (x_187 == 0) +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) { -uint8_t x_188; -x_188 = lean_expr_has_level_mvar(x_175); -if (x_188 == 0) +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) { -uint8_t x_189; -x_189 = lean_expr_has_fvar(x_175); -if (x_189 == 0) +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) { -uint8_t x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_175); +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_190 = 0; -x_191 = lean_box(x_190); -x_192 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_177); -return x_192; +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; } else { -lean_object* x_193; -x_193 = lean_box(0); -x_178 = x_193; -goto block_186; +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; } } else { -lean_object* x_194; -x_194 = lean_box(0); -x_178 = x_194; -goto block_186; +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; } } else { -lean_object* x_195; -x_195 = lean_box(0); -x_178 = x_195; -goto block_186; +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; } -block_186: +block_181: { -uint8_t x_179; -lean_dec(x_178); -x_179 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_177, x_175); -if (x_179 == 0) +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) { -lean_object* x_180; lean_object* x_181; -x_180 = lean_box(0); -lean_inc(x_175); -x_181 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_177, x_175, x_180); -x_4 = x_175; -x_5 = x_181; +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; goto _start; } else { -uint8_t x_183; lean_object* x_184; lean_object* x_185; -lean_dec(x_175); +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_183 = 0; -x_184 = lean_box(x_183); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_177); -return x_185; +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; } } } else { -lean_object* x_196; lean_object* x_197; -lean_dec(x_175); +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_196 = lean_box(x_176); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_177); -return x_197; +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; } } -block_218: +block_213: { -lean_object* x_201; -if (x_199 == 0) +lean_object* x_196; +if (x_194 == 0) { -uint8_t x_211; -x_211 = lean_expr_has_expr_mvar(x_174); -if (x_211 == 0) +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) { -uint8_t x_212; -x_212 = lean_expr_has_level_mvar(x_174); -if (x_212 == 0) +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) { -uint8_t x_213; -x_213 = lean_expr_has_fvar(x_174); -if (x_213 == 0) -{ -uint8_t x_214; -lean_dec(x_174); -x_214 = 0; -x_176 = x_214; -x_177 = x_200; -goto block_198; -} -else -{ -lean_object* x_215; -x_215 = lean_box(0); -x_201 = x_215; -goto block_210; -} -} -else -{ -lean_object* x_216; -x_216 = lean_box(0); -x_201 = x_216; -goto block_210; -} -} -else -{ -lean_object* x_217; -x_217 = lean_box(0); -x_201 = x_217; -goto block_210; -} -} -else -{ -lean_dec(x_174); -x_176 = x_199; -x_177 = x_200; -goto block_198; -} -block_210: -{ -uint8_t x_202; -lean_dec(x_201); -x_202 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_200, x_174); -if (x_202 == 0) -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; -x_203 = lean_box(0); -lean_inc(x_174); -x_204 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_200, x_174, x_203); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_205 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_174, x_204); -x_206 = lean_ctor_get(x_205, 0); -lean_inc(x_206); -x_207 = lean_ctor_get(x_205, 1); -lean_inc(x_207); -lean_dec(x_205); -x_208 = lean_unbox(x_206); -lean_dec(x_206); -x_176 = x_208; -x_177 = x_207; -goto block_198; -} -else +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) { uint8_t x_209; -lean_dec(x_174); +lean_dec(x_169); x_209 = 0; -x_176 = x_209; -x_177 = x_200; -goto block_198; -} -} -} -block_228: -{ -uint8_t x_220; -lean_dec(x_219); -x_220 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_173); -if (x_220 == 0) -{ -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; -x_221 = lean_box(0); -lean_inc(x_173); -x_222 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_173, x_221); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_223 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_173, x_222); -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = lean_unbox(x_224); -lean_dec(x_224); -x_199 = x_226; -x_200 = x_225; -goto block_218; +x_171 = x_209; +x_172 = x_195; +goto block_193; } else { -uint8_t x_227; -lean_dec(x_173); -x_227 = 0; -x_199 = x_227; -x_200 = x_5; -goto block_218; +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; } } } case 10: { -lean_object* x_236; lean_object* x_237; uint8_t x_246; -x_236 = lean_ctor_get(x_4, 1); -lean_inc(x_236); +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); lean_dec(x_4); -x_246 = lean_expr_has_expr_mvar(x_236); -if (x_246 == 0) +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) { -uint8_t x_247; -x_247 = lean_expr_has_level_mvar(x_236); -if (x_247 == 0) +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) { -uint8_t x_248; -x_248 = lean_expr_has_fvar(x_236); -if (x_248 == 0) +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) { -uint8_t x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_236); +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_249 = 0; -x_250 = lean_box(x_249); -x_251 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_5); -return x_251; +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; } else { -lean_object* x_252; -x_252 = lean_box(0); -x_237 = x_252; -goto block_245; +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; } } else { -lean_object* x_253; -x_253 = lean_box(0); -x_237 = x_253; -goto block_245; +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; } } else { -lean_object* x_254; -x_254 = lean_box(0); -x_237 = x_254; -goto block_245; +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; } -block_245: +block_240: { -uint8_t x_238; -lean_dec(x_237); -x_238 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_236); -if (x_238 == 0) +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) { -lean_object* x_239; lean_object* x_240; -x_239 = lean_box(0); -lean_inc(x_236); -x_240 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_236, x_239); -x_4 = x_236; -x_5 = x_240; +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; goto _start; } else { -uint8_t x_242; lean_object* x_243; lean_object* x_244; -lean_dec(x_236); +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_242 = 0; -x_243 = lean_box(x_242); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_5); -return x_244; +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; } } } case 11: { -lean_object* x_255; lean_object* x_256; uint8_t x_265; -x_255 = lean_ctor_get(x_4, 2); -lean_inc(x_255); +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); lean_dec(x_4); -x_265 = lean_expr_has_expr_mvar(x_255); -if (x_265 == 0) +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) { -uint8_t x_266; -x_266 = lean_expr_has_level_mvar(x_255); -if (x_266 == 0) +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) { -uint8_t x_267; -x_267 = lean_expr_has_fvar(x_255); -if (x_267 == 0) +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) { -uint8_t x_268; lean_object* x_269; lean_object* x_270; -lean_dec(x_255); +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_268 = 0; -x_269 = lean_box(x_268); -x_270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_5); -return x_270; +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; } else { -lean_object* x_271; -x_271 = lean_box(0); -x_256 = x_271; -goto block_264; +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; } } else { -lean_object* x_272; -x_272 = lean_box(0); -x_256 = x_272; -goto block_264; +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; } } else { -lean_object* x_273; -x_273 = lean_box(0); -x_256 = x_273; -goto block_264; +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; } -block_264: +block_259: { -uint8_t x_257; -lean_dec(x_256); -x_257 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_255); -if (x_257 == 0) +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) { -lean_object* x_258; lean_object* x_259; -x_258 = lean_box(0); -lean_inc(x_255); -x_259 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_255, x_258); -x_4 = x_255; -x_5 = x_259; +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; goto _start; } else { -uint8_t x_261; lean_object* x_262; lean_object* x_263; -lean_dec(x_255); +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_261 = 0; -x_262 = lean_box(x_261); -x_263 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_263, 0, x_262); -lean_ctor_set(x_263, 1, x_5); -return x_263; +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; } } } default: { -uint8_t x_274; lean_object* x_275; lean_object* x_276; +uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_274 = 0; -x_275 = lean_box(x_274); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_5); -return x_276; +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; } } } @@ -13184,14 +13448,14 @@ x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___m return x_2; } } -lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_6; -x_6 = l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; +uint8_t x_4; lean_object* x_5; +x_4 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(x_1, x_2, x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; } } lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -13204,6 +13468,16 @@ x_5 = lean_box(x_4); return x_5; } } +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2___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_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -13214,31 +13488,11 @@ x_5 = lean_box(x_4); return x_5; } } -lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___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_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__3(x_1, x_2); -lean_dec(x_2); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__6___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__6(x_1, x_2, x_3); -lean_dec(x_2); -x_5 = lean_box(x_4); -return x_5; -} -} -lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__2(x_1, x_2); +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1(x_1, x_2); lean_dec(x_2); x_4 = lean_box(x_3); return x_4; @@ -13635,11 +13889,26195 @@ x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_localDeclDependsO return x_2; } } +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_5 = l_panicWithPos___rarg___closed__1; +x_6 = lean_string_append(x_5, x_1); +x_7 = l_panicWithPos___rarg___closed__2; +x_8 = lean_string_append(x_6, x_7); +x_9 = l_Nat_repr(x_2); +x_10 = lean_string_append(x_8, x_9); +lean_dec(x_9); +x_11 = l_panicWithPos___rarg___closed__2; +x_12 = lean_string_append(x_10, x_11); +x_13 = l_Nat_repr(x_3); +x_14 = lean_string_append(x_12, x_13); +lean_dec(x_13); +x_15 = l_panicWithPos___rarg___closed__3; +x_16 = lean_string_append(x_14, x_15); +x_17 = lean_string_append(x_16, x_4); +x_18 = l_Lean_LocalDecl_Inhabited; +x_19 = lean_panic_fn(x_17); +return x_19; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +lean_dec(x_1); +x_6 = l_Array_empty___closed__1; +x_7 = x_3; +return x_7; +} +else +{ +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; +x_8 = lean_array_fget(x_3, x_2); +x_9 = lean_box(0); +lean_inc(x_8); +x_10 = x_9; +x_11 = lean_array_fset(x_3, x_2, x_10); +lean_inc(x_1); +x_12 = l_Lean_LocalContext_findFVar(x_1, x_8); +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_2, x_13); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_15 = l_Option_get_x21___rarg___closed__1; +x_16 = lean_unsigned_to_nat(16u); +x_17 = lean_unsigned_to_nat(12u); +x_18 = l_Option_get_x21___rarg___closed__2; +x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(x_15, x_16, x_17, x_18); +x_20 = l_Lean_LocalDecl_userName(x_19); +lean_dec(x_19); +x_21 = l_System_FilePath_dirName___closed__1; +x_22 = l_Lean_Name_toStringWithSep___main(x_21, x_20); +x_23 = l_Char_HasRepr___closed__1; +x_24 = lean_string_append(x_23, x_22); +lean_dec(x_22); +x_25 = lean_string_append(x_24, x_23); +x_26 = x_25; +x_27 = lean_array_fset(x_11, x_2, x_26); +lean_dec(x_2); +x_2 = x_14; +x_3 = x_27; +goto _start; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_29 = lean_ctor_get(x_12, 0); +lean_inc(x_29); +lean_dec(x_12); +x_30 = l_Lean_LocalDecl_userName(x_29); +lean_dec(x_29); +x_31 = l_System_FilePath_dirName___closed__1; +x_32 = l_Lean_Name_toStringWithSep___main(x_31, x_30); +x_33 = l_Char_HasRepr___closed__1; +x_34 = lean_string_append(x_33, x_32); +lean_dec(x_32); +x_35 = lean_string_append(x_34, x_33); +x_36 = x_35; +x_37 = lean_array_fset(x_11, x_2, x_36); +lean_dec(x_2); +x_2 = x_14; +x_3 = x_37; +goto _start; +} +} +} +} +lean_object* l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4(uint8_t x_1, lean_object* x_2) { +_start: +{ +if (x_1 == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = l_String_splitAux___main___closed__1; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_dec(x_2); +x_6 = l_List_reprAux___main___rarg___closed__1; +x_7 = lean_string_append(x_6, x_4); +lean_dec(x_4); +x_8 = l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4(x_1, x_5); +x_9 = lean_string_append(x_7, x_8); +lean_dec(x_8); +return x_9; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_10; +x_10 = l_String_splitAux___main___closed__1; +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +x_13 = 0; +x_14 = l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4(x_13, x_12); +x_15 = lean_string_append(x_11, x_14); +lean_dec(x_14); +return x_15; +} +} +} +} +lean_object* l_List_toString___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__3(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_List_repr___rarg___closed__1; +return x_2; +} +else +{ +uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_3 = 1; +x_4 = l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4(x_3, x_1); +x_5 = l_List_repr___rarg___closed__2; +x_6 = lean_string_append(x_5, x_4); +lean_dec(x_4); +x_7 = l_List_repr___rarg___closed__3; +x_8 = lean_string_append(x_6, x_7); +return x_8; +} +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to revert "); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", '"); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' depends on them, and it is an auxiliary declaration created by the elaborator"); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" (possible solution: use tactic 'clear' to remove '"); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' from local context)"); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to create binding due to read only metavariable"); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to create auxiliary metavariable"); +return x_1; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBindingException_toStr(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__2(x_2, x_5, x_3); +x_7 = l_Array_toList___rarg(x_6); +lean_dec(x_6); +x_8 = l_List_toString___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__3(x_7); +x_9 = l_Array_HasRepr___rarg___closed__1; +x_10 = lean_string_append(x_9, x_8); +lean_dec(x_8); +x_11 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__1; +x_12 = lean_string_append(x_11, x_10); +lean_dec(x_10); +x_13 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__2; +x_14 = lean_string_append(x_12, x_13); +x_15 = l_Lean_LocalDecl_userName(x_4); +lean_dec(x_4); +x_16 = l_System_FilePath_dirName___closed__1; +x_17 = l_Lean_Name_toStringWithSep___main(x_16, x_15); +x_18 = lean_string_append(x_14, x_17); +x_19 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__3; +x_20 = lean_string_append(x_18, x_19); +x_21 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__4; +x_22 = lean_string_append(x_20, x_21); +x_23 = lean_string_append(x_22, x_17); +lean_dec(x_17); +x_24 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__5; +x_25 = lean_string_append(x_23, x_24); +return x_25; +} +case 1: +{ +lean_object* x_26; +lean_dec(x_1); +x_26 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__6; +return x_26; +} +default: +{ +lean_object* x_27; +x_27 = l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__7; +return x_27; +} +} +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1___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_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = l_List_toStringAux___main___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__4(x_3, x_2); +return x_4; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_HasToString___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBindingException_toStr), 1, 0); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBindingException_HasToString() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_AbstractMetavarContext_MkBindingException_HasToString___closed__1; +return x_1; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 2); +lean_inc(x_3); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_2); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 2); +x_5 = lean_apply_1(x_1, x_4); +lean_ctor_set(x_2, 2, x_5); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_2); +return x_7; +} +else +{ +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; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_ctor_get(x_2, 2); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_2); +x_11 = lean_apply_1(x_1, x_10); +x_12 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_9); +lean_ctor_set(x_12, 2, x_11); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1___boxed), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_EState_MonadState___closed__2; +x_2 = l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1; +x_3 = lean_alloc_closure((void*)(l_EState_bind___rarg), 3, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__2), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2; +x_2 = l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__3; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4; +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___lambda__1(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +lean_inc(x_3); +x_7 = lean_apply_3(x_1, x_3, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_expr_abstract_range(x_9, x_4, x_3); +lean_dec(x_3); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_10); +return x_7; +} +else +{ +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_inc(x_11); +lean_dec(x_7); +x_13 = lean_expr_abstract_range(x_11, x_4, x_3); +lean_dec(x_3); +lean_dec(x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +else +{ +uint8_t x_15; +lean_dec(x_3); +x_15 = !lean_is_exclusive(x_7); +if (x_15 == 0) +{ +return x_7; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_abstractRange___rarg___boxed), 6, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange___rarg___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_AbstractMetavarContext_MkBinding_abstractRange___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_abstractRange___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_abstractRange(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* _init_l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_EIO_Monad___closed__1; +x_2 = l_Lean_exprIsInhabited; +x_3 = l_monadInhabited___rarg(x_1, x_2); +return x_3; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___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; 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_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_6 = l_panicWithPos___rarg___closed__1; +x_7 = lean_string_append(x_6, x_1); +x_8 = l_panicWithPos___rarg___closed__2; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_Nat_repr(x_2); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +x_12 = l_panicWithPos___rarg___closed__2; +x_13 = lean_string_append(x_11, x_12); +x_14 = l_Nat_repr(x_3); +x_15 = lean_string_append(x_13, x_14); +lean_dec(x_14); +x_16 = l_panicWithPos___rarg___closed__3; +x_17 = lean_string_append(x_15, x_16); +x_18 = lean_string_append(x_17, x_4); +x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; +x_20 = lean_panic_fn(x_18); +x_21 = lean_apply_1(x_20, x_5); +return x_21; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Lean_exprIsInhabited; +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); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_11 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; +x_12 = lean_unsigned_to_nat(380u); +x_13 = lean_unsigned_to_nat(16u); +x_14 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +x_15 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg(x_11, x_12, x_13, x_14, x_7); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* 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); +lean_inc(x_1); +x_20 = lean_apply_3(x_4, x_1, x_18, x_7); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_expr_abstract_range(x_22, x_2, x_1); +lean_dec(x_1); +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_6); +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_6); +lean_ctor_set(x_20, 0, x_25); +return x_20; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = lean_expr_abstract_range(x_26, x_2, x_1); +lean_dec(x_1); +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_6); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +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_6); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_27); +return x_32; +} +} +} +else +{ +uint8_t x_33; +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_20); +if (x_33 == 0) +{ +return x_20; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_20, 0); +x_35 = lean_ctor_get(x_20, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_20); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_16, 2); +lean_inc(x_37); +x_38 = lean_ctor_get(x_16, 3); +lean_inc(x_38); +x_39 = lean_ctor_get(x_16, 4); +lean_inc(x_39); +lean_dec(x_16); +lean_inc(x_4); +lean_inc(x_1); +x_40 = lean_apply_3(x_4, x_1, x_38, x_7); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_expr_abstract_range(x_41, x_2, x_1); +lean_dec(x_41); +lean_inc(x_1); +x_44 = lean_apply_3(x_4, x_1, x_39, x_42); +if (lean_obj_tag(x_44) == 0) +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_expr_abstract_range(x_46, x_2, x_1); +lean_dec(x_1); +lean_dec(x_46); +x_48 = lean_expr_mk_let(x_37, x_43, x_47, x_6); +lean_ctor_set(x_44, 0, x_48); +return x_44; +} +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); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_44); +x_51 = lean_expr_abstract_range(x_49, x_2, x_1); +lean_dec(x_1); +lean_dec(x_49); +x_52 = lean_expr_mk_let(x_37, x_43, 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 +{ +uint8_t x_54; +lean_dec(x_43); +lean_dec(x_37); +lean_dec(x_6); +lean_dec(x_1); +x_54 = !lean_is_exclusive(x_44); +if (x_54 == 0) +{ +return x_44; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_44, 0); +x_56 = lean_ctor_get(x_44, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_44); +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; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_40); +if (x_58 == 0) +{ +return x_40; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_40, 0); +x_60 = lean_ctor_get(x_40, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_40); +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; +} +} +} +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg(uint8_t 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: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_6, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_6, x_11); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +x_14 = lean_box(x_1); +lean_inc(x_2); +lean_inc(x_3); +lean_inc(x_12); +lean_inc(x_4); +x_15 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___lambda__1___boxed), 7, 6); +lean_closure_set(x_15, 0, x_4); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_2); +lean_closure_set(x_15, 4, x_14); +lean_closure_set(x_15, 5, x_7); +x_16 = lean_box(x_1); +x_17 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___boxed), 8, 6); +lean_closure_set(x_17, 0, x_16); +lean_closure_set(x_17, 1, x_2); +lean_closure_set(x_17, 2, x_3); +lean_closure_set(x_17, 3, x_4); +lean_closure_set(x_17, 4, x_5); +lean_closure_set(x_17, 5, x_12); +x_18 = lean_apply_5(x_13, lean_box(0), lean_box(0), x_15, x_17, x_8); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_ctor_get(x_5, 0); +lean_inc(x_19); +lean_dec(x_5); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_apply_3(x_20, lean_box(0), x_7, x_8); +return x_21; +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_get_size(x_4); +lean_inc(x_2); +lean_inc(x_4); +x_8 = lean_apply_3(x_2, x_4, x_5, x_6); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_expr_abstract_range(x_9, x_7, x_4); +lean_dec(x_9); +x_12 = l_EIO_Monad___closed__1; +x_13 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg(x_1, x_2, x_3, x_4, x_12, x_7, x_11, x_10); +lean_dec(x_7); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_14 = !lean_is_exclusive(x_8); +if (x_14 == 0) +{ +return x_8; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_8); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg___boxed), 6, 0); +return x_3; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___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_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___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* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_5); +lean_dec(x_5); +x_9 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___lambda__1(x_1, x_2, x_3, x_4, x_8, x_6, x_7); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_1); +lean_dec(x_1); +x_10 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__2___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_10; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkLambda___rarg(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 = 1; +x_7 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg(x_6, x_1, x_2, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkLambda(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkLambda___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkLambda___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_mkLambda(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForall___rarg(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 = 0; +x_7 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___rarg(x_6, x_1, x_2, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForall(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkForall___rarg), 5, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForall___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_mkForall(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1(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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_9 = l_Lean_LocalContext_findFVar(x_1, x_8); +lean_dec(x_8); +x_10 = l_Lean_LocalDecl_index(x_5); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_13 = l_Option_get_x21___rarg___closed__1; +x_14 = lean_unsigned_to_nat(16u); +x_15 = lean_unsigned_to_nat(12u); +x_16 = l_Option_get_x21___rarg___closed__2; +x_17 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(x_13, x_14, x_15, x_16); +x_18 = l_Lean_LocalDecl_index(x_17); +x_19 = lean_nat_dec_lt(x_18, x_10); +lean_dec(x_10); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_dec(x_17); +x_4 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +x_4 = x_12; +x_5 = x_17; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_9, 0); +lean_inc(x_22); +lean_dec(x_9); +x_23 = l_Lean_LocalDecl_index(x_22); +x_24 = lean_nat_dec_lt(x_23, x_10); +lean_dec(x_10); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_dec(x_22); +x_4 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +x_4 = x_12; +x_5 = x_22; +goto _start; +} +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__2(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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_9 = l_Lean_LocalContext_findFVar(x_1, x_8); +lean_dec(x_8); +x_10 = l_Lean_LocalDecl_index(x_5); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_13 = l_Option_get_x21___rarg___closed__1; +x_14 = lean_unsigned_to_nat(16u); +x_15 = lean_unsigned_to_nat(12u); +x_16 = l_Option_get_x21___rarg___closed__2; +x_17 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(x_13, x_14, x_15, x_16); +x_18 = l_Lean_LocalDecl_index(x_17); +x_19 = lean_nat_dec_lt(x_18, x_10); +lean_dec(x_10); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_dec(x_17); +x_4 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +x_4 = x_12; +x_5 = x_17; +goto _start; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_9, 0); +lean_inc(x_22); +lean_dec(x_9); +x_23 = l_Lean_LocalDecl_index(x_22); +x_24 = lean_nat_dec_lt(x_23, x_10); +lean_dec(x_10); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_dec(x_22); +x_4 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +x_4 = x_12; +x_5 = x_22; +goto _start; +} +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx(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 = l_Lean_exprIsInhabited; +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_array_get(x_3, x_2, x_4); +lean_inc(x_1); +x_6 = l_Lean_LocalContext_findFVar(x_1, x_5); +lean_dec(x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = l_Option_get_x21___rarg___closed__1; +x_8 = lean_unsigned_to_nat(16u); +x_9 = lean_unsigned_to_nat(12u); +x_10 = l_Option_get_x21___rarg___closed__2; +x_11 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(x_7, x_8, x_9, x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1(x_1, x_2, x_2, x_12, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_6, 0); +lean_inc(x_14); +lean_dec(x_6); +x_15 = lean_unsigned_to_nat(1u); +x_16 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__2(x_1, x_2, x_2, x_15, x_14); +return x_16; +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1___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_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__1(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_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__2___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_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_Lean_LocalDecl_name(x_1); +x_9 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_10 = lean_name_dec_eq(x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_3 = x_12; +goto _start; +} +else +{ +lean_dec(x_3); +return x_10; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_9 = lean_name_dec_eq(x_8, x_1); +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_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_dec(x_3); +return x_9; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__6(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__7(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__4(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__8(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__4(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__12(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__13(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__10(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__14(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__10(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__18(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__19(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__16(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__20(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__16(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__25(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__24(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__25(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__22(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__26(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__22(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__31(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__30(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__31(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__28(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__32(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__28(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__37(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__36(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__37(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__38(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__34(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__38(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__34(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__42(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__41(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__43(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__42(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__43(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__44(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__41(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__44(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__40(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__48(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__47(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__49(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__48(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__49(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__50(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__47(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__50(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_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: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__46(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg___boxed), 5, 0); +return x_2; +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__54(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__53(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__55(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__54(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__55(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__56(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__53(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__56(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 1: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_ctor_get(x_4, 0); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_6, x_2, x_7); +lean_dec(x_6); +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_5); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_1, 5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +x_13 = lean_apply_2(x_12, x_3, x_11); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_1, 7); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_apply_2(x_14, x_3, x_11); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__52(x_2, x_17); +lean_dec(x_17); +x_19 = lean_box(x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_31; +lean_dec(x_11); +x_21 = lean_ctor_get(x_13, 0); +lean_inc(x_21); +lean_dec(x_13); +x_31 = lean_expr_has_expr_mvar(x_21); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = lean_expr_has_level_mvar(x_21); +if (x_32 == 0) +{ +uint8_t x_33; +x_33 = lean_expr_has_fvar(x_21); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_5); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_22 = x_37; +goto block_30; +} +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_22 = x_38; +goto block_30; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_22 = x_39; +goto block_30; +} +block_30: +{ +uint8_t x_23; +lean_dec(x_22); +x_23 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +lean_inc(x_21); +x_25 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_21, x_24); +x_4 = x_21; +x_5 = x_25; +goto _start; +} +else +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_21); +lean_dec(x_3); +lean_dec(x_1); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +return x_29; +} +} +} +} +case 5: +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_67; uint8_t x_77; +x_40 = lean_ctor_get(x_4, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 1); +lean_inc(x_41); +lean_dec(x_4); +x_77 = lean_expr_has_expr_mvar(x_41); +if (x_77 == 0) +{ +uint8_t x_78; +x_78 = lean_expr_has_level_mvar(x_41); +if (x_78 == 0) +{ +uint8_t x_79; +x_79 = lean_expr_has_fvar(x_41); +if (x_79 == 0) +{ +uint8_t x_80; +lean_dec(x_41); +x_80 = 0; +x_42 = x_80; +x_43 = x_5; +goto block_66; +} +else +{ +lean_object* x_81; +x_81 = lean_box(0); +x_67 = x_81; +goto block_76; +} +} +else +{ +lean_object* x_82; +x_82 = lean_box(0); +x_67 = x_82; +goto block_76; +} +} +else +{ +lean_object* x_83; +x_83 = lean_box(0); +x_67 = x_83; +goto block_76; +} +block_66: +{ +if (x_42 == 0) +{ +uint8_t x_44; +x_44 = l_Lean_Expr_isApp(x_40); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_54; +x_54 = lean_expr_has_expr_mvar(x_40); +if (x_54 == 0) +{ +uint8_t x_55; +x_55 = lean_expr_has_level_mvar(x_40); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_fvar(x_40); +if (x_56 == 0) +{ +uint8_t x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_57 = 0; +x_58 = lean_box(x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_43); +return x_59; +} +else +{ +lean_object* x_60; +x_60 = lean_box(0); +x_45 = x_60; +goto block_53; +} +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_45 = x_61; +goto block_53; +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_45 = x_62; +goto block_53; +} +block_53: +{ +uint8_t x_46; +lean_dec(x_45); +x_46 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_43, x_40); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_box(0); +lean_inc(x_40); +x_48 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_43, x_40, x_47); +x_4 = x_40; +x_5 = x_48; +goto _start; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_40); +lean_dec(x_3); +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_43); +return x_52; +} +} +} +else +{ +x_4 = x_40; +x_5 = x_43; +goto _start; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_40); +lean_dec(x_3); +lean_dec(x_1); +x_64 = lean_box(x_42); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_43); +return x_65; +} +} +block_76: +{ +uint8_t x_68; +lean_dec(x_67); +x_68 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_41); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_69 = lean_box(0); +lean_inc(x_41); +x_70 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_41, x_69); +lean_inc(x_3); +lean_inc(x_1); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_1, x_2, x_3, x_41, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_42 = x_74; +x_43 = x_73; +goto block_66; +} +else +{ +uint8_t x_75; +lean_dec(x_41); +x_75 = 0; +x_42 = x_75; +x_43 = x_5; +goto block_66; +} +} +} +case 6: +{ +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_109; uint8_t x_119; +x_84 = lean_ctor_get(x_4, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_4, 2); +lean_inc(x_85); +lean_dec(x_4); +x_119 = lean_expr_has_expr_mvar(x_84); +if (x_119 == 0) +{ +uint8_t x_120; +x_120 = lean_expr_has_level_mvar(x_84); +if (x_120 == 0) +{ +uint8_t x_121; +x_121 = lean_expr_has_fvar(x_84); +if (x_121 == 0) +{ +uint8_t x_122; +lean_dec(x_84); +x_122 = 0; +x_86 = x_122; +x_87 = x_5; +goto block_108; +} +else +{ +lean_object* x_123; +x_123 = lean_box(0); +x_109 = x_123; +goto block_118; +} +} +else +{ +lean_object* x_124; +x_124 = lean_box(0); +x_109 = x_124; +goto block_118; +} +} +else +{ +lean_object* x_125; +x_125 = lean_box(0); +x_109 = x_125; +goto block_118; +} +block_108: +{ +if (x_86 == 0) +{ +lean_object* x_88; uint8_t x_97; +x_97 = lean_expr_has_expr_mvar(x_85); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = lean_expr_has_level_mvar(x_85); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = lean_expr_has_fvar(x_85); +if (x_99 == 0) +{ +uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_87); +return x_102; +} +else +{ +lean_object* x_103; +x_103 = lean_box(0); +x_88 = x_103; +goto block_96; +} +} +else +{ +lean_object* x_104; +x_104 = lean_box(0); +x_88 = x_104; +goto block_96; +} +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_88 = x_105; +goto block_96; +} +block_96: +{ +uint8_t x_89; +lean_dec(x_88); +x_89 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_87, x_85); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_box(0); +lean_inc(x_85); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_87, x_85, x_90); +x_4 = x_85; +x_5 = x_91; +goto _start; +} +else +{ +uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_93 = 0; +x_94 = lean_box(x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_87); +return x_95; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; +lean_dec(x_85); +lean_dec(x_3); +lean_dec(x_1); +x_106 = lean_box(x_86); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_87); +return x_107; +} +} +block_118: +{ +uint8_t x_110; +lean_dec(x_109); +x_110 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_84); +if (x_110 == 0) +{ +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_111 = lean_box(0); +lean_inc(x_84); +x_112 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_84, x_111); +lean_inc(x_3); +lean_inc(x_1); +x_113 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_1, x_2, x_3, x_84, x_112); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +lean_dec(x_113); +x_116 = lean_unbox(x_114); +lean_dec(x_114); +x_86 = x_116; +x_87 = x_115; +goto block_108; +} +else +{ +uint8_t x_117; +lean_dec(x_84); +x_117 = 0; +x_86 = x_117; +x_87 = x_5; +goto block_108; +} +} +} +case 7: +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_151; uint8_t x_161; +x_126 = lean_ctor_get(x_4, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 2); +lean_inc(x_127); +lean_dec(x_4); +x_161 = lean_expr_has_expr_mvar(x_126); +if (x_161 == 0) +{ +uint8_t x_162; +x_162 = lean_expr_has_level_mvar(x_126); +if (x_162 == 0) +{ +uint8_t x_163; +x_163 = lean_expr_has_fvar(x_126); +if (x_163 == 0) +{ +uint8_t x_164; +lean_dec(x_126); +x_164 = 0; +x_128 = x_164; +x_129 = x_5; +goto block_150; +} +else +{ +lean_object* x_165; +x_165 = lean_box(0); +x_151 = x_165; +goto block_160; +} +} +else +{ +lean_object* x_166; +x_166 = lean_box(0); +x_151 = x_166; +goto block_160; +} +} +else +{ +lean_object* x_167; +x_167 = lean_box(0); +x_151 = x_167; +goto block_160; +} +block_150: +{ +if (x_128 == 0) +{ +lean_object* x_130; uint8_t x_139; +x_139 = lean_expr_has_expr_mvar(x_127); +if (x_139 == 0) +{ +uint8_t x_140; +x_140 = lean_expr_has_level_mvar(x_127); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = lean_expr_has_fvar(x_127); +if (x_141 == 0) +{ +uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_142 = 0; +x_143 = lean_box(x_142); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_129); +return x_144; +} +else +{ +lean_object* x_145; +x_145 = lean_box(0); +x_130 = x_145; +goto block_138; +} +} +else +{ +lean_object* x_146; +x_146 = lean_box(0); +x_130 = x_146; +goto block_138; +} +} +else +{ +lean_object* x_147; +x_147 = lean_box(0); +x_130 = x_147; +goto block_138; +} +block_138: +{ +uint8_t x_131; +lean_dec(x_130); +x_131 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_129, x_127); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_box(0); +lean_inc(x_127); +x_133 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_129, x_127, x_132); +x_4 = x_127; +x_5 = x_133; +goto _start; +} +else +{ +uint8_t x_135; lean_object* x_136; lean_object* x_137; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_135 = 0; +x_136 = lean_box(x_135); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; +lean_dec(x_127); +lean_dec(x_3); +lean_dec(x_1); +x_148 = lean_box(x_128); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_129); +return x_149; +} +} +block_160: +{ +uint8_t x_152; +lean_dec(x_151); +x_152 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_126); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; +x_153 = lean_box(0); +lean_inc(x_126); +x_154 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_126, x_153); +lean_inc(x_3); +lean_inc(x_1); +x_155 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_1, x_2, x_3, x_126, x_154); +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +lean_dec(x_155); +x_158 = lean_unbox(x_156); +lean_dec(x_156); +x_128 = x_158; +x_129 = x_157; +goto block_150; +} +else +{ +uint8_t x_159; +lean_dec(x_126); +x_159 = 0; +x_128 = x_159; +x_129 = x_5; +goto block_150; +} +} +} +case 8: +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; lean_object* x_172; uint8_t x_194; lean_object* x_195; lean_object* x_214; uint8_t x_224; +x_168 = lean_ctor_get(x_4, 1); +lean_inc(x_168); +x_169 = lean_ctor_get(x_4, 2); +lean_inc(x_169); +x_170 = lean_ctor_get(x_4, 3); +lean_inc(x_170); +lean_dec(x_4); +x_224 = lean_expr_has_expr_mvar(x_168); +if (x_224 == 0) +{ +uint8_t x_225; +x_225 = lean_expr_has_level_mvar(x_168); +if (x_225 == 0) +{ +uint8_t x_226; +x_226 = lean_expr_has_fvar(x_168); +if (x_226 == 0) +{ +uint8_t x_227; +lean_dec(x_168); +x_227 = 0; +x_194 = x_227; +x_195 = x_5; +goto block_213; +} +else +{ +lean_object* x_228; +x_228 = lean_box(0); +x_214 = x_228; +goto block_223; +} +} +else +{ +lean_object* x_229; +x_229 = lean_box(0); +x_214 = x_229; +goto block_223; +} +} +else +{ +lean_object* x_230; +x_230 = lean_box(0); +x_214 = x_230; +goto block_223; +} +block_193: +{ +if (x_171 == 0) +{ +lean_object* x_173; uint8_t x_182; +x_182 = lean_expr_has_expr_mvar(x_170); +if (x_182 == 0) +{ +uint8_t x_183; +x_183 = lean_expr_has_level_mvar(x_170); +if (x_183 == 0) +{ +uint8_t x_184; +x_184 = lean_expr_has_fvar(x_170); +if (x_184 == 0) +{ +uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_185 = 0; +x_186 = lean_box(x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_172); +return x_187; +} +else +{ +lean_object* x_188; +x_188 = lean_box(0); +x_173 = x_188; +goto block_181; +} +} +else +{ +lean_object* x_189; +x_189 = lean_box(0); +x_173 = x_189; +goto block_181; +} +} +else +{ +lean_object* x_190; +x_190 = lean_box(0); +x_173 = x_190; +goto block_181; +} +block_181: +{ +uint8_t x_174; +lean_dec(x_173); +x_174 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_172, x_170); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; +x_175 = lean_box(0); +lean_inc(x_170); +x_176 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_172, x_170, x_175); +x_4 = x_170; +x_5 = x_176; +goto _start; +} +else +{ +uint8_t x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_178 = 0; +x_179 = lean_box(x_178); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_172); +return x_180; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +lean_dec(x_170); +lean_dec(x_3); +lean_dec(x_1); +x_191 = lean_box(x_171); +x_192 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_192, 0, x_191); +lean_ctor_set(x_192, 1, x_172); +return x_192; +} +} +block_213: +{ +lean_object* x_196; +if (x_194 == 0) +{ +uint8_t x_206; +x_206 = lean_expr_has_expr_mvar(x_169); +if (x_206 == 0) +{ +uint8_t x_207; +x_207 = lean_expr_has_level_mvar(x_169); +if (x_207 == 0) +{ +uint8_t x_208; +x_208 = lean_expr_has_fvar(x_169); +if (x_208 == 0) +{ +uint8_t x_209; +lean_dec(x_169); +x_209 = 0; +x_171 = x_209; +x_172 = x_195; +goto block_193; +} +else +{ +lean_object* x_210; +x_210 = lean_box(0); +x_196 = x_210; +goto block_205; +} +} +else +{ +lean_object* x_211; +x_211 = lean_box(0); +x_196 = x_211; +goto block_205; +} +} +else +{ +lean_object* x_212; +x_212 = lean_box(0); +x_196 = x_212; +goto block_205; +} +} +else +{ +lean_dec(x_169); +x_171 = x_194; +x_172 = x_195; +goto block_193; +} +block_205: +{ +uint8_t x_197; +lean_dec(x_196); +x_197 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_195, x_169); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; +x_198 = lean_box(0); +lean_inc(x_169); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_195, x_169, x_198); +lean_inc(x_3); +lean_inc(x_1); +x_200 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_1, x_2, x_3, x_169, x_199); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +x_203 = lean_unbox(x_201); +lean_dec(x_201); +x_171 = x_203; +x_172 = x_202; +goto block_193; +} +else +{ +uint8_t x_204; +lean_dec(x_169); +x_204 = 0; +x_171 = x_204; +x_172 = x_195; +goto block_193; +} +} +} +block_223: +{ +uint8_t x_215; +lean_dec(x_214); +x_215 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_168); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; +x_216 = lean_box(0); +lean_inc(x_168); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_168, x_216); +lean_inc(x_3); +lean_inc(x_1); +x_218 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_1, x_2, x_3, x_168, x_217); +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +x_221 = lean_unbox(x_219); +lean_dec(x_219); +x_194 = x_221; +x_195 = x_220; +goto block_213; +} +else +{ +uint8_t x_222; +lean_dec(x_168); +x_222 = 0; +x_194 = x_222; +x_195 = x_5; +goto block_213; +} +} +} +case 10: +{ +lean_object* x_231; lean_object* x_232; uint8_t x_241; +x_231 = lean_ctor_get(x_4, 1); +lean_inc(x_231); +lean_dec(x_4); +x_241 = lean_expr_has_expr_mvar(x_231); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_231); +if (x_242 == 0) +{ +uint8_t x_243; +x_243 = lean_expr_has_fvar(x_231); +if (x_243 == 0) +{ +uint8_t x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_244 = 0; +x_245 = lean_box(x_244); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_5); +return x_246; +} +else +{ +lean_object* x_247; +x_247 = lean_box(0); +x_232 = x_247; +goto block_240; +} +} +else +{ +lean_object* x_248; +x_248 = lean_box(0); +x_232 = x_248; +goto block_240; +} +} +else +{ +lean_object* x_249; +x_249 = lean_box(0); +x_232 = x_249; +goto block_240; +} +block_240: +{ +uint8_t x_233; +lean_dec(x_232); +x_233 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_231); +if (x_233 == 0) +{ +lean_object* x_234; lean_object* x_235; +x_234 = lean_box(0); +lean_inc(x_231); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_231, x_234); +x_4 = x_231; +x_5 = x_235; +goto _start; +} +else +{ +uint8_t x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_231); +lean_dec(x_3); +lean_dec(x_1); +x_237 = 0; +x_238 = lean_box(x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_5); +return x_239; +} +} +} +case 11: +{ +lean_object* x_250; lean_object* x_251; uint8_t x_260; +x_250 = lean_ctor_get(x_4, 2); +lean_inc(x_250); +lean_dec(x_4); +x_260 = lean_expr_has_expr_mvar(x_250); +if (x_260 == 0) +{ +uint8_t x_261; +x_261 = lean_expr_has_level_mvar(x_250); +if (x_261 == 0) +{ +uint8_t x_262; +x_262 = lean_expr_has_fvar(x_250); +if (x_262 == 0) +{ +uint8_t x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_263 = 0; +x_264 = lean_box(x_263); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_5); +return x_265; +} +else +{ +lean_object* x_266; +x_266 = lean_box(0); +x_251 = x_266; +goto block_259; +} +} +else +{ +lean_object* x_267; +x_267 = lean_box(0); +x_251 = x_267; +goto block_259; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_251 = x_268; +goto block_259; +} +block_259: +{ +uint8_t x_252; +lean_dec(x_251); +x_252 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_5, x_250); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; +x_253 = lean_box(0); +lean_inc(x_250); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_5, x_250, x_253); +x_4 = x_250; +x_5 = x_254; +goto _start; +} +else +{ +uint8_t x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_250); +lean_dec(x_3); +lean_dec(x_1); +x_256 = 0; +x_257 = lean_box(x_256); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_5); +return x_258; +} +} +} +default: +{ +uint8_t x_269; lean_object* x_270; lean_object* x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_269 = 0; +x_270 = lean_box(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_5); +return x_271; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61___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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg(x_1, x_9, x_5); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_4, x_15); +lean_dec(x_4); +x_4 = x_16; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62___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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_10 = lean_apply_2(x_1, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_4, x_15); +lean_dec(x_4); +x_4 = x_16; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_PersistentArray_foldlMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61___rarg(x_1, x_4, x_4, x_5, x_3); +return x_6; +} +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62___rarg(x_1, x_7, x_7, x_8, x_3); +return x_9; +} +} +} +lean_object* l_PersistentArray_foldlMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg___boxed), 3, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63___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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg(x_1, x_9, x_5); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_4, x_15); +lean_dec(x_4); +x_4 = x_16; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64___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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_1); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_10 = lean_apply_2(x_1, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_4, x_15); +lean_dec(x_4); +x_4 = x_16; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___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) +{ +lean_object* x_6; size_t x_7; lean_object* x_8; 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; +x_6 = lean_ctor_get(x_2, 0); +x_7 = x_3 >> x_4; +x_8 = lean_usize_to_nat(x_7); +x_9 = l_PersistentArray_getAux___main___rarg___closed__1; +x_10 = lean_array_get(x_9, x_6, x_8); +x_11 = 1; +x_12 = x_11 << x_4; +x_13 = x_12 - x_11; +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___rarg(x_1, x_10, x_14, x_16, x_5); +lean_dec(x_10); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +lean_dec(x_8); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +return x_17; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_20, 0, x_19); +return x_20; +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_17, 0); +lean_inc(x_21); +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63___rarg(x_1, x_6, x_6, x_23, x_21); +return x_24; +} +} +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64___rarg(x_1, x_25, x_25, x_26, x_5); +return x_27; +} +} +} +lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlFromMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65___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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_fget(x_3, x_4); +lean_inc(x_2); +x_10 = lean_apply_2(x_2, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_4, x_15); +lean_dec(x_4); +x_4 = x_16; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66___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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_fget(x_3, x_4); +lean_inc(x_2); +x_10 = lean_apply_2(x_2, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_4, x_15); +lean_dec(x_4); +x_4 = x_16; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___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; +x_5 = lean_ctor_get(x_1, 3); +x_6 = lean_nat_dec_le(x_5, x_4); +if (x_6 == 0) +{ +lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___rarg(x_2, x_7, x_8, x_9, x_3); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65___rarg(x_1, x_2, x_15, x_16, x_14); +return x_17; +} +} +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66___rarg(x_1, x_2, x_18, x_19, x_3); +return x_20; +} +} +} +lean_object* l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg___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) +{ +lean_object* x_7; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_5); +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_19; uint8_t x_20; +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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__1(x_8, x_2, x_19); +if (x_20 == 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); +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); +lean_dec(x_4); +lean_dec(x_3); +x_25 = 0; +x_9 = x_25; +goto block_18; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_26 = l_HashMap_Inhabited___closed__1; +x_27 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_3, x_5, x_4, 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_9 = x_29; +goto block_18; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = l_HashMap_Inhabited___closed__1; +x_31 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_3, x_5, x_4, x_21, 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; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = l_HashMap_Inhabited___closed__1; +x_35 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_3, x_5, x_4, x_21, x_34); +x_36 = lean_ctor_get(x_35, 0); +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 +{ +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); +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; +} +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_inc(x_4); +lean_inc(x_3); +x_62 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_3, x_5, x_4, 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; +} +} +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_inc(x_4); +lean_inc(x_3); +x_67 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_3, x_5, x_4, 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; +} +} +else +{ +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_4); +lean_inc(x_3); +x_72 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_3, x_5, x_4, 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_40 == 0) +{ +uint8_t x_42; +x_42 = lean_expr_has_fvar(x_39); +if (x_42 == 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_dec(x_39); +lean_dec(x_4); +lean_dec(x_3); +x_45 = 0; +x_9 = x_45; +goto block_18; +} +else +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_3, x_5, x_4, 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; +} +} +else +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_3, x_5, x_4, x_39, x_41); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +lean_dec(x_49); +x_51 = lean_unbox(x_50); +lean_dec(x_50); +x_9 = x_51; +goto block_18; +} +} +else +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_3, x_5, x_4, 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_dec(x_39); +lean_dec(x_4); +lean_dec(x_3); +x_9 = x_40; +goto block_18; +} +} +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_76 = 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; +} +block_18: +{ +if (x_9 == 0) +{ +lean_object* x_10; +lean_dec(x_8); +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; +} +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_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_dec(x_5); +x_16 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_2); +lean_ctor_set(x_16, 2, x_8); +x_17 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +} +} +} +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg(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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg___lambda__1), 6, 4); +lean_closure_set(x_9, 0, x_3); +lean_closure_set(x_9, 1, x_4); +lean_closure_set(x_9, 2, x_1); +lean_closure_set(x_9, 3, x_2); +x_10 = l_Lean_LocalDecl_index(x_7); +x_11 = l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___rarg(x_8, x_9, x_6, x_10); +lean_dec(x_10); +return x_11; +} +} +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg___boxed), 7, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_collectDeps___rarg(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; uint8_t x_7; +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_5, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_inc(x_3); +x_8 = l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx(x_3, x_4); +x_9 = lean_mk_empty_array_with_capacity(x_5); +lean_dec(x_5); +lean_inc(x_3); +x_10 = l_Lean_LocalContext_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg(x_1, x_2, x_3, x_4, x_3, x_9, x_8); +lean_dec(x_8); +lean_dec(x_3); +return x_10; +} +else +{ +lean_object* x_11; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_4); +return x_11; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_collectDeps(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_collectDeps___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__1___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__2(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__6___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__6(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__7___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__7(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__5(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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__8___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__8(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__4(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__3___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__12___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__12(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__13___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__13(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__11(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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__14___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__14(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__10___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__10(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__9___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__18___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__18(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__19___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__19(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__17(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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__20___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__20(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__16___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__16(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__15___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__24___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__24(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__25___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__25(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__23(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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__26___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__26(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__22___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__22(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__21___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__30___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__30(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__31___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__31(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__29(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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__32___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__32(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__28___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__28(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__27___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__36___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__36(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__37___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__37(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__35(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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__38___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__38(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__34___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__34(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__33___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__42___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__42(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__43___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__43(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__44___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__44(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__39___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__48___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__48(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__49___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__49(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__50___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__50(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__45___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__54___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__54(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__55___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__55(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_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_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__56___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_Array_anyMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__56(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_MkBinding_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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___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_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__51___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__61___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_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__62___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__60___rarg(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__63___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_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__64___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_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +size_t x_6; size_t x_7; lean_object* x_8; +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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__59___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_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__65___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_Lean_AbstractMetavarContext_MkBinding_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) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__66___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg___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_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__57___rarg(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; +} +} +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___spec__1(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; +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_eq(x_3, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +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 = l_Lean_Expr_fvarId_x21(x_10); +lean_dec(x_10); +x_12 = lean_local_ctx_erase(x_5, x_11); +x_3 = x_9; +x_4 = lean_box(0); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_3); +return x_5; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_array_get_size(x_2); +x_4 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___spec__1(x_2, x_2, x_3, lean_box(0), x_1); +return x_4; +} +} +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___spec__1___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___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_visit___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_expr_has_expr_mvar(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_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_7, x_2); +lean_dec(x_7); +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_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_14, x_2, x_13); +lean_ctor_set(x_11, 2, x_15); +return x_9; +} +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_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +lean_inc(x_16); +x_20 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +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_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} else { + lean_dec_ref(x_52); + x_57 = lean_box(0); +} +lean_inc(x_53); +x_58 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_56, x_2, x_53); +if (lean_is_scalar(x_57)) { + x_59 = lean_alloc_ctor(0, 3, 0); +} else { + x_59 = x_57; +} +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; +} +} +else +{ +uint8_t x_61; +lean_dec(x_2); +x_61 = !lean_is_exclusive(x_39); +if (x_61 == 0) +{ +return x_39; +} +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; +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; +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; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_visit(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_visit___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_visit___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_visit(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getMCtx___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getMCtx(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_getMCtx___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getMCtx___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_getMCtx(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkFreshId___rarg(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = !lean_is_exclusive(x_1); +if (x_2 == 0) +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_1, 1); +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = lean_ctor_get(x_3, 0); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_inc(x_5); +x_7 = lean_name_mk_numeral(x_5, x_6); +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_6, x_8); +lean_dec(x_6); +lean_ctor_set(x_3, 1, x_9); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_7); +lean_ctor_set(x_10, 1, x_1); +return x_10; +} +else +{ +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_11 = lean_ctor_get(x_3, 0); +x_12 = lean_ctor_get(x_3, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_3); +lean_inc(x_12); +lean_inc(x_11); +x_13 = lean_name_mk_numeral(x_11, x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_12, x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set(x_1, 1, x_16); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_1); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_18 = lean_ctor_get(x_1, 1); +x_19 = lean_ctor_get(x_1, 0); +x_20 = lean_ctor_get(x_1, 2); +lean_inc(x_20); +lean_inc(x_18); +lean_inc(x_19); +lean_dec(x_1); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_23 = x_18; +} else { + lean_dec_ref(x_18); + x_23 = lean_box(0); +} +lean_inc(x_22); +lean_inc(x_21); +x_24 = lean_name_mk_numeral(x_21, x_22); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_add(x_22, x_25); +lean_dec(x_22); +if (lean_is_scalar(x_23)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_23; +} +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_19); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 2, x_20); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_24); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkFreshId(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkFreshId___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkFreshId___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_mkFreshId(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getInScope___spec__1(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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_fget(x_3, x_4); +x_9 = l_Lean_Expr_fvarId_x21(x_8); +x_10 = l_Lean_LocalContext_contains(x_1, x_9); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_4, x_11); +lean_dec(x_4); +if (x_10 == 0) +{ +lean_dec(x_8); +x_4 = x_12; +goto _start; +} +else +{ +lean_object* x_14; +x_14 = lean_array_push(x_5, x_8); +x_4 = x_12; +x_5 = x_14; +goto _start; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getInScope(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Array_empty___closed__1; +x_5 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getInScope___spec__1(x_1, x_2, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_getInScope___spec__1___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_Lean_AbstractMetavarContext_MkBinding_getInScope___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getInScope___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_getInScope(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_withFreshCache___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_ctor_get(x_2, 2); +x_5 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_2, 2, x_5); +x_6 = lean_apply_1(x_1, x_2); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_6, 1); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_8, 2); +lean_dec(x_10); +lean_ctor_set(x_8, 2, x_4); +return x_6; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_8); +x_13 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set(x_13, 2, x_4); +lean_ctor_set(x_6, 1, x_13); +return x_6; +} +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_6, 1); +x_15 = lean_ctor_get(x_6, 0); +lean_inc(x_14); +lean_inc(x_15); +lean_dec(x_6); +x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + lean_ctor_release(x_14, 2); + x_18 = x_14; +} else { + lean_dec_ref(x_14); + x_18 = lean_box(0); +} +if (lean_is_scalar(x_18)) { + x_19 = lean_alloc_ctor(0, 3, 0); +} else { + x_19 = x_18; +} +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_17); +lean_ctor_set(x_19, 2, x_4); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_15); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +lean_dec(x_4); +x_21 = !lean_is_exclusive(x_6); +if (x_21 == 0) +{ +return x_6; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_6, 0); +x_23 = lean_ctor_get(x_6, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_6); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +else +{ +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_2, 0); +x_26 = lean_ctor_get(x_2, 1); +x_27 = lean_ctor_get(x_2, 2); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_2); +x_28 = l_HashMap_Inhabited___closed__1; +x_29 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_29, 0, x_25); +lean_ctor_set(x_29, 1, x_26); +lean_ctor_set(x_29, 2, x_28); +x_30 = lean_apply_1(x_1, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_33 = x_30; +} else { + lean_dec_ref(x_30); + x_33 = lean_box(0); +} +x_34 = lean_ctor_get(x_31, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_31, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + lean_ctor_release(x_31, 2); + x_36 = x_31; +} else { + lean_dec_ref(x_31); + x_36 = lean_box(0); +} +if (lean_is_scalar(x_36)) { + x_37 = lean_alloc_ctor(0, 3, 0); +} else { + x_37 = x_36; +} +lean_ctor_set(x_37, 0, x_34); +lean_ctor_set(x_37, 1, x_35); +lean_ctor_set(x_37, 2, x_27); +if (lean_is_scalar(x_33)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_33; +} +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_27); +x_39 = lean_ctor_get(x_30, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_30, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_41 = x_30; +} else { + lean_dec_ref(x_30); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_withFreshCache(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_withFreshCache___rarg), 2, 0); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_withFreshCache___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_AbstractMetavarContext_MkBinding_withFreshCache(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___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; 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_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_6 = l_panicWithPos___rarg___closed__1; +x_7 = lean_string_append(x_6, x_1); +x_8 = l_panicWithPos___rarg___closed__2; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_Nat_repr(x_2); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +x_12 = l_panicWithPos___rarg___closed__2; +x_13 = lean_string_append(x_11, x_12); +x_14 = l_Nat_repr(x_3); +x_15 = lean_string_append(x_13, x_14); +lean_dec(x_14); +x_16 = l_panicWithPos___rarg___closed__3; +x_17 = lean_string_append(x_15, x_16); +x_18 = lean_string_append(x_17, x_4); +x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; +x_20 = lean_panic_fn(x_18); +x_21 = lean_apply_1(x_20, x_5); +return x_21; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; +x_8 = l_Lean_exprIsInhabited; +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); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_11 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; +x_12 = lean_unsigned_to_nat(380u); +x_13 = lean_unsigned_to_nat(16u); +x_14 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +x_15 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___rarg(x_11, x_12, x_13, x_14, x_7); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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; +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) +{ +lean_dec(x_6); +x_20 = x_18; +x_21 = x_7; +goto block_27; +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_7); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_7, 2); +x_32 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_32); +lean_inc(x_1); +x_33 = lean_apply_3(x_6, x_1, x_18, x_7); +if (lean_obj_tag(x_33) == 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_dec(x_33); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) +{ +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; +} +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_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_5); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_33); +if (x_41 == 0) +{ +return x_33; +} +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; +} +} +} +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_7, 0); +x_46 = lean_ctor_get(x_7, 1); +x_47 = lean_ctor_get(x_7, 2); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_7); +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_6, x_1, x_18, x_49); +if (lean_obj_tag(x_50) == 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; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_47); +lean_dec(x_17); +lean_dec(x_5); +lean_dec(x_1); +x_57 = lean_ctor_get(x_50, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_50, 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; +} +} +} +} +else +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_7); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_7, 2); +x_63 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_63); +lean_inc(x_1); +x_64 = lean_apply_3(x_6, x_1, x_18, x_7); +if (lean_obj_tag(x_64) == 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_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; +} +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); +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; +} +} +else +{ +uint8_t x_72; +lean_dec(x_62); +lean_dec(x_17); +lean_dec(x_5); +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_7, 0); +x_77 = lean_ctor_get(x_7, 1); +x_78 = lean_ctor_get(x_7, 2); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_7); +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_6, x_1, x_18, x_80); +if (lean_obj_tag(x_81) == 0) +{ +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_inc(x_82); +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_ctor_get(x_82, 0); +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_5); +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_4 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_expr_mk_forall(x_17, x_19, x_22, x_5); +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_5); +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; uint8_t x_204; +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_expr_has_expr_mvar(x_93); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_level_mvar(x_93); +if (x_205 == 0) +{ +x_95 = x_93; +x_96 = x_7; +goto block_203; +} +else +{ +uint8_t x_206; +x_206 = !lean_is_exclusive(x_7); +if (x_206 == 0) +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_7, 2); +x_208 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_208); +lean_inc(x_6); +lean_inc(x_1); +x_209 = lean_apply_3(x_6, x_1, x_93, x_7); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; lean_object* x_211; uint8_t x_212; +x_210 = lean_ctor_get(x_209, 1); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 0); +lean_inc(x_211); +lean_dec(x_209); +x_212 = !lean_is_exclusive(x_210); +if (x_212 == 0) +{ +lean_object* x_213; +x_213 = lean_ctor_get(x_210, 2); +lean_dec(x_213); +lean_ctor_set(x_210, 2, x_207); +x_95 = x_211; +x_96 = x_210; +goto block_203; +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_210, 0); +x_215 = lean_ctor_get(x_210, 1); +lean_inc(x_215); +lean_inc(x_214); +lean_dec(x_210); +x_216 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_216, 0, x_214); +lean_ctor_set(x_216, 1, x_215); +lean_ctor_set(x_216, 2, x_207); +x_95 = x_211; +x_96 = x_216; +goto block_203; +} +} +else +{ +uint8_t x_217; +lean_dec(x_207); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_217 = !lean_is_exclusive(x_209); +if (x_217 == 0) +{ +return x_209; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_209, 0); +x_219 = lean_ctor_get(x_209, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_209); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; +} +} +} +else +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_221 = lean_ctor_get(x_7, 0); +x_222 = lean_ctor_get(x_7, 1); +x_223 = lean_ctor_get(x_7, 2); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_221); +lean_dec(x_7); +x_224 = l_HashMap_Inhabited___closed__1; +x_225 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_225, 0, x_221); +lean_ctor_set(x_225, 1, x_222); +lean_ctor_set(x_225, 2, x_224); +lean_inc(x_6); +lean_inc(x_1); +x_226 = lean_apply_3(x_6, x_1, x_93, x_225); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +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_ctor_get(x_227, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_227, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + lean_ctor_release(x_227, 2); + x_231 = x_227; +} else { + lean_dec_ref(x_227); + x_231 = lean_box(0); +} +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(0, 3, 0); +} else { + x_232 = x_231; +} +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +lean_ctor_set(x_232, 2, x_223); +x_95 = x_228; +x_96 = x_232; +goto block_203; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_223); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_233 = lean_ctor_get(x_226, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_226, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_235 = x_226; +} else { + lean_dec_ref(x_226); + x_235 = lean_box(0); +} +if (lean_is_scalar(x_235)) { + x_236 = lean_alloc_ctor(1, 2, 0); +} else { + x_236 = x_235; +} +lean_ctor_set(x_236, 0, x_233); +lean_ctor_set(x_236, 1, x_234); +return x_236; +} +} +} +} +else +{ +uint8_t x_237; +x_237 = !lean_is_exclusive(x_7); +if (x_237 == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_7, 2); +x_239 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_239); +lean_inc(x_6); +lean_inc(x_1); +x_240 = lean_apply_3(x_6, x_1, x_93, x_7); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; lean_object* x_242; uint8_t x_243; +x_241 = lean_ctor_get(x_240, 1); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 0); +lean_inc(x_242); +lean_dec(x_240); +x_243 = !lean_is_exclusive(x_241); +if (x_243 == 0) +{ +lean_object* x_244; +x_244 = lean_ctor_get(x_241, 2); +lean_dec(x_244); +lean_ctor_set(x_241, 2, x_238); +x_95 = x_242; +x_96 = x_241; +goto block_203; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_241, 0); +x_246 = lean_ctor_get(x_241, 1); +lean_inc(x_246); +lean_inc(x_245); +lean_dec(x_241); +x_247 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_247, 0, x_245); +lean_ctor_set(x_247, 1, x_246); +lean_ctor_set(x_247, 2, x_238); +x_95 = x_242; +x_96 = x_247; +goto block_203; +} +} +else +{ +uint8_t x_248; +lean_dec(x_238); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_248 = !lean_is_exclusive(x_240); +if (x_248 == 0) +{ +return x_240; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_240, 0); +x_250 = lean_ctor_get(x_240, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_240); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_249); +lean_ctor_set(x_251, 1, x_250); +return x_251; +} +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_252 = lean_ctor_get(x_7, 0); +x_253 = lean_ctor_get(x_7, 1); +x_254 = lean_ctor_get(x_7, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_7); +x_255 = l_HashMap_Inhabited___closed__1; +x_256 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_256, 0, x_252); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_255); +lean_inc(x_6); +lean_inc(x_1); +x_257 = lean_apply_3(x_6, x_1, x_93, x_256); +if (lean_obj_tag(x_257) == 0) +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_258 = lean_ctor_get(x_257, 1); +lean_inc(x_258); +x_259 = lean_ctor_get(x_257, 0); +lean_inc(x_259); +lean_dec(x_257); +x_260 = lean_ctor_get(x_258, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_258, 1); +lean_inc(x_261); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + lean_ctor_release(x_258, 2); + x_262 = x_258; +} else { + lean_dec_ref(x_258); + x_262 = lean_box(0); +} +if (lean_is_scalar(x_262)) { + x_263 = lean_alloc_ctor(0, 3, 0); +} else { + x_263 = x_262; +} +lean_ctor_set(x_263, 0, x_260); +lean_ctor_set(x_263, 1, x_261); +lean_ctor_set(x_263, 2, x_254); +x_95 = x_259; +x_96 = x_263; +goto block_203; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_dec(x_254); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_264 = lean_ctor_get(x_257, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_257, 1); +lean_inc(x_265); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_266 = x_257; +} else { + lean_dec_ref(x_257); + x_266 = lean_box(0); +} +if (lean_is_scalar(x_266)) { + x_267 = lean_alloc_ctor(1, 2, 0); +} else { + x_267 = x_266; +} +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_265); +return x_267; +} +} +} +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_6); +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_5); +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_6, 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_5); +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_5); +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_5); +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_5); +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_6, 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_5); +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_5); +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_6, 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; +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_5); +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_5); +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); +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_5); +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; +} +} +else +{ +uint8_t x_179; +lean_dec(x_154); +lean_dec(x_97); +lean_dec(x_92); +lean_dec(x_5); +lean_dec(x_1); +x_179 = !lean_is_exclusive(x_156); +if (x_179 == 0) +{ +return x_156; +} +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_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); +return x_182; +} +} +} +else +{ +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_6, x_1, x_94, x_187); +if (lean_obj_tag(x_188) == 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_dec(x_1); +lean_dec(x_190); +x_197 = lean_expr_mk_let(x_92, x_97, x_196, x_5); +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; +} +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); +lean_dec(x_5); +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); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +} +} +} +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_6, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_6, x_11); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +x_14 = lean_box(x_2); +lean_inc(x_1); +lean_inc(x_3); +lean_inc(x_12); +lean_inc(x_4); +x_15 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___lambda__1___boxed), 7, 6); +lean_closure_set(x_15, 0, x_4); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_14); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_1); +x_16 = lean_box(x_2); +x_17 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___boxed), 8, 6); +lean_closure_set(x_17, 0, x_1); +lean_closure_set(x_17, 1, x_16); +lean_closure_set(x_17, 2, x_3); +lean_closure_set(x_17, 3, x_4); +lean_closure_set(x_17, 4, x_5); +lean_closure_set(x_17, 5, x_12); +x_18 = lean_apply_5(x_13, lean_box(0), lean_box(0), x_15, x_17, x_8); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_ctor_get(x_5, 0); +lean_inc(x_19); +lean_dec(x_5); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_apply_3(x_20, lean_box(0), x_7, x_8); +return x_21; +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_4); +x_8 = lean_expr_has_expr_mvar(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_dec(x_5); +x_11 = l_EIO_Monad___closed__1; +x_12 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(x_1, x_2, x_3, x_4, x_11, x_7, x_10, x_6); +lean_dec(x_7); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_6); +if (x_13 == 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_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) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_16, 1); +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_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_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(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_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_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(x_1, x_2, x_3, x_4, x_28, x_7, x_27, x_26); +lean_dec(x_7); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_14); +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) +{ +return x_16; +} +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_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; +} +} +} +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_inc(x_35); +lean_inc(x_34); +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); +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) +{ +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_inc(x_40); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 0); +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_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(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; +} else { + lean_dec_ref(x_39); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +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_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(x_1, x_2, x_3, x_4, x_62, x_7, x_61, x_57); +lean_dec(x_7); +return x_63; +} +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_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(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_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; +} else { + lean_dec_ref(x_80); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(0, 3, 0); +} else { + x_85 = x_84; +} +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_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(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_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg___boxed), 6, 0); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForallAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = 0; +x_8 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg(x_2, x_7, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForallAux(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkForallAux___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___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_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__2___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___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* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_4); +lean_dec(x_4); +x_9 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___lambda__1(x_1, x_2, x_3, x_8, x_5, x_6, x_7); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__3___rarg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_10; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_2); +lean_dec(x_2); +x_8 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___rarg(x_1, x_7, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_mkForallAux___spec__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkForallAux___rarg___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_AbstractMetavarContext_MkBinding_mkForallAux___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_4, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_dec(x_4); +lean_dec(x_1); +return x_5; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_array_fget(x_3, x_4); +lean_inc(x_1); +x_9 = l_Lean_LocalContext_findFVar(x_1, x_8); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_12 = l_Option_get_x21___rarg___closed__1; +x_13 = lean_unsigned_to_nat(16u); +x_14 = lean_unsigned_to_nat(12u); +x_15 = l_Option_get_x21___rarg___closed__2; +x_16 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBindingException_toStr___spec__1(x_12, x_13, x_14, x_15); +x_17 = l_Lean_LocalDecl_isLet(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_expr_mk_app(x_5, x_8); +x_4 = x_11; +x_5 = x_18; +goto _start; +} +else +{ +lean_dec(x_8); +x_4 = x_11; +goto _start; +} +} +else +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_9, 0); +lean_inc(x_21); +lean_dec(x_9); +x_22 = l_Lean_LocalDecl_isLet(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_expr_mk_app(x_5, x_8); +x_4 = x_11; +x_5 = x_23; +goto _start; +} +else +{ +lean_dec(x_8); +x_4 = x_11; +goto _start; +} +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkMVarApp(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_1, x_3, x_3, x_4, x_2); +return x_5; +} +} +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1___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_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_AbstractMetavarContext_MkBinding_mkMVarApp(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___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; 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_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_6 = l_panicWithPos___rarg___closed__1; +x_7 = lean_string_append(x_6, x_1); +x_8 = l_panicWithPos___rarg___closed__2; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_Nat_repr(x_2); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +x_12 = l_panicWithPos___rarg___closed__2; +x_13 = lean_string_append(x_11, x_12); +x_14 = l_Nat_repr(x_3); +x_15 = lean_string_append(x_13, x_14); +lean_dec(x_14); +x_16 = l_panicWithPos___rarg___closed__3; +x_17 = lean_string_append(x_15, x_16); +x_18 = lean_string_append(x_17, x_4); +x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; +x_20 = lean_panic_fn(x_18); +x_21 = lean_apply_1(x_20, x_5); +return x_21; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; +x_8 = l_Lean_exprIsInhabited; +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); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +lean_dec(x_5); +x_11 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; +x_12 = lean_unsigned_to_nat(380u); +x_13 = lean_unsigned_to_nat(16u); +x_14 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +x_15 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___rarg(x_11, x_12, x_13, x_14, x_7); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +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; +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) +{ +lean_dec(x_6); +x_20 = x_18; +x_21 = x_7; +goto block_27; +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_7); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_7, 2); +x_32 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_32); +x_33 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_18, x_7); +if (lean_obj_tag(x_33) == 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_dec(x_33); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) +{ +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; +} +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_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_5); +x_41 = !lean_is_exclusive(x_33); +if (x_41 == 0) +{ +return x_33; +} +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; +} +} +} +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_7, 0); +x_46 = lean_ctor_get(x_7, 1); +x_47 = lean_ctor_get(x_7, 2); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_7); +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); +x_50 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_18, x_49); +if (lean_obj_tag(x_50) == 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; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_47); +lean_dec(x_17); +lean_dec(x_5); +x_57 = lean_ctor_get(x_50, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_50, 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; +} +} +} +} +else +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_7); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_7, 2); +x_63 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_63); +x_64 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_18, x_7); +if (lean_obj_tag(x_64) == 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_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; +} +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); +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; +} +} +else +{ +uint8_t x_72; +lean_dec(x_62); +lean_dec(x_17); +lean_dec(x_5); +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_7, 0); +x_77 = lean_ctor_get(x_7, 1); +x_78 = lean_ctor_get(x_7, 2); +lean_inc(x_78); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_7); +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); +x_81 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_18, x_80); +if (lean_obj_tag(x_81) == 0) +{ +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_inc(x_82); +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_ctor_get(x_82, 0); +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_5); +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_20); +if (x_4 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_expr_mk_forall(x_17, x_19, x_22, x_5); +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_5); +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; uint8_t x_204; +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_expr_has_expr_mvar(x_93); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_level_mvar(x_93); +if (x_205 == 0) +{ +x_95 = x_93; +x_96 = x_7; +goto block_203; +} +else +{ +uint8_t x_206; +x_206 = !lean_is_exclusive(x_7); +if (x_206 == 0) +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_7, 2); +x_208 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_208); +lean_inc(x_6); +x_209 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_93, x_7); +if (lean_obj_tag(x_209) == 0) +{ +lean_object* x_210; lean_object* x_211; uint8_t x_212; +x_210 = lean_ctor_get(x_209, 1); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 0); +lean_inc(x_211); +lean_dec(x_209); +x_212 = !lean_is_exclusive(x_210); +if (x_212 == 0) +{ +lean_object* x_213; +x_213 = lean_ctor_get(x_210, 2); +lean_dec(x_213); +lean_ctor_set(x_210, 2, x_207); +x_95 = x_211; +x_96 = x_210; +goto block_203; +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_210, 0); +x_215 = lean_ctor_get(x_210, 1); +lean_inc(x_215); +lean_inc(x_214); +lean_dec(x_210); +x_216 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_216, 0, x_214); +lean_ctor_set(x_216, 1, x_215); +lean_ctor_set(x_216, 2, x_207); +x_95 = x_211; +x_96 = x_216; +goto block_203; +} +} +else +{ +uint8_t x_217; +lean_dec(x_207); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +x_217 = !lean_is_exclusive(x_209); +if (x_217 == 0) +{ +return x_209; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_209, 0); +x_219 = lean_ctor_get(x_209, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_209); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; +} +} +} +else +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_221 = lean_ctor_get(x_7, 0); +x_222 = lean_ctor_get(x_7, 1); +x_223 = lean_ctor_get(x_7, 2); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_221); +lean_dec(x_7); +x_224 = l_HashMap_Inhabited___closed__1; +x_225 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_225, 0, x_221); +lean_ctor_set(x_225, 1, x_222); +lean_ctor_set(x_225, 2, x_224); +lean_inc(x_6); +x_226 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_93, x_225); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +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_ctor_get(x_227, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_227, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + lean_ctor_release(x_227, 2); + x_231 = x_227; +} else { + lean_dec_ref(x_227); + x_231 = lean_box(0); +} +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(0, 3, 0); +} else { + x_232 = x_231; +} +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +lean_ctor_set(x_232, 2, x_223); +x_95 = x_228; +x_96 = x_232; +goto block_203; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_223); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +x_233 = lean_ctor_get(x_226, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_226, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_235 = x_226; +} else { + lean_dec_ref(x_226); + x_235 = lean_box(0); +} +if (lean_is_scalar(x_235)) { + x_236 = lean_alloc_ctor(1, 2, 0); +} else { + x_236 = x_235; +} +lean_ctor_set(x_236, 0, x_233); +lean_ctor_set(x_236, 1, x_234); +return x_236; +} +} +} +} +else +{ +uint8_t x_237; +x_237 = !lean_is_exclusive(x_7); +if (x_237 == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_7, 2); +x_239 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_7, 2, x_239); +lean_inc(x_6); +x_240 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_93, x_7); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; lean_object* x_242; uint8_t x_243; +x_241 = lean_ctor_get(x_240, 1); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 0); +lean_inc(x_242); +lean_dec(x_240); +x_243 = !lean_is_exclusive(x_241); +if (x_243 == 0) +{ +lean_object* x_244; +x_244 = lean_ctor_get(x_241, 2); +lean_dec(x_244); +lean_ctor_set(x_241, 2, x_238); +x_95 = x_242; +x_96 = x_241; +goto block_203; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_241, 0); +x_246 = lean_ctor_get(x_241, 1); +lean_inc(x_246); +lean_inc(x_245); +lean_dec(x_241); +x_247 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_247, 0, x_245); +lean_ctor_set(x_247, 1, x_246); +lean_ctor_set(x_247, 2, x_238); +x_95 = x_242; +x_96 = x_247; +goto block_203; +} +} +else +{ +uint8_t x_248; +lean_dec(x_238); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +x_248 = !lean_is_exclusive(x_240); +if (x_248 == 0) +{ +return x_240; +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_240, 0); +x_250 = lean_ctor_get(x_240, 1); +lean_inc(x_250); +lean_inc(x_249); +lean_dec(x_240); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_249); +lean_ctor_set(x_251, 1, x_250); +return x_251; +} +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_252 = lean_ctor_get(x_7, 0); +x_253 = lean_ctor_get(x_7, 1); +x_254 = lean_ctor_get(x_7, 2); +lean_inc(x_254); +lean_inc(x_253); +lean_inc(x_252); +lean_dec(x_7); +x_255 = l_HashMap_Inhabited___closed__1; +x_256 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_256, 0, x_252); +lean_ctor_set(x_256, 1, x_253); +lean_ctor_set(x_256, 2, x_255); +lean_inc(x_6); +x_257 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_93, x_256); +if (lean_obj_tag(x_257) == 0) +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_258 = lean_ctor_get(x_257, 1); +lean_inc(x_258); +x_259 = lean_ctor_get(x_257, 0); +lean_inc(x_259); +lean_dec(x_257); +x_260 = lean_ctor_get(x_258, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_258, 1); +lean_inc(x_261); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + lean_ctor_release(x_258, 2); + x_262 = x_258; +} else { + lean_dec_ref(x_258); + x_262 = lean_box(0); +} +if (lean_is_scalar(x_262)) { + x_263 = lean_alloc_ctor(0, 3, 0); +} else { + x_263 = x_262; +} +lean_ctor_set(x_263, 0, x_260); +lean_ctor_set(x_263, 1, x_261); +lean_ctor_set(x_263, 2, x_254); +x_95 = x_259; +x_96 = x_263; +goto block_203; +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_dec(x_254); +lean_dec(x_94); +lean_dec(x_92); +lean_dec(x_6); +lean_dec(x_5); +x_264 = lean_ctor_get(x_257, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_257, 1); +lean_inc(x_265); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_266 = x_257; +} else { + lean_dec_ref(x_257); + x_266 = lean_box(0); +} +if (lean_is_scalar(x_266)) { + x_267 = lean_alloc_ctor(1, 2, 0); +} else { + x_267 = x_266; +} +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_265); +return x_267; +} +} +} +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_6); +x_100 = lean_expr_abstract_range(x_94, x_2, x_1); +lean_dec(x_94); +x_101 = lean_expr_mk_let(x_92, x_97, x_100, x_5); +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); +x_106 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, 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_110); +x_113 = lean_expr_mk_let(x_92, x_97, x_112, x_5); +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_114); +x_119 = lean_expr_mk_let(x_92, x_97, x_118, x_5); +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_121); +x_127 = lean_expr_mk_let(x_92, x_97, x_126, x_5); +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_5); +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); +x_138 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, 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_140); +x_147 = lean_expr_mk_let(x_92, x_97, x_146, x_5); +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_5); +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); +x_156 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, 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; +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_160); +x_163 = lean_expr_mk_let(x_92, x_97, x_162, x_5); +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_164); +x_169 = lean_expr_mk_let(x_92, x_97, x_168, x_5); +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); +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_171); +x_177 = lean_expr_mk_let(x_92, x_97, x_176, x_5); +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; +} +} +else +{ +uint8_t x_179; +lean_dec(x_154); +lean_dec(x_97); +lean_dec(x_92); +lean_dec(x_5); +x_179 = !lean_is_exclusive(x_156); +if (x_179 == 0) +{ +return x_156; +} +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_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); +return x_182; +} +} +} +else +{ +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); +x_188 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_6, x_1, x_94, x_187); +if (lean_obj_tag(x_188) == 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_dec(x_190); +x_197 = lean_expr_mk_let(x_92, x_97, x_196, x_5); +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; +} +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); +lean_dec(x_5); +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); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +} +} +} +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_6, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_6, x_11); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +x_14 = lean_box(x_2); +lean_inc(x_1); +lean_inc(x_3); +lean_inc(x_12); +lean_inc(x_4); +x_15 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___lambda__1___boxed), 7, 6); +lean_closure_set(x_15, 0, x_4); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_14); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_1); +x_16 = lean_box(x_2); +x_17 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___boxed), 8, 6); +lean_closure_set(x_17, 0, x_1); +lean_closure_set(x_17, 1, x_16); +lean_closure_set(x_17, 2, x_3); +lean_closure_set(x_17, 3, x_4); +lean_closure_set(x_17, 4, x_5); +lean_closure_set(x_17, 5, x_12); +x_18 = lean_apply_5(x_13, lean_box(0), lean_box(0), x_15, x_17, x_8); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_ctor_get(x_5, 0); +lean_inc(x_19); +lean_dec(x_5); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_apply_3(x_20, lean_box(0), x_7, x_8); +return x_21; +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_get_size(x_4); +x_8 = lean_expr_has_expr_mvar(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_dec(x_5); +x_11 = l_EIO_Monad___closed__1; +x_12 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(x_1, x_2, x_3, x_4, x_11, x_7, x_10, x_6); +lean_dec(x_7); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_6); +if (x_13 == 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_inc(x_1); +x_16 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_16, 1); +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_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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(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_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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(x_1, x_2, x_3, x_4, x_28, x_7, x_27, x_26); +lean_dec(x_7); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_14); +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) +{ +return x_16; +} +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_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; +} +} +} +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_inc(x_35); +lean_inc(x_34); +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); +lean_inc(x_1); +x_39 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_4, x_5, x_38); +if (lean_obj_tag(x_39) == 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_inc(x_40); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +lean_dec(x_39); +x_42 = lean_ctor_get(x_40, 0); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(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; +} else { + lean_dec_ref(x_39); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +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); +x_56 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(x_1, x_2, x_3, x_4, x_62, x_7, x_61, x_57); +lean_dec(x_7); +return x_63; +} +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(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_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); +x_79 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(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; +} else { + lean_dec_ref(x_80); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(0, 3, 0); +} else { + x_85 = x_84; +} +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(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_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___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; +x_6 = lean_array_get_size(x_4); +x_7 = lean_nat_dec_lt(x_3, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +lean_dec(x_1); +x_8 = l_Array_empty___closed__1; +x_9 = x_4; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_5); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_23; +x_11 = lean_array_fget(x_4, x_3); +x_12 = lean_box(0); +lean_inc(x_11); +x_13 = x_12; +x_14 = lean_array_fset(x_4, x_3, x_13); +x_23 = lean_expr_has_expr_mvar(x_11); +if (x_23 == 0) +{ +uint8_t x_24; +x_24 = lean_expr_has_level_mvar(x_11); +if (x_24 == 0) +{ +lean_inc(x_11); +x_15 = x_11; +x_16 = x_5; +goto block_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_5, 2); +lean_inc(x_25); +x_26 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_25, x_11); +lean_dec(x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +lean_inc(x_11); +lean_inc(x_1); +x_27 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_11, x_5); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 2); +lean_inc(x_29); +lean_inc(x_11); +x_32 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_31, x_11, x_29); +lean_ctor_set(x_28, 2, x_32); +x_15 = x_29; +x_16 = x_28; +goto block_22; +} +else +{ +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_28, 0); +x_34 = lean_ctor_get(x_28, 1); +x_35 = lean_ctor_get(x_28, 2); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_28); +lean_inc(x_29); +lean_inc(x_11); +x_36 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_35, x_11, x_29); +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_15 = x_29; +x_16 = x_37; +goto block_22; +} +} +else +{ +uint8_t x_38; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_27); +if (x_38 == 0) +{ +return x_27; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_27, 0); +x_40 = lean_ctor_get(x_27, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_27); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_26, 0); +lean_inc(x_42); +lean_dec(x_26); +x_15 = x_42; +x_16 = x_5; +goto block_22; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_5, 2); +lean_inc(x_43); +x_44 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_43, x_11); +lean_dec(x_43); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; +lean_inc(x_11); +lean_inc(x_1); +x_45 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_11, x_5); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 0); +lean_inc(x_47); +lean_dec(x_45); +x_48 = !lean_is_exclusive(x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 2); +lean_inc(x_47); +lean_inc(x_11); +x_50 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_49, x_11, x_47); +lean_ctor_set(x_46, 2, x_50); +x_15 = x_47; +x_16 = x_46; +goto block_22; +} +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); +x_53 = lean_ctor_get(x_46, 2); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_46); +lean_inc(x_47); +lean_inc(x_11); +x_54 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_53, x_11, x_47); +x_55 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_52); +lean_ctor_set(x_55, 2, x_54); +x_15 = x_47; +x_16 = x_55; +goto block_22; +} +} +else +{ +uint8_t x_56; +lean_dec(x_14); +lean_dec(x_11); +lean_dec(x_3); +lean_dec(x_1); +x_56 = !lean_is_exclusive(x_45); +if (x_56 == 0) +{ +return x_45; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_45, 0); +x_58 = lean_ctor_get(x_45, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_45); +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 +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_44, 0); +lean_inc(x_60); +lean_dec(x_44); +x_15 = x_60; +x_16 = x_5; +goto block_22; +} +} +block_22: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_3, x_17); +x_19 = x_15; +x_20 = lean_array_fset(x_14, x_3, x_19); +lean_dec(x_3); +x_3 = x_18; +x_4 = x_20; +x_5 = x_16; +goto _start; +} +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_3)) { +case 0: +{ +lean_object* x_6; lean_object* x_7; uint8_t x_22; +x_22 = lean_expr_has_expr_mvar(x_3); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = lean_expr_has_level_mvar(x_3); +if (x_23 == 0) +{ +x_6 = x_3; +x_7 = x_5; +goto block_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_5, 2); +lean_inc(x_24); +x_25 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_24, x_3); +lean_dec(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +lean_inc(x_3); +lean_inc(x_1); +x_26 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +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); +x_31 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_30, x_3, x_28); +lean_ctor_set(x_27, 2, x_31); +x_6 = x_28; +x_7 = x_27; +goto block_21; +} +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_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +lean_inc(x_28); +x_35 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_34, x_3, 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_6 = x_28; +x_7 = x_36; +goto block_21; +} +} +else +{ +uint8_t x_37; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_26); +if (x_37 == 0) +{ +return x_26; +} +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; +lean_dec(x_3); +x_41 = lean_ctor_get(x_25, 0); +lean_inc(x_41); +lean_dec(x_25); +x_6 = x_41; +x_7 = x_5; +goto block_21; +} +} +} +else +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_5, 2); +lean_inc(x_42); +x_43 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_42, x_3); +lean_dec(x_42); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; +lean_inc(x_3); +lean_inc(x_1); +x_44 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +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_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); +x_49 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_48, x_3, x_46); +lean_ctor_set(x_45, 2, x_49); +x_6 = x_46; +x_7 = x_45; +goto block_21; +} +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); +x_53 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_52, x_3, 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_6 = x_46; +x_7 = x_54; +goto block_21; +} +} +else +{ +uint8_t x_55; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +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; +lean_dec(x_3); +x_59 = lean_ctor_get(x_43, 0); +lean_inc(x_59); +lean_dec(x_43); +x_6 = x_59; +x_7 = x_5; +goto block_21; +} +} +block_21: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_8, x_4, x_7); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +x_12 = l_Lean_mkAppRev(x_6, x_11); +lean_dec(x_11); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = l_Lean_mkAppRev(x_6, x_13); +lean_dec(x_13); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +uint8_t x_17; +lean_dec(x_6); +x_17 = !lean_is_exclusive(x_9); +if (x_17 == 0) +{ +return x_9; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_9, 0); +x_19 = lean_ctor_get(x_9, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_9); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +case 1: +{ +lean_object* x_60; lean_object* x_61; uint8_t x_76; +x_76 = lean_expr_has_expr_mvar(x_3); +if (x_76 == 0) +{ +uint8_t x_77; +x_77 = lean_expr_has_level_mvar(x_3); +if (x_77 == 0) +{ +x_60 = x_3; +x_61 = x_5; +goto block_75; +} +else +{ +lean_object* x_78; lean_object* x_79; +x_78 = lean_ctor_get(x_5, 2); +lean_inc(x_78); +x_79 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_78, x_3); +lean_dec(x_78); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; +lean_inc(x_3); +lean_inc(x_1); +x_80 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 0); +lean_inc(x_82); +lean_dec(x_80); +x_83 = !lean_is_exclusive(x_81); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_81, 2); +lean_inc(x_82); +x_85 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_84, x_3, x_82); +lean_ctor_set(x_81, 2, x_85); +x_60 = x_82; +x_61 = x_81; +goto block_75; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_86 = lean_ctor_get(x_81, 0); +x_87 = lean_ctor_get(x_81, 1); +x_88 = lean_ctor_get(x_81, 2); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_81); +lean_inc(x_82); +x_89 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_88, x_3, x_82); +x_90 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_90, 0, x_86); +lean_ctor_set(x_90, 1, x_87); +lean_ctor_set(x_90, 2, x_89); +x_60 = x_82; +x_61 = x_90; +goto block_75; +} +} +else +{ +uint8_t x_91; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_91 = !lean_is_exclusive(x_80); +if (x_91 == 0) +{ +return x_80; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_80, 0); +x_93 = lean_ctor_get(x_80, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_80); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +else +{ +lean_object* x_95; +lean_dec(x_3); +x_95 = lean_ctor_get(x_79, 0); +lean_inc(x_95); +lean_dec(x_79); +x_60 = x_95; +x_61 = x_5; +goto block_75; +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_5, 2); +lean_inc(x_96); +x_97 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_96, x_3); +lean_dec(x_96); +if (lean_obj_tag(x_97) == 0) +{ +lean_object* x_98; +lean_inc(x_3); +lean_inc(x_1); +x_98 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; lean_object* x_100; uint8_t x_101; +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, 2); +lean_inc(x_100); +x_103 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_102, x_3, x_100); +lean_ctor_set(x_99, 2, x_103); +x_60 = x_100; +x_61 = x_99; +goto block_75; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_104 = lean_ctor_get(x_99, 0); +x_105 = lean_ctor_get(x_99, 1); +x_106 = lean_ctor_get(x_99, 2); +lean_inc(x_106); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_99); +lean_inc(x_100); +x_107 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_106, x_3, x_100); +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); +x_60 = x_100; +x_61 = x_108; +goto block_75; +} +} +else +{ +uint8_t x_109; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_109 = !lean_is_exclusive(x_98); +if (x_109 == 0) +{ +return x_98; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_98, 0); +x_111 = lean_ctor_get(x_98, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_98); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; +} +} +} +else +{ +lean_object* x_113; +lean_dec(x_3); +x_113 = lean_ctor_get(x_97, 0); +lean_inc(x_113); +lean_dec(x_97); +x_60 = x_113; +x_61 = x_5; +goto block_75; +} +} +block_75: +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_unsigned_to_nat(0u); +x_63 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_62, x_4, x_61); +if (lean_obj_tag(x_63) == 0) +{ +uint8_t x_64; +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +x_66 = l_Lean_mkAppRev(x_60, x_65); +lean_dec(x_65); +lean_ctor_set(x_63, 0, x_66); +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_63); +x_69 = l_Lean_mkAppRev(x_60, x_67); +lean_dec(x_67); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +return x_70; +} +} +else +{ +uint8_t x_71; +lean_dec(x_60); +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; +} +} +} +} +case 2: +{ +lean_object* x_114; lean_object* x_115; uint8_t x_130; +x_130 = lean_expr_has_expr_mvar(x_3); +if (x_130 == 0) +{ +uint8_t x_131; +x_131 = lean_expr_has_level_mvar(x_3); +if (x_131 == 0) +{ +x_114 = x_3; +x_115 = x_5; +goto block_129; +} +else +{ +lean_object* x_132; lean_object* x_133; +x_132 = lean_ctor_get(x_5, 2); +lean_inc(x_132); +x_133 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_132, x_3); +lean_dec(x_132); +if (lean_obj_tag(x_133) == 0) +{ +lean_object* x_134; +lean_inc(x_3); +lean_inc(x_1); +x_134 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 0); +lean_inc(x_136); +lean_dec(x_134); +x_137 = !lean_is_exclusive(x_135); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; +x_138 = lean_ctor_get(x_135, 2); +lean_inc(x_136); +x_139 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_138, x_3, x_136); +lean_ctor_set(x_135, 2, x_139); +x_114 = x_136; +x_115 = x_135; +goto block_129; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_140 = lean_ctor_get(x_135, 0); +x_141 = lean_ctor_get(x_135, 1); +x_142 = lean_ctor_get(x_135, 2); +lean_inc(x_142); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_135); +lean_inc(x_136); +x_143 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_142, x_3, x_136); +x_144 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_144, 0, x_140); +lean_ctor_set(x_144, 1, x_141); +lean_ctor_set(x_144, 2, x_143); +x_114 = x_136; +x_115 = x_144; +goto block_129; +} +} +else +{ +uint8_t x_145; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_145 = !lean_is_exclusive(x_134); +if (x_145 == 0) +{ +return x_134; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_134, 0); +x_147 = lean_ctor_get(x_134, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_134); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; +} +} +} +else +{ +lean_object* x_149; +lean_dec(x_3); +x_149 = lean_ctor_get(x_133, 0); +lean_inc(x_149); +lean_dec(x_133); +x_114 = x_149; +x_115 = x_5; +goto block_129; +} +} +} +else +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_5, 2); +lean_inc(x_150); +x_151 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_150, x_3); +lean_dec(x_150); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; +lean_inc(x_3); +lean_inc(x_1); +x_152 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +x_154 = lean_ctor_get(x_152, 0); +lean_inc(x_154); +lean_dec(x_152); +x_155 = !lean_is_exclusive(x_153); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_ctor_get(x_153, 2); +lean_inc(x_154); +x_157 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_156, x_3, x_154); +lean_ctor_set(x_153, 2, x_157); +x_114 = x_154; +x_115 = x_153; +goto block_129; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_158 = lean_ctor_get(x_153, 0); +x_159 = lean_ctor_get(x_153, 1); +x_160 = lean_ctor_get(x_153, 2); +lean_inc(x_160); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_153); +lean_inc(x_154); +x_161 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_160, x_3, x_154); +x_162 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_162, 0, x_158); +lean_ctor_set(x_162, 1, x_159); +lean_ctor_set(x_162, 2, x_161); +x_114 = x_154; +x_115 = x_162; +goto block_129; +} +} +else +{ +uint8_t x_163; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_163 = !lean_is_exclusive(x_152); +if (x_163 == 0) +{ +return x_152; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +x_164 = lean_ctor_get(x_152, 0); +x_165 = lean_ctor_get(x_152, 1); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_152); +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_dec(x_3); +x_167 = lean_ctor_get(x_151, 0); +lean_inc(x_167); +lean_dec(x_151); +x_114 = x_167; +x_115 = x_5; +goto block_129; +} +} +block_129: +{ +lean_object* x_116; lean_object* x_117; +x_116 = lean_unsigned_to_nat(0u); +x_117 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_116, x_4, x_115); +if (lean_obj_tag(x_117) == 0) +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_117, 0); +x_120 = l_Lean_mkAppRev(x_114, x_119); +lean_dec(x_119); +lean_ctor_set(x_117, 0, x_120); +return x_117; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_117, 0); +x_122 = lean_ctor_get(x_117, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_117); +x_123 = l_Lean_mkAppRev(x_114, x_121); +lean_dec(x_121); +x_124 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +else +{ +uint8_t x_125; +lean_dec(x_114); +x_125 = !lean_is_exclusive(x_117); +if (x_125 == 0) +{ +return x_117; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_117, 0); +x_127 = lean_ctor_get(x_117, 1); +lean_inc(x_127); +lean_inc(x_126); +lean_dec(x_117); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_126); +lean_ctor_set(x_128, 1, x_127); +return x_128; +} +} +} +} +case 3: +{ +lean_object* x_168; lean_object* x_169; uint8_t x_184; +x_184 = lean_expr_has_expr_mvar(x_3); +if (x_184 == 0) +{ +uint8_t x_185; +x_185 = lean_expr_has_level_mvar(x_3); +if (x_185 == 0) +{ +x_168 = x_3; +x_169 = x_5; +goto block_183; +} +else +{ +lean_object* x_186; lean_object* x_187; +x_186 = lean_ctor_get(x_5, 2); +lean_inc(x_186); +x_187 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_186, x_3); +lean_dec(x_186); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; +lean_inc(x_3); +lean_inc(x_1); +x_188 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; lean_object* x_190; uint8_t x_191; +x_189 = lean_ctor_get(x_188, 1); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 0); +lean_inc(x_190); +lean_dec(x_188); +x_191 = !lean_is_exclusive(x_189); +if (x_191 == 0) +{ +lean_object* x_192; lean_object* x_193; +x_192 = lean_ctor_get(x_189, 2); +lean_inc(x_190); +x_193 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_192, x_3, x_190); +lean_ctor_set(x_189, 2, x_193); +x_168 = x_190; +x_169 = x_189; +goto block_183; +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_194 = lean_ctor_get(x_189, 0); +x_195 = lean_ctor_get(x_189, 1); +x_196 = lean_ctor_get(x_189, 2); +lean_inc(x_196); +lean_inc(x_195); +lean_inc(x_194); +lean_dec(x_189); +lean_inc(x_190); +x_197 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_196, x_3, x_190); +x_198 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_198, 0, x_194); +lean_ctor_set(x_198, 1, x_195); +lean_ctor_set(x_198, 2, x_197); +x_168 = x_190; +x_169 = x_198; +goto block_183; +} +} +else +{ +uint8_t x_199; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_199 = !lean_is_exclusive(x_188); +if (x_199 == 0) +{ +return x_188; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_200 = lean_ctor_get(x_188, 0); +x_201 = lean_ctor_get(x_188, 1); +lean_inc(x_201); +lean_inc(x_200); +lean_dec(x_188); +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_200); +lean_ctor_set(x_202, 1, x_201); +return x_202; +} +} +} +else +{ +lean_object* x_203; +lean_dec(x_3); +x_203 = lean_ctor_get(x_187, 0); +lean_inc(x_203); +lean_dec(x_187); +x_168 = x_203; +x_169 = x_5; +goto block_183; +} +} +} +else +{ +lean_object* x_204; lean_object* x_205; +x_204 = lean_ctor_get(x_5, 2); +lean_inc(x_204); +x_205 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_204, x_3); +lean_dec(x_204); +if (lean_obj_tag(x_205) == 0) +{ +lean_object* x_206; +lean_inc(x_3); +lean_inc(x_1); +x_206 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_206) == 0) +{ +lean_object* x_207; lean_object* x_208; uint8_t x_209; +x_207 = lean_ctor_get(x_206, 1); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 0); +lean_inc(x_208); +lean_dec(x_206); +x_209 = !lean_is_exclusive(x_207); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; +x_210 = lean_ctor_get(x_207, 2); +lean_inc(x_208); +x_211 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_210, x_3, x_208); +lean_ctor_set(x_207, 2, x_211); +x_168 = x_208; +x_169 = x_207; +goto block_183; +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_212 = lean_ctor_get(x_207, 0); +x_213 = lean_ctor_get(x_207, 1); +x_214 = lean_ctor_get(x_207, 2); +lean_inc(x_214); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_207); +lean_inc(x_208); +x_215 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_214, x_3, x_208); +x_216 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_216, 0, x_212); +lean_ctor_set(x_216, 1, x_213); +lean_ctor_set(x_216, 2, x_215); +x_168 = x_208; +x_169 = x_216; +goto block_183; +} +} +else +{ +uint8_t x_217; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_217 = !lean_is_exclusive(x_206); +if (x_217 == 0) +{ +return x_206; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_206, 0); +x_219 = lean_ctor_get(x_206, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_206); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; +} +} +} +else +{ +lean_object* x_221; +lean_dec(x_3); +x_221 = lean_ctor_get(x_205, 0); +lean_inc(x_221); +lean_dec(x_205); +x_168 = x_221; +x_169 = x_5; +goto block_183; +} +} +block_183: +{ +lean_object* x_170; lean_object* x_171; +x_170 = lean_unsigned_to_nat(0u); +x_171 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_170, x_4, x_169); +if (lean_obj_tag(x_171) == 0) +{ +uint8_t x_172; +x_172 = !lean_is_exclusive(x_171); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +x_173 = lean_ctor_get(x_171, 0); +x_174 = l_Lean_mkAppRev(x_168, x_173); +lean_dec(x_173); +lean_ctor_set(x_171, 0, x_174); +return x_171; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_175 = lean_ctor_get(x_171, 0); +x_176 = lean_ctor_get(x_171, 1); +lean_inc(x_176); +lean_inc(x_175); +lean_dec(x_171); +x_177 = l_Lean_mkAppRev(x_168, x_175); +lean_dec(x_175); +x_178 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +return x_178; +} +} +else +{ +uint8_t x_179; +lean_dec(x_168); +x_179 = !lean_is_exclusive(x_171); +if (x_179 == 0) +{ +return x_171; +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_171, 0); +x_181 = lean_ctor_get(x_171, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_171); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +return x_182; +} +} +} +} +case 4: +{ +lean_object* x_222; lean_object* x_223; uint8_t x_238; +x_238 = lean_expr_has_expr_mvar(x_3); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_3); +if (x_239 == 0) +{ +x_222 = x_3; +x_223 = x_5; +goto block_237; +} +else +{ +lean_object* x_240; lean_object* x_241; +x_240 = lean_ctor_get(x_5, 2); +lean_inc(x_240); +x_241 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_240, x_3); +lean_dec(x_240); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; +lean_inc(x_3); +lean_inc(x_1); +x_242 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +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; lean_object* x_247; +x_246 = lean_ctor_get(x_243, 2); +lean_inc(x_244); +x_247 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_246, x_3, x_244); +lean_ctor_set(x_243, 2, x_247); +x_222 = x_244; +x_223 = x_243; +goto block_237; +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_248 = lean_ctor_get(x_243, 0); +x_249 = lean_ctor_get(x_243, 1); +x_250 = lean_ctor_get(x_243, 2); +lean_inc(x_250); +lean_inc(x_249); +lean_inc(x_248); +lean_dec(x_243); +lean_inc(x_244); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_250, x_3, x_244); +x_252 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_252, 0, x_248); +lean_ctor_set(x_252, 1, x_249); +lean_ctor_set(x_252, 2, x_251); +x_222 = x_244; +x_223 = x_252; +goto block_237; +} +} +else +{ +uint8_t x_253; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_253 = !lean_is_exclusive(x_242); +if (x_253 == 0) +{ +return x_242; +} +else +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_254 = lean_ctor_get(x_242, 0); +x_255 = lean_ctor_get(x_242, 1); +lean_inc(x_255); +lean_inc(x_254); +lean_dec(x_242); +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_254); +lean_ctor_set(x_256, 1, x_255); +return x_256; +} +} +} +else +{ +lean_object* x_257; +lean_dec(x_3); +x_257 = lean_ctor_get(x_241, 0); +lean_inc(x_257); +lean_dec(x_241); +x_222 = x_257; +x_223 = x_5; +goto block_237; +} +} +} +else +{ +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_5, 2); +lean_inc(x_258); +x_259 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_258, x_3); +lean_dec(x_258); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; +lean_inc(x_3); +lean_inc(x_1); +x_260 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_260) == 0) +{ +lean_object* x_261; lean_object* x_262; uint8_t x_263; +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_is_exclusive(x_261); +if (x_263 == 0) +{ +lean_object* x_264; lean_object* x_265; +x_264 = lean_ctor_get(x_261, 2); +lean_inc(x_262); +x_265 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_264, x_3, x_262); +lean_ctor_set(x_261, 2, x_265); +x_222 = x_262; +x_223 = x_261; +goto block_237; +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_266 = lean_ctor_get(x_261, 0); +x_267 = lean_ctor_get(x_261, 1); +x_268 = lean_ctor_get(x_261, 2); +lean_inc(x_268); +lean_inc(x_267); +lean_inc(x_266); +lean_dec(x_261); +lean_inc(x_262); +x_269 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_268, x_3, x_262); +x_270 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_270, 0, x_266); +lean_ctor_set(x_270, 1, x_267); +lean_ctor_set(x_270, 2, x_269); +x_222 = x_262; +x_223 = x_270; +goto block_237; +} +} +else +{ +uint8_t x_271; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_271 = !lean_is_exclusive(x_260); +if (x_271 == 0) +{ +return x_260; +} +else +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_272 = lean_ctor_get(x_260, 0); +x_273 = lean_ctor_get(x_260, 1); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_260); +x_274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_272); +lean_ctor_set(x_274, 1, x_273); +return x_274; +} +} +} +else +{ +lean_object* x_275; +lean_dec(x_3); +x_275 = lean_ctor_get(x_259, 0); +lean_inc(x_275); +lean_dec(x_259); +x_222 = x_275; +x_223 = x_5; +goto block_237; +} +} +block_237: +{ +lean_object* x_224; lean_object* x_225; +x_224 = lean_unsigned_to_nat(0u); +x_225 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_224, x_4, x_223); +if (lean_obj_tag(x_225) == 0) +{ +uint8_t x_226; +x_226 = !lean_is_exclusive(x_225); +if (x_226 == 0) +{ +lean_object* x_227; lean_object* x_228; +x_227 = lean_ctor_get(x_225, 0); +x_228 = l_Lean_mkAppRev(x_222, x_227); +lean_dec(x_227); +lean_ctor_set(x_225, 0, x_228); +return x_225; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_229 = lean_ctor_get(x_225, 0); +x_230 = lean_ctor_get(x_225, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_225); +x_231 = l_Lean_mkAppRev(x_222, x_229); +lean_dec(x_229); +x_232 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_230); +return x_232; +} +} +else +{ +uint8_t x_233; +lean_dec(x_222); +x_233 = !lean_is_exclusive(x_225); +if (x_233 == 0) +{ +return x_225; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_225, 0); +x_235 = lean_ctor_get(x_225, 1); +lean_inc(x_235); +lean_inc(x_234); +lean_dec(x_225); +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_234); +lean_ctor_set(x_236, 1, x_235); +return x_236; +} +} +} +} +case 5: +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_276 = lean_ctor_get(x_3, 0); +lean_inc(x_276); +x_277 = lean_ctor_get(x_3, 1); +lean_inc(x_277); +lean_dec(x_3); +x_278 = lean_array_push(x_4, x_277); +x_3 = x_276; +x_4 = x_278; +goto _start; +} +case 6: +{ +lean_object* x_280; lean_object* x_281; uint8_t x_296; +x_296 = lean_expr_has_expr_mvar(x_3); +if (x_296 == 0) +{ +uint8_t x_297; +x_297 = lean_expr_has_level_mvar(x_3); +if (x_297 == 0) +{ +x_280 = x_3; +x_281 = x_5; +goto block_295; +} +else +{ +lean_object* x_298; lean_object* x_299; +x_298 = lean_ctor_get(x_5, 2); +lean_inc(x_298); +x_299 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_298, x_3); +lean_dec(x_298); +if (lean_obj_tag(x_299) == 0) +{ +lean_object* x_300; +lean_inc(x_3); +lean_inc(x_1); +x_300 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_300) == 0) +{ +lean_object* x_301; lean_object* x_302; uint8_t x_303; +x_301 = lean_ctor_get(x_300, 1); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 0); +lean_inc(x_302); +lean_dec(x_300); +x_303 = !lean_is_exclusive(x_301); +if (x_303 == 0) +{ +lean_object* x_304; lean_object* x_305; +x_304 = lean_ctor_get(x_301, 2); +lean_inc(x_302); +x_305 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_304, x_3, x_302); +lean_ctor_set(x_301, 2, x_305); +x_280 = x_302; +x_281 = x_301; +goto block_295; +} +else +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_306 = lean_ctor_get(x_301, 0); +x_307 = lean_ctor_get(x_301, 1); +x_308 = lean_ctor_get(x_301, 2); +lean_inc(x_308); +lean_inc(x_307); +lean_inc(x_306); +lean_dec(x_301); +lean_inc(x_302); +x_309 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_308, x_3, x_302); +x_310 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_310, 0, x_306); +lean_ctor_set(x_310, 1, x_307); +lean_ctor_set(x_310, 2, x_309); +x_280 = x_302; +x_281 = x_310; +goto block_295; +} +} +else +{ +uint8_t x_311; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_311 = !lean_is_exclusive(x_300); +if (x_311 == 0) +{ +return x_300; +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_312 = lean_ctor_get(x_300, 0); +x_313 = lean_ctor_get(x_300, 1); +lean_inc(x_313); +lean_inc(x_312); +lean_dec(x_300); +x_314 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_314, 0, x_312); +lean_ctor_set(x_314, 1, x_313); +return x_314; +} +} +} +else +{ +lean_object* x_315; +lean_dec(x_3); +x_315 = lean_ctor_get(x_299, 0); +lean_inc(x_315); +lean_dec(x_299); +x_280 = x_315; +x_281 = x_5; +goto block_295; +} +} +} +else +{ +lean_object* x_316; lean_object* x_317; +x_316 = lean_ctor_get(x_5, 2); +lean_inc(x_316); +x_317 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_316, x_3); +lean_dec(x_316); +if (lean_obj_tag(x_317) == 0) +{ +lean_object* x_318; +lean_inc(x_3); +lean_inc(x_1); +x_318 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_318) == 0) +{ +lean_object* x_319; lean_object* x_320; uint8_t x_321; +x_319 = lean_ctor_get(x_318, 1); +lean_inc(x_319); +x_320 = lean_ctor_get(x_318, 0); +lean_inc(x_320); +lean_dec(x_318); +x_321 = !lean_is_exclusive(x_319); +if (x_321 == 0) +{ +lean_object* x_322; lean_object* x_323; +x_322 = lean_ctor_get(x_319, 2); +lean_inc(x_320); +x_323 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_322, x_3, x_320); +lean_ctor_set(x_319, 2, x_323); +x_280 = x_320; +x_281 = x_319; +goto block_295; +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_324 = lean_ctor_get(x_319, 0); +x_325 = lean_ctor_get(x_319, 1); +x_326 = lean_ctor_get(x_319, 2); +lean_inc(x_326); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_319); +lean_inc(x_320); +x_327 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_326, x_3, x_320); +x_328 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_328, 0, x_324); +lean_ctor_set(x_328, 1, x_325); +lean_ctor_set(x_328, 2, x_327); +x_280 = x_320; +x_281 = x_328; +goto block_295; +} +} +else +{ +uint8_t x_329; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_329 = !lean_is_exclusive(x_318); +if (x_329 == 0) +{ +return x_318; +} +else +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_330 = lean_ctor_get(x_318, 0); +x_331 = lean_ctor_get(x_318, 1); +lean_inc(x_331); +lean_inc(x_330); +lean_dec(x_318); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_330); +lean_ctor_set(x_332, 1, x_331); +return x_332; +} +} +} +else +{ +lean_object* x_333; +lean_dec(x_3); +x_333 = lean_ctor_get(x_317, 0); +lean_inc(x_333); +lean_dec(x_317); +x_280 = x_333; +x_281 = x_5; +goto block_295; +} +} +block_295: +{ +lean_object* x_282; lean_object* x_283; +x_282 = lean_unsigned_to_nat(0u); +x_283 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_282, x_4, x_281); +if (lean_obj_tag(x_283) == 0) +{ +uint8_t x_284; +x_284 = !lean_is_exclusive(x_283); +if (x_284 == 0) +{ +lean_object* x_285; lean_object* x_286; +x_285 = lean_ctor_get(x_283, 0); +x_286 = l_Lean_mkAppRev(x_280, x_285); +lean_dec(x_285); +lean_ctor_set(x_283, 0, x_286); +return x_283; +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_287 = lean_ctor_get(x_283, 0); +x_288 = lean_ctor_get(x_283, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_283); +x_289 = l_Lean_mkAppRev(x_280, x_287); +lean_dec(x_287); +x_290 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_290, 0, x_289); +lean_ctor_set(x_290, 1, x_288); +return x_290; +} +} +else +{ +uint8_t x_291; +lean_dec(x_280); +x_291 = !lean_is_exclusive(x_283); +if (x_291 == 0) +{ +return x_283; +} +else +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; +x_292 = lean_ctor_get(x_283, 0); +x_293 = lean_ctor_get(x_283, 1); +lean_inc(x_293); +lean_inc(x_292); +lean_dec(x_283); +x_294 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_294, 0, x_292); +lean_ctor_set(x_294, 1, x_293); +return x_294; +} +} +} +} +case 7: +{ +lean_object* x_334; lean_object* x_335; uint8_t x_350; +x_350 = lean_expr_has_expr_mvar(x_3); +if (x_350 == 0) +{ +uint8_t x_351; +x_351 = lean_expr_has_level_mvar(x_3); +if (x_351 == 0) +{ +x_334 = x_3; +x_335 = x_5; +goto block_349; +} +else +{ +lean_object* x_352; lean_object* x_353; +x_352 = lean_ctor_get(x_5, 2); +lean_inc(x_352); +x_353 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_352, x_3); +lean_dec(x_352); +if (lean_obj_tag(x_353) == 0) +{ +lean_object* x_354; +lean_inc(x_3); +lean_inc(x_1); +x_354 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; uint8_t x_357; +x_355 = lean_ctor_get(x_354, 1); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 0); +lean_inc(x_356); +lean_dec(x_354); +x_357 = !lean_is_exclusive(x_355); +if (x_357 == 0) +{ +lean_object* x_358; lean_object* x_359; +x_358 = lean_ctor_get(x_355, 2); +lean_inc(x_356); +x_359 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_358, x_3, x_356); +lean_ctor_set(x_355, 2, x_359); +x_334 = x_356; +x_335 = x_355; +goto block_349; +} +else +{ +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_360 = lean_ctor_get(x_355, 0); +x_361 = lean_ctor_get(x_355, 1); +x_362 = lean_ctor_get(x_355, 2); +lean_inc(x_362); +lean_inc(x_361); +lean_inc(x_360); +lean_dec(x_355); +lean_inc(x_356); +x_363 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_362, x_3, x_356); +x_364 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_364, 0, x_360); +lean_ctor_set(x_364, 1, x_361); +lean_ctor_set(x_364, 2, x_363); +x_334 = x_356; +x_335 = x_364; +goto block_349; +} +} +else +{ +uint8_t x_365; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_365 = !lean_is_exclusive(x_354); +if (x_365 == 0) +{ +return x_354; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_354, 0); +x_367 = lean_ctor_get(x_354, 1); +lean_inc(x_367); +lean_inc(x_366); +lean_dec(x_354); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_366); +lean_ctor_set(x_368, 1, x_367); +return x_368; +} +} +} +else +{ +lean_object* x_369; +lean_dec(x_3); +x_369 = lean_ctor_get(x_353, 0); +lean_inc(x_369); +lean_dec(x_353); +x_334 = x_369; +x_335 = x_5; +goto block_349; +} +} +} +else +{ +lean_object* x_370; lean_object* x_371; +x_370 = lean_ctor_get(x_5, 2); +lean_inc(x_370); +x_371 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_370, x_3); +lean_dec(x_370); +if (lean_obj_tag(x_371) == 0) +{ +lean_object* x_372; +lean_inc(x_3); +lean_inc(x_1); +x_372 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_372) == 0) +{ +lean_object* x_373; lean_object* x_374; uint8_t x_375; +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) +{ +lean_object* x_376; lean_object* x_377; +x_376 = lean_ctor_get(x_373, 2); +lean_inc(x_374); +x_377 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_376, x_3, x_374); +lean_ctor_set(x_373, 2, x_377); +x_334 = x_374; +x_335 = x_373; +goto block_349; +} +else +{ +lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; +x_378 = lean_ctor_get(x_373, 0); +x_379 = lean_ctor_get(x_373, 1); +x_380 = lean_ctor_get(x_373, 2); +lean_inc(x_380); +lean_inc(x_379); +lean_inc(x_378); +lean_dec(x_373); +lean_inc(x_374); +x_381 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_380, x_3, x_374); +x_382 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_382, 0, x_378); +lean_ctor_set(x_382, 1, x_379); +lean_ctor_set(x_382, 2, x_381); +x_334 = x_374; +x_335 = x_382; +goto block_349; +} +} +else +{ +uint8_t x_383; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_383 = !lean_is_exclusive(x_372); +if (x_383 == 0) +{ +return x_372; +} +else +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; +x_384 = lean_ctor_get(x_372, 0); +x_385 = lean_ctor_get(x_372, 1); +lean_inc(x_385); +lean_inc(x_384); +lean_dec(x_372); +x_386 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_386, 0, x_384); +lean_ctor_set(x_386, 1, x_385); +return x_386; +} +} +} +else +{ +lean_object* x_387; +lean_dec(x_3); +x_387 = lean_ctor_get(x_371, 0); +lean_inc(x_387); +lean_dec(x_371); +x_334 = x_387; +x_335 = x_5; +goto block_349; +} +} +block_349: +{ +lean_object* x_336; lean_object* x_337; +x_336 = lean_unsigned_to_nat(0u); +x_337 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_336, x_4, x_335); +if (lean_obj_tag(x_337) == 0) +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_337); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; +x_339 = lean_ctor_get(x_337, 0); +x_340 = l_Lean_mkAppRev(x_334, x_339); +lean_dec(x_339); +lean_ctor_set(x_337, 0, x_340); +return x_337; +} +else +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; +x_341 = lean_ctor_get(x_337, 0); +x_342 = lean_ctor_get(x_337, 1); +lean_inc(x_342); +lean_inc(x_341); +lean_dec(x_337); +x_343 = l_Lean_mkAppRev(x_334, x_341); +lean_dec(x_341); +x_344 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_344, 0, x_343); +lean_ctor_set(x_344, 1, x_342); +return x_344; +} +} +else +{ +uint8_t x_345; +lean_dec(x_334); +x_345 = !lean_is_exclusive(x_337); +if (x_345 == 0) +{ +return x_337; +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_346 = lean_ctor_get(x_337, 0); +x_347 = lean_ctor_get(x_337, 1); +lean_inc(x_347); +lean_inc(x_346); +lean_dec(x_337); +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; +} +} +} +} +case 8: +{ +lean_object* x_388; lean_object* x_389; uint8_t x_404; +x_404 = lean_expr_has_expr_mvar(x_3); +if (x_404 == 0) +{ +uint8_t x_405; +x_405 = lean_expr_has_level_mvar(x_3); +if (x_405 == 0) +{ +x_388 = x_3; +x_389 = x_5; +goto block_403; +} +else +{ +lean_object* x_406; lean_object* x_407; +x_406 = lean_ctor_get(x_5, 2); +lean_inc(x_406); +x_407 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_406, x_3); +lean_dec(x_406); +if (lean_obj_tag(x_407) == 0) +{ +lean_object* x_408; +lean_inc(x_3); +lean_inc(x_1); +x_408 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_408) == 0) +{ +lean_object* x_409; lean_object* x_410; uint8_t x_411; +x_409 = lean_ctor_get(x_408, 1); +lean_inc(x_409); +x_410 = lean_ctor_get(x_408, 0); +lean_inc(x_410); +lean_dec(x_408); +x_411 = !lean_is_exclusive(x_409); +if (x_411 == 0) +{ +lean_object* x_412; lean_object* x_413; +x_412 = lean_ctor_get(x_409, 2); +lean_inc(x_410); +x_413 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_412, x_3, x_410); +lean_ctor_set(x_409, 2, x_413); +x_388 = x_410; +x_389 = x_409; +goto block_403; +} +else +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_414 = lean_ctor_get(x_409, 0); +x_415 = lean_ctor_get(x_409, 1); +x_416 = lean_ctor_get(x_409, 2); +lean_inc(x_416); +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_409); +lean_inc(x_410); +x_417 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_416, x_3, x_410); +x_418 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_418, 0, x_414); +lean_ctor_set(x_418, 1, x_415); +lean_ctor_set(x_418, 2, x_417); +x_388 = x_410; +x_389 = x_418; +goto block_403; +} +} +else +{ +uint8_t x_419; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_419 = !lean_is_exclusive(x_408); +if (x_419 == 0) +{ +return x_408; +} +else +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_420 = lean_ctor_get(x_408, 0); +x_421 = lean_ctor_get(x_408, 1); +lean_inc(x_421); +lean_inc(x_420); +lean_dec(x_408); +x_422 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_422, 0, x_420); +lean_ctor_set(x_422, 1, x_421); +return x_422; +} +} +} +else +{ +lean_object* x_423; +lean_dec(x_3); +x_423 = lean_ctor_get(x_407, 0); +lean_inc(x_423); +lean_dec(x_407); +x_388 = x_423; +x_389 = x_5; +goto block_403; +} +} +} +else +{ +lean_object* x_424; lean_object* x_425; +x_424 = lean_ctor_get(x_5, 2); +lean_inc(x_424); +x_425 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_424, x_3); +lean_dec(x_424); +if (lean_obj_tag(x_425) == 0) +{ +lean_object* x_426; +lean_inc(x_3); +lean_inc(x_1); +x_426 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_426) == 0) +{ +lean_object* x_427; lean_object* x_428; uint8_t x_429; +x_427 = lean_ctor_get(x_426, 1); +lean_inc(x_427); +x_428 = lean_ctor_get(x_426, 0); +lean_inc(x_428); +lean_dec(x_426); +x_429 = !lean_is_exclusive(x_427); +if (x_429 == 0) +{ +lean_object* x_430; lean_object* x_431; +x_430 = lean_ctor_get(x_427, 2); +lean_inc(x_428); +x_431 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_430, x_3, x_428); +lean_ctor_set(x_427, 2, x_431); +x_388 = x_428; +x_389 = x_427; +goto block_403; +} +else +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; +x_432 = lean_ctor_get(x_427, 0); +x_433 = lean_ctor_get(x_427, 1); +x_434 = lean_ctor_get(x_427, 2); +lean_inc(x_434); +lean_inc(x_433); +lean_inc(x_432); +lean_dec(x_427); +lean_inc(x_428); +x_435 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_434, x_3, x_428); +x_436 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_436, 0, x_432); +lean_ctor_set(x_436, 1, x_433); +lean_ctor_set(x_436, 2, x_435); +x_388 = x_428; +x_389 = x_436; +goto block_403; +} +} +else +{ +uint8_t x_437; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_437 = !lean_is_exclusive(x_426); +if (x_437 == 0) +{ +return x_426; +} +else +{ +lean_object* x_438; lean_object* x_439; lean_object* x_440; +x_438 = lean_ctor_get(x_426, 0); +x_439 = lean_ctor_get(x_426, 1); +lean_inc(x_439); +lean_inc(x_438); +lean_dec(x_426); +x_440 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_440, 0, x_438); +lean_ctor_set(x_440, 1, x_439); +return x_440; +} +} +} +else +{ +lean_object* x_441; +lean_dec(x_3); +x_441 = lean_ctor_get(x_425, 0); +lean_inc(x_441); +lean_dec(x_425); +x_388 = x_441; +x_389 = x_5; +goto block_403; +} +} +block_403: +{ +lean_object* x_390; lean_object* x_391; +x_390 = lean_unsigned_to_nat(0u); +x_391 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_390, x_4, x_389); +if (lean_obj_tag(x_391) == 0) +{ +uint8_t x_392; +x_392 = !lean_is_exclusive(x_391); +if (x_392 == 0) +{ +lean_object* x_393; lean_object* x_394; +x_393 = lean_ctor_get(x_391, 0); +x_394 = l_Lean_mkAppRev(x_388, x_393); +lean_dec(x_393); +lean_ctor_set(x_391, 0, x_394); +return x_391; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_395 = lean_ctor_get(x_391, 0); +x_396 = lean_ctor_get(x_391, 1); +lean_inc(x_396); +lean_inc(x_395); +lean_dec(x_391); +x_397 = l_Lean_mkAppRev(x_388, x_395); +lean_dec(x_395); +x_398 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_397); +lean_ctor_set(x_398, 1, x_396); +return x_398; +} +} +else +{ +uint8_t x_399; +lean_dec(x_388); +x_399 = !lean_is_exclusive(x_391); +if (x_399 == 0) +{ +return x_391; +} +else +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_391, 0); +x_401 = lean_ctor_get(x_391, 1); +lean_inc(x_401); +lean_inc(x_400); +lean_dec(x_391); +x_402 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_402, 0, x_400); +lean_ctor_set(x_402, 1, x_401); +return x_402; +} +} +} +} +case 9: +{ +lean_object* x_442; lean_object* x_443; uint8_t x_458; +x_458 = lean_expr_has_expr_mvar(x_3); +if (x_458 == 0) +{ +uint8_t x_459; +x_459 = lean_expr_has_level_mvar(x_3); +if (x_459 == 0) +{ +x_442 = x_3; +x_443 = x_5; +goto block_457; +} +else +{ +lean_object* x_460; lean_object* x_461; +x_460 = lean_ctor_get(x_5, 2); +lean_inc(x_460); +x_461 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_460, x_3); +lean_dec(x_460); +if (lean_obj_tag(x_461) == 0) +{ +lean_object* x_462; +lean_inc(x_3); +lean_inc(x_1); +x_462 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_462) == 0) +{ +lean_object* x_463; lean_object* x_464; uint8_t x_465; +x_463 = lean_ctor_get(x_462, 1); +lean_inc(x_463); +x_464 = lean_ctor_get(x_462, 0); +lean_inc(x_464); +lean_dec(x_462); +x_465 = !lean_is_exclusive(x_463); +if (x_465 == 0) +{ +lean_object* x_466; lean_object* x_467; +x_466 = lean_ctor_get(x_463, 2); +lean_inc(x_464); +x_467 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_466, x_3, x_464); +lean_ctor_set(x_463, 2, x_467); +x_442 = x_464; +x_443 = x_463; +goto block_457; +} +else +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; +x_468 = lean_ctor_get(x_463, 0); +x_469 = lean_ctor_get(x_463, 1); +x_470 = lean_ctor_get(x_463, 2); +lean_inc(x_470); +lean_inc(x_469); +lean_inc(x_468); +lean_dec(x_463); +lean_inc(x_464); +x_471 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_470, x_3, x_464); +x_472 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_472, 0, x_468); +lean_ctor_set(x_472, 1, x_469); +lean_ctor_set(x_472, 2, x_471); +x_442 = x_464; +x_443 = x_472; +goto block_457; +} +} +else +{ +uint8_t x_473; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_473 = !lean_is_exclusive(x_462); +if (x_473 == 0) +{ +return x_462; +} +else +{ +lean_object* x_474; lean_object* x_475; lean_object* x_476; +x_474 = lean_ctor_get(x_462, 0); +x_475 = lean_ctor_get(x_462, 1); +lean_inc(x_475); +lean_inc(x_474); +lean_dec(x_462); +x_476 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_476, 0, x_474); +lean_ctor_set(x_476, 1, x_475); +return x_476; +} +} +} +else +{ +lean_object* x_477; +lean_dec(x_3); +x_477 = lean_ctor_get(x_461, 0); +lean_inc(x_477); +lean_dec(x_461); +x_442 = x_477; +x_443 = x_5; +goto block_457; +} +} +} +else +{ +lean_object* x_478; lean_object* x_479; +x_478 = lean_ctor_get(x_5, 2); +lean_inc(x_478); +x_479 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_478, x_3); +lean_dec(x_478); +if (lean_obj_tag(x_479) == 0) +{ +lean_object* x_480; +lean_inc(x_3); +lean_inc(x_1); +x_480 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_480) == 0) +{ +lean_object* x_481; lean_object* x_482; uint8_t x_483; +x_481 = lean_ctor_get(x_480, 1); +lean_inc(x_481); +x_482 = lean_ctor_get(x_480, 0); +lean_inc(x_482); +lean_dec(x_480); +x_483 = !lean_is_exclusive(x_481); +if (x_483 == 0) +{ +lean_object* x_484; lean_object* x_485; +x_484 = lean_ctor_get(x_481, 2); +lean_inc(x_482); +x_485 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_484, x_3, x_482); +lean_ctor_set(x_481, 2, x_485); +x_442 = x_482; +x_443 = x_481; +goto block_457; +} +else +{ +lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; +x_486 = lean_ctor_get(x_481, 0); +x_487 = lean_ctor_get(x_481, 1); +x_488 = lean_ctor_get(x_481, 2); +lean_inc(x_488); +lean_inc(x_487); +lean_inc(x_486); +lean_dec(x_481); +lean_inc(x_482); +x_489 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_488, x_3, x_482); +x_490 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_490, 0, x_486); +lean_ctor_set(x_490, 1, x_487); +lean_ctor_set(x_490, 2, x_489); +x_442 = x_482; +x_443 = x_490; +goto block_457; +} +} +else +{ +uint8_t x_491; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_491 = !lean_is_exclusive(x_480); +if (x_491 == 0) +{ +return x_480; +} +else +{ +lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_492 = lean_ctor_get(x_480, 0); +x_493 = lean_ctor_get(x_480, 1); +lean_inc(x_493); +lean_inc(x_492); +lean_dec(x_480); +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; +} +} +} +else +{ +lean_object* x_495; +lean_dec(x_3); +x_495 = lean_ctor_get(x_479, 0); +lean_inc(x_495); +lean_dec(x_479); +x_442 = x_495; +x_443 = x_5; +goto block_457; +} +} +block_457: +{ +lean_object* x_444; lean_object* x_445; +x_444 = lean_unsigned_to_nat(0u); +x_445 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_444, x_4, x_443); +if (lean_obj_tag(x_445) == 0) +{ +uint8_t x_446; +x_446 = !lean_is_exclusive(x_445); +if (x_446 == 0) +{ +lean_object* x_447; lean_object* x_448; +x_447 = lean_ctor_get(x_445, 0); +x_448 = l_Lean_mkAppRev(x_442, x_447); +lean_dec(x_447); +lean_ctor_set(x_445, 0, x_448); +return x_445; +} +else +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_449 = lean_ctor_get(x_445, 0); +x_450 = lean_ctor_get(x_445, 1); +lean_inc(x_450); +lean_inc(x_449); +lean_dec(x_445); +x_451 = l_Lean_mkAppRev(x_442, x_449); +lean_dec(x_449); +x_452 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_452, 0, x_451); +lean_ctor_set(x_452, 1, x_450); +return x_452; +} +} +else +{ +uint8_t x_453; +lean_dec(x_442); +x_453 = !lean_is_exclusive(x_445); +if (x_453 == 0) +{ +return x_445; +} +else +{ +lean_object* x_454; lean_object* x_455; lean_object* x_456; +x_454 = lean_ctor_get(x_445, 0); +x_455 = lean_ctor_get(x_445, 1); +lean_inc(x_455); +lean_inc(x_454); +lean_dec(x_445); +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; +} +} +} +} +case 10: +{ +lean_object* x_496; lean_object* x_497; uint8_t x_512; +x_512 = lean_expr_has_expr_mvar(x_3); +if (x_512 == 0) +{ +uint8_t x_513; +x_513 = lean_expr_has_level_mvar(x_3); +if (x_513 == 0) +{ +x_496 = x_3; +x_497 = x_5; +goto block_511; +} +else +{ +lean_object* x_514; lean_object* x_515; +x_514 = lean_ctor_get(x_5, 2); +lean_inc(x_514); +x_515 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_514, x_3); +lean_dec(x_514); +if (lean_obj_tag(x_515) == 0) +{ +lean_object* x_516; +lean_inc(x_3); +lean_inc(x_1); +x_516 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_516) == 0) +{ +lean_object* x_517; lean_object* x_518; uint8_t x_519; +x_517 = lean_ctor_get(x_516, 1); +lean_inc(x_517); +x_518 = lean_ctor_get(x_516, 0); +lean_inc(x_518); +lean_dec(x_516); +x_519 = !lean_is_exclusive(x_517); +if (x_519 == 0) +{ +lean_object* x_520; lean_object* x_521; +x_520 = lean_ctor_get(x_517, 2); +lean_inc(x_518); +x_521 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_520, x_3, x_518); +lean_ctor_set(x_517, 2, x_521); +x_496 = x_518; +x_497 = x_517; +goto block_511; +} +else +{ +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_522 = lean_ctor_get(x_517, 0); +x_523 = lean_ctor_get(x_517, 1); +x_524 = lean_ctor_get(x_517, 2); +lean_inc(x_524); +lean_inc(x_523); +lean_inc(x_522); +lean_dec(x_517); +lean_inc(x_518); +x_525 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_524, x_3, x_518); +x_526 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_526, 0, x_522); +lean_ctor_set(x_526, 1, x_523); +lean_ctor_set(x_526, 2, x_525); +x_496 = x_518; +x_497 = x_526; +goto block_511; +} +} +else +{ +uint8_t x_527; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_527 = !lean_is_exclusive(x_516); +if (x_527 == 0) +{ +return x_516; +} +else +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; +x_528 = lean_ctor_get(x_516, 0); +x_529 = lean_ctor_get(x_516, 1); +lean_inc(x_529); +lean_inc(x_528); +lean_dec(x_516); +x_530 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_530, 0, x_528); +lean_ctor_set(x_530, 1, x_529); +return x_530; +} +} +} +else +{ +lean_object* x_531; +lean_dec(x_3); +x_531 = lean_ctor_get(x_515, 0); +lean_inc(x_531); +lean_dec(x_515); +x_496 = x_531; +x_497 = x_5; +goto block_511; +} +} +} +else +{ +lean_object* x_532; lean_object* x_533; +x_532 = lean_ctor_get(x_5, 2); +lean_inc(x_532); +x_533 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_532, x_3); +lean_dec(x_532); +if (lean_obj_tag(x_533) == 0) +{ +lean_object* x_534; +lean_inc(x_3); +lean_inc(x_1); +x_534 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_534) == 0) +{ +lean_object* x_535; lean_object* x_536; uint8_t x_537; +x_535 = lean_ctor_get(x_534, 1); +lean_inc(x_535); +x_536 = lean_ctor_get(x_534, 0); +lean_inc(x_536); +lean_dec(x_534); +x_537 = !lean_is_exclusive(x_535); +if (x_537 == 0) +{ +lean_object* x_538; lean_object* x_539; +x_538 = lean_ctor_get(x_535, 2); +lean_inc(x_536); +x_539 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_538, x_3, x_536); +lean_ctor_set(x_535, 2, x_539); +x_496 = x_536; +x_497 = x_535; +goto block_511; +} +else +{ +lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; +x_540 = lean_ctor_get(x_535, 0); +x_541 = lean_ctor_get(x_535, 1); +x_542 = lean_ctor_get(x_535, 2); +lean_inc(x_542); +lean_inc(x_541); +lean_inc(x_540); +lean_dec(x_535); +lean_inc(x_536); +x_543 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_542, x_3, x_536); +x_544 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_544, 0, x_540); +lean_ctor_set(x_544, 1, x_541); +lean_ctor_set(x_544, 2, x_543); +x_496 = x_536; +x_497 = x_544; +goto block_511; +} +} +else +{ +uint8_t x_545; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_545 = !lean_is_exclusive(x_534); +if (x_545 == 0) +{ +return x_534; +} +else +{ +lean_object* x_546; lean_object* x_547; lean_object* x_548; +x_546 = lean_ctor_get(x_534, 0); +x_547 = lean_ctor_get(x_534, 1); +lean_inc(x_547); +lean_inc(x_546); +lean_dec(x_534); +x_548 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_548, 0, x_546); +lean_ctor_set(x_548, 1, x_547); +return x_548; +} +} +} +else +{ +lean_object* x_549; +lean_dec(x_3); +x_549 = lean_ctor_get(x_533, 0); +lean_inc(x_549); +lean_dec(x_533); +x_496 = x_549; +x_497 = x_5; +goto block_511; +} +} +block_511: +{ +lean_object* x_498; lean_object* x_499; +x_498 = lean_unsigned_to_nat(0u); +x_499 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_498, x_4, x_497); +if (lean_obj_tag(x_499) == 0) +{ +uint8_t x_500; +x_500 = !lean_is_exclusive(x_499); +if (x_500 == 0) +{ +lean_object* x_501; lean_object* x_502; +x_501 = lean_ctor_get(x_499, 0); +x_502 = l_Lean_mkAppRev(x_496, x_501); +lean_dec(x_501); +lean_ctor_set(x_499, 0, x_502); +return x_499; +} +else +{ +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; +x_503 = lean_ctor_get(x_499, 0); +x_504 = lean_ctor_get(x_499, 1); +lean_inc(x_504); +lean_inc(x_503); +lean_dec(x_499); +x_505 = l_Lean_mkAppRev(x_496, x_503); +lean_dec(x_503); +x_506 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_506, 0, x_505); +lean_ctor_set(x_506, 1, x_504); +return x_506; +} +} +else +{ +uint8_t x_507; +lean_dec(x_496); +x_507 = !lean_is_exclusive(x_499); +if (x_507 == 0) +{ +return x_499; +} +else +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_508 = lean_ctor_get(x_499, 0); +x_509 = lean_ctor_get(x_499, 1); +lean_inc(x_509); +lean_inc(x_508); +lean_dec(x_499); +x_510 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_509); +return x_510; +} +} +} +} +default: +{ +lean_object* x_550; lean_object* x_551; uint8_t x_566; +x_566 = lean_expr_has_expr_mvar(x_3); +if (x_566 == 0) +{ +uint8_t x_567; +x_567 = lean_expr_has_level_mvar(x_3); +if (x_567 == 0) +{ +x_550 = x_3; +x_551 = x_5; +goto block_565; +} +else +{ +lean_object* x_568; lean_object* x_569; +x_568 = lean_ctor_get(x_5, 2); +lean_inc(x_568); +x_569 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_568, x_3); +lean_dec(x_568); +if (lean_obj_tag(x_569) == 0) +{ +lean_object* x_570; +lean_inc(x_3); +lean_inc(x_1); +x_570 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_570) == 0) +{ +lean_object* x_571; lean_object* x_572; uint8_t x_573; +x_571 = lean_ctor_get(x_570, 1); +lean_inc(x_571); +x_572 = lean_ctor_get(x_570, 0); +lean_inc(x_572); +lean_dec(x_570); +x_573 = !lean_is_exclusive(x_571); +if (x_573 == 0) +{ +lean_object* x_574; lean_object* x_575; +x_574 = lean_ctor_get(x_571, 2); +lean_inc(x_572); +x_575 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_574, x_3, x_572); +lean_ctor_set(x_571, 2, x_575); +x_550 = x_572; +x_551 = x_571; +goto block_565; +} +else +{ +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +x_576 = lean_ctor_get(x_571, 0); +x_577 = lean_ctor_get(x_571, 1); +x_578 = lean_ctor_get(x_571, 2); +lean_inc(x_578); +lean_inc(x_577); +lean_inc(x_576); +lean_dec(x_571); +lean_inc(x_572); +x_579 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_578, x_3, x_572); +x_580 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_580, 0, x_576); +lean_ctor_set(x_580, 1, x_577); +lean_ctor_set(x_580, 2, x_579); +x_550 = x_572; +x_551 = x_580; +goto block_565; +} +} +else +{ +uint8_t x_581; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_581 = !lean_is_exclusive(x_570); +if (x_581 == 0) +{ +return x_570; +} +else +{ +lean_object* x_582; lean_object* x_583; lean_object* x_584; +x_582 = lean_ctor_get(x_570, 0); +x_583 = lean_ctor_get(x_570, 1); +lean_inc(x_583); +lean_inc(x_582); +lean_dec(x_570); +x_584 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_584, 0, x_582); +lean_ctor_set(x_584, 1, x_583); +return x_584; +} +} +} +else +{ +lean_object* x_585; +lean_dec(x_3); +x_585 = lean_ctor_get(x_569, 0); +lean_inc(x_585); +lean_dec(x_569); +x_550 = x_585; +x_551 = x_5; +goto block_565; +} +} +} +else +{ +lean_object* x_586; lean_object* x_587; +x_586 = lean_ctor_get(x_5, 2); +lean_inc(x_586); +x_587 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_586, x_3); +lean_dec(x_586); +if (lean_obj_tag(x_587) == 0) +{ +lean_object* x_588; +lean_inc(x_3); +lean_inc(x_1); +x_588 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_5); +if (lean_obj_tag(x_588) == 0) +{ +lean_object* x_589; lean_object* x_590; uint8_t x_591; +x_589 = lean_ctor_get(x_588, 1); +lean_inc(x_589); +x_590 = lean_ctor_get(x_588, 0); +lean_inc(x_590); +lean_dec(x_588); +x_591 = !lean_is_exclusive(x_589); +if (x_591 == 0) +{ +lean_object* x_592; lean_object* x_593; +x_592 = lean_ctor_get(x_589, 2); +lean_inc(x_590); +x_593 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_592, x_3, x_590); +lean_ctor_set(x_589, 2, x_593); +x_550 = x_590; +x_551 = x_589; +goto block_565; +} +else +{ +lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; +x_594 = lean_ctor_get(x_589, 0); +x_595 = lean_ctor_get(x_589, 1); +x_596 = lean_ctor_get(x_589, 2); +lean_inc(x_596); +lean_inc(x_595); +lean_inc(x_594); +lean_dec(x_589); +lean_inc(x_590); +x_597 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_596, x_3, x_590); +x_598 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_598, 0, x_594); +lean_ctor_set(x_598, 1, x_595); +lean_ctor_set(x_598, 2, x_597); +x_550 = x_590; +x_551 = x_598; +goto block_565; +} +} +else +{ +uint8_t x_599; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_599 = !lean_is_exclusive(x_588); +if (x_599 == 0) +{ +return x_588; +} +else +{ +lean_object* x_600; lean_object* x_601; lean_object* x_602; +x_600 = lean_ctor_get(x_588, 0); +x_601 = lean_ctor_get(x_588, 1); +lean_inc(x_601); +lean_inc(x_600); +lean_dec(x_588); +x_602 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_602, 0, x_600); +lean_ctor_set(x_602, 1, x_601); +return x_602; +} +} +} +else +{ +lean_object* x_603; +lean_dec(x_3); +x_603 = lean_ctor_get(x_587, 0); +lean_inc(x_603); +lean_dec(x_587); +x_550 = x_603; +x_551 = x_5; +goto block_565; +} +} +block_565: +{ +lean_object* x_552; lean_object* x_553; +x_552 = lean_unsigned_to_nat(0u); +x_553 = l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_552, x_4, x_551); +if (lean_obj_tag(x_553) == 0) +{ +uint8_t x_554; +x_554 = !lean_is_exclusive(x_553); +if (x_554 == 0) +{ +lean_object* x_555; lean_object* x_556; +x_555 = lean_ctor_get(x_553, 0); +x_556 = l_Lean_mkAppRev(x_550, x_555); +lean_dec(x_555); +lean_ctor_set(x_553, 0, x_556); +return x_553; +} +else +{ +lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; +x_557 = lean_ctor_get(x_553, 0); +x_558 = lean_ctor_get(x_553, 1); +lean_inc(x_558); +lean_inc(x_557); +lean_dec(x_553); +x_559 = l_Lean_mkAppRev(x_550, x_557); +lean_dec(x_557); +x_560 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_560, 0, x_559); +lean_ctor_set(x_560, 1, x_558); +return x_560; +} +} +else +{ +uint8_t x_561; +lean_dec(x_550); +x_561 = !lean_is_exclusive(x_553); +if (x_561 == 0) +{ +return x_553; +} +else +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; +x_562 = lean_ctor_get(x_553, 0); +x_563 = lean_ctor_get(x_553, 1); +lean_inc(x_563); +lean_inc(x_562); +lean_dec(x_553); +x_564 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_564, 0, x_562); +lean_ctor_set(x_564, 1, x_563); +return x_564; +} +} +} +} +} +} +} +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(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_16; lean_object* x_17; +switch (lean_obj_tag(x_3)) { +case 2: +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_3, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_4, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_1, 5); +lean_inc(x_29); +lean_inc(x_27); +lean_inc(x_28); +x_30 = lean_apply_2(x_29, x_28, x_27); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_31 = lean_ctor_get(x_1, 7); +lean_inc(x_31); +lean_inc(x_27); +lean_inc(x_28); +x_32 = lean_apply_2(x_31, x_28, x_27); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +x_34 = l_Lean_AbstractMetavarContext_MkBinding_getInScope(x_33, x_2); +x_35 = lean_array_get_size(x_34); +x_36 = lean_unsigned_to_nat(0u); +x_37 = lean_nat_dec_eq(x_35, x_36); +lean_dec(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_1, 4); +lean_inc(x_38); +lean_inc(x_27); +lean_inc(x_28); +x_39 = lean_apply_2(x_38, x_28, x_27); +x_40 = lean_unbox(x_39); +lean_dec(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +lean_inc(x_33); +lean_inc(x_28); +lean_inc(x_1); +x_41 = l_Lean_AbstractMetavarContext_MkBinding_collectDeps___rarg(x_1, x_28, x_33, x_34); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_1); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +lean_dec(x_41); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_4); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_41, 0); +lean_inc(x_44); +lean_dec(x_41); +lean_inc(x_33); +x_45 = l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext(x_33, x_44); +x_46 = lean_ctor_get(x_32, 2); +lean_inc(x_46); +x_47 = 0; +lean_inc(x_44); +lean_inc(x_33); +lean_inc(x_1); +x_48 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg(x_1, x_47, x_33, x_44, x_46, x_4); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_52 = lean_ctor_get(x_48, 0); +x_53 = lean_ctor_get(x_48, 1); +lean_dec(x_53); +x_54 = !lean_is_exclusive(x_49); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_55 = lean_ctor_get(x_49, 2); +x_56 = lean_ctor_get(x_49, 1); +lean_dec(x_56); +x_57 = !lean_is_exclusive(x_50); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; +x_58 = lean_ctor_get(x_50, 0); +x_59 = lean_ctor_get(x_50, 1); +lean_inc(x_59); +lean_inc(x_58); +x_60 = lean_name_mk_numeral(x_58, x_59); +x_61 = lean_unsigned_to_nat(1u); +x_62 = lean_nat_add(x_59, x_61); +lean_dec(x_59); +lean_ctor_set(x_50, 1, x_62); +lean_inc(x_55); +lean_inc(x_50); +x_63 = lean_ctor_get(x_1, 11); +lean_inc(x_63); +x_64 = lean_ctor_get_uint8(x_32, sizeof(void*)*3); +lean_dec(x_32); +x_65 = lean_box(x_64); +lean_inc(x_60); +x_66 = lean_apply_5(x_63, x_28, x_60, x_45, x_52, x_65); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; +lean_dec(x_50); +lean_dec(x_60); +lean_dec(x_55); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_1); +x_67 = lean_box(2); +lean_ctor_set_tag(x_48, 1); +lean_ctor_set(x_48, 0, x_67); +return x_48; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_49); +x_68 = lean_ctor_get(x_66, 0); +lean_inc(x_68); +lean_dec(x_66); +lean_inc(x_60); +x_69 = lean_expr_mk_mvar(x_60); +lean_inc(x_33); +x_70 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_33, x_44, x_44, x_36, x_69); +if (x_64 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_60); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_3); +x_71 = lean_ctor_get(x_1, 6); +lean_inc(x_71); +lean_dec(x_1); +lean_inc(x_70); +x_72 = lean_apply_3(x_71, x_68, x_27, x_70); +x_73 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_50); +lean_ctor_set(x_73, 2, x_55); +lean_ctor_set(x_48, 1, x_73); +lean_ctor_set(x_48, 0, x_70); +return x_48; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_27); +x_74 = lean_ctor_get(x_1, 8); +lean_inc(x_74); +lean_dec(x_1); +x_75 = lean_apply_5(x_74, x_68, x_60, x_33, x_44, x_3); +x_76 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_50); +lean_ctor_set(x_76, 2, x_55); +lean_ctor_set(x_48, 1, x_76); +lean_ctor_set(x_48, 0, x_70); +return x_48; +} +} +} +else +{ +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; uint8_t x_84; lean_object* x_85; lean_object* x_86; +x_77 = lean_ctor_get(x_50, 0); +x_78 = lean_ctor_get(x_50, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_50); +lean_inc(x_78); +lean_inc(x_77); +x_79 = lean_name_mk_numeral(x_77, x_78); +x_80 = lean_unsigned_to_nat(1u); +x_81 = lean_nat_add(x_78, x_80); +lean_dec(x_78); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_77); +lean_ctor_set(x_82, 1, x_81); +lean_inc(x_55); +lean_inc(x_82); +lean_ctor_set(x_49, 1, x_82); +x_83 = lean_ctor_get(x_1, 11); +lean_inc(x_83); +x_84 = lean_ctor_get_uint8(x_32, sizeof(void*)*3); +lean_dec(x_32); +x_85 = lean_box(x_84); +lean_inc(x_79); +x_86 = lean_apply_5(x_83, x_28, x_79, x_45, x_52, x_85); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; +lean_dec(x_82); +lean_dec(x_79); +lean_dec(x_55); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_1); +x_87 = lean_box(2); +lean_ctor_set_tag(x_48, 1); +lean_ctor_set(x_48, 0, x_87); +return x_48; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_49); +x_88 = lean_ctor_get(x_86, 0); +lean_inc(x_88); +lean_dec(x_86); +lean_inc(x_79); +x_89 = lean_expr_mk_mvar(x_79); +lean_inc(x_33); +x_90 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_33, x_44, x_44, x_36, x_89); +if (x_84 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_79); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_3); +x_91 = lean_ctor_get(x_1, 6); +lean_inc(x_91); +lean_dec(x_1); +lean_inc(x_90); +x_92 = lean_apply_3(x_91, x_88, x_27, x_90); +x_93 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_82); +lean_ctor_set(x_93, 2, x_55); +lean_ctor_set(x_48, 1, x_93); +lean_ctor_set(x_48, 0, x_90); +return x_48; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_27); +x_94 = lean_ctor_get(x_1, 8); +lean_inc(x_94); +lean_dec(x_1); +x_95 = lean_apply_5(x_94, x_88, x_79, x_33, x_44, x_3); +x_96 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_82); +lean_ctor_set(x_96, 2, x_55); +lean_ctor_set(x_48, 1, x_96); +lean_ctor_set(x_48, 0, x_90); +return x_48; +} +} +} +} +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; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; +x_97 = lean_ctor_get(x_49, 0); +x_98 = lean_ctor_get(x_49, 2); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_49); +x_99 = lean_ctor_get(x_50, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_50, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_101 = x_50; +} else { + lean_dec_ref(x_50); + x_101 = lean_box(0); +} +lean_inc(x_100); +lean_inc(x_99); +x_102 = lean_name_mk_numeral(x_99, x_100); +x_103 = lean_unsigned_to_nat(1u); +x_104 = lean_nat_add(x_100, x_103); +lean_dec(x_100); +if (lean_is_scalar(x_101)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_101; +} +lean_ctor_set(x_105, 0, x_99); +lean_ctor_set(x_105, 1, x_104); +lean_inc(x_98); +lean_inc(x_105); +x_106 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_106, 0, x_97); +lean_ctor_set(x_106, 1, x_105); +lean_ctor_set(x_106, 2, x_98); +x_107 = lean_ctor_get(x_1, 11); +lean_inc(x_107); +x_108 = lean_ctor_get_uint8(x_32, sizeof(void*)*3); +lean_dec(x_32); +x_109 = lean_box(x_108); +lean_inc(x_102); +x_110 = lean_apply_5(x_107, x_28, x_102, x_45, x_52, x_109); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; +lean_dec(x_105); +lean_dec(x_102); +lean_dec(x_98); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_1); +x_111 = lean_box(2); +lean_ctor_set_tag(x_48, 1); +lean_ctor_set(x_48, 1, x_106); +lean_ctor_set(x_48, 0, x_111); +return x_48; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_106); +x_112 = lean_ctor_get(x_110, 0); +lean_inc(x_112); +lean_dec(x_110); +lean_inc(x_102); +x_113 = lean_expr_mk_mvar(x_102); +lean_inc(x_33); +x_114 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_33, x_44, x_44, x_36, x_113); +if (x_108 == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_102); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_3); +x_115 = lean_ctor_get(x_1, 6); +lean_inc(x_115); +lean_dec(x_1); +lean_inc(x_114); +x_116 = lean_apply_3(x_115, x_112, x_27, x_114); +x_117 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_105); +lean_ctor_set(x_117, 2, x_98); +lean_ctor_set(x_48, 1, x_117); +lean_ctor_set(x_48, 0, x_114); +return x_48; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_dec(x_27); +x_118 = lean_ctor_get(x_1, 8); +lean_inc(x_118); +lean_dec(x_1); +x_119 = lean_apply_5(x_118, x_112, x_102, x_33, x_44, x_3); +x_120 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_105); +lean_ctor_set(x_120, 2, x_98); +lean_ctor_set(x_48, 1, x_120); +lean_ctor_set(x_48, 0, x_114); +return x_48; +} +} +} +} +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; uint8_t x_134; lean_object* x_135; lean_object* x_136; +x_121 = lean_ctor_get(x_48, 0); +lean_inc(x_121); +lean_dec(x_48); +x_122 = lean_ctor_get(x_49, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_49, 2); +lean_inc(x_123); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + lean_ctor_release(x_49, 2); + x_124 = x_49; +} else { + lean_dec_ref(x_49); + x_124 = lean_box(0); +} +x_125 = lean_ctor_get(x_50, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_50, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_127 = x_50; +} else { + lean_dec_ref(x_50); + x_127 = lean_box(0); +} +lean_inc(x_126); +lean_inc(x_125); +x_128 = lean_name_mk_numeral(x_125, x_126); +x_129 = lean_unsigned_to_nat(1u); +x_130 = lean_nat_add(x_126, x_129); +lean_dec(x_126); +if (lean_is_scalar(x_127)) { + x_131 = lean_alloc_ctor(0, 2, 0); +} else { + x_131 = x_127; +} +lean_ctor_set(x_131, 0, x_125); +lean_ctor_set(x_131, 1, x_130); +lean_inc(x_123); +lean_inc(x_131); +if (lean_is_scalar(x_124)) { + x_132 = lean_alloc_ctor(0, 3, 0); +} else { + x_132 = x_124; +} +lean_ctor_set(x_132, 0, x_122); +lean_ctor_set(x_132, 1, x_131); +lean_ctor_set(x_132, 2, x_123); +x_133 = lean_ctor_get(x_1, 11); +lean_inc(x_133); +x_134 = lean_ctor_get_uint8(x_32, sizeof(void*)*3); +lean_dec(x_32); +x_135 = lean_box(x_134); +lean_inc(x_128); +x_136 = lean_apply_5(x_133, x_28, x_128, x_45, x_121, x_135); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; +lean_dec(x_131); +lean_dec(x_128); +lean_dec(x_123); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_1); +x_137 = lean_box(2); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_132); +return x_138; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_132); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +lean_dec(x_136); +lean_inc(x_128); +x_140 = lean_expr_mk_mvar(x_128); +lean_inc(x_33); +x_141 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_33, x_44, x_44, x_36, x_140); +if (x_134 == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_128); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_3); +x_142 = lean_ctor_get(x_1, 6); +lean_inc(x_142); +lean_dec(x_1); +lean_inc(x_141); +x_143 = lean_apply_3(x_142, x_139, x_27, x_141); +x_144 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_131); +lean_ctor_set(x_144, 2, x_123); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_141); +lean_ctor_set(x_145, 1, x_144); +return x_145; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +lean_dec(x_27); +x_146 = lean_ctor_get(x_1, 8); +lean_inc(x_146); +lean_dec(x_1); +x_147 = lean_apply_5(x_146, x_139, x_128, x_33, x_44, x_3); +x_148 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_131); +lean_ctor_set(x_148, 2, x_123); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_141); +lean_ctor_set(x_149, 1, x_148); +return x_149; +} +} +} +} +else +{ +uint8_t x_150; +lean_dec(x_45); +lean_dec(x_44); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_3); +lean_dec(x_1); +x_150 = !lean_is_exclusive(x_48); +if (x_150 == 0) +{ +return x_48; +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_48, 0); +x_152 = lean_ctor_get(x_48, 1); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_48); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +return x_153; +} +} +} +} +else +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +lean_dec(x_3); +lean_dec(x_1); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_27); +x_155 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_4); +return x_155; +} +} +else +{ +lean_object* x_156; +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_1); +x_156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_156, 0, x_3); +lean_ctor_set(x_156, 1, x_4); +return x_156; +} +} +else +{ +lean_object* x_157; uint8_t x_158; +lean_dec(x_28); +lean_dec(x_27); +lean_dec(x_3); +x_157 = lean_ctor_get(x_30, 0); +lean_inc(x_157); +lean_dec(x_30); +x_158 = lean_expr_has_expr_mvar(x_157); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_157); +if (x_159 == 0) +{ +lean_object* x_160; +lean_dec(x_1); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_157); +lean_ctor_set(x_160, 1, x_4); +return x_160; +} +else +{ +lean_object* x_161; lean_object* x_162; +x_161 = lean_ctor_get(x_4, 2); +lean_inc(x_161); +x_162 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_161, x_157); +lean_dec(x_161); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; +lean_inc(x_157); +x_163 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_157, x_4); +if (lean_obj_tag(x_163) == 0) +{ +uint8_t x_164; +x_164 = !lean_is_exclusive(x_163); +if (x_164 == 0) +{ +lean_object* x_165; uint8_t x_166; +x_165 = lean_ctor_get(x_163, 1); +x_166 = !lean_is_exclusive(x_165); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_163, 0); +x_168 = lean_ctor_get(x_165, 2); +lean_inc(x_167); +x_169 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_168, x_157, x_167); +lean_ctor_set(x_165, 2, x_169); +return x_163; +} +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; +x_170 = lean_ctor_get(x_163, 0); +x_171 = lean_ctor_get(x_165, 0); +x_172 = lean_ctor_get(x_165, 1); +x_173 = lean_ctor_get(x_165, 2); +lean_inc(x_173); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_165); +lean_inc(x_170); +x_174 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_173, x_157, x_170); +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); +lean_ctor_set(x_163, 1, x_175); +return x_163; +} +} +else +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_176 = lean_ctor_get(x_163, 1); +x_177 = lean_ctor_get(x_163, 0); +lean_inc(x_176); +lean_inc(x_177); +lean_dec(x_163); +x_178 = lean_ctor_get(x_176, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_176, 1); +lean_inc(x_179); +x_180 = lean_ctor_get(x_176, 2); +lean_inc(x_180); +if (lean_is_exclusive(x_176)) { + lean_ctor_release(x_176, 0); + lean_ctor_release(x_176, 1); + lean_ctor_release(x_176, 2); + x_181 = x_176; +} else { + lean_dec_ref(x_176); + x_181 = lean_box(0); +} +lean_inc(x_177); +x_182 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_180, x_157, x_177); +if (lean_is_scalar(x_181)) { + x_183 = lean_alloc_ctor(0, 3, 0); +} else { + x_183 = x_181; +} +lean_ctor_set(x_183, 0, x_178); +lean_ctor_set(x_183, 1, x_179); +lean_ctor_set(x_183, 2, x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_177); +lean_ctor_set(x_184, 1, x_183); +return x_184; +} +} +else +{ +uint8_t x_185; +lean_dec(x_157); +x_185 = !lean_is_exclusive(x_163); +if (x_185 == 0) +{ +return x_163; +} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_163, 0); +x_187 = lean_ctor_get(x_163, 1); +lean_inc(x_187); +lean_inc(x_186); +lean_dec(x_163); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +return x_188; +} +} +} +else +{ +lean_object* x_189; lean_object* x_190; +lean_dec(x_157); +lean_dec(x_1); +x_189 = lean_ctor_get(x_162, 0); +lean_inc(x_189); +lean_dec(x_162); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_4); +return x_190; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; +x_191 = lean_ctor_get(x_4, 2); +lean_inc(x_191); +x_192 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_191, x_157); +lean_dec(x_191); +if (lean_obj_tag(x_192) == 0) +{ +lean_object* x_193; +lean_inc(x_157); +x_193 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_157, x_4); +if (lean_obj_tag(x_193) == 0) +{ +uint8_t x_194; +x_194 = !lean_is_exclusive(x_193); +if (x_194 == 0) +{ +lean_object* x_195; uint8_t x_196; +x_195 = lean_ctor_get(x_193, 1); +x_196 = !lean_is_exclusive(x_195); +if (x_196 == 0) +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_193, 0); +x_198 = lean_ctor_get(x_195, 2); +lean_inc(x_197); +x_199 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_198, x_157, x_197); +lean_ctor_set(x_195, 2, x_199); +return x_193; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_200 = lean_ctor_get(x_193, 0); +x_201 = lean_ctor_get(x_195, 0); +x_202 = lean_ctor_get(x_195, 1); +x_203 = lean_ctor_get(x_195, 2); +lean_inc(x_203); +lean_inc(x_202); +lean_inc(x_201); +lean_dec(x_195); +lean_inc(x_200); +x_204 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_203, x_157, x_200); +x_205 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_205, 0, x_201); +lean_ctor_set(x_205, 1, x_202); +lean_ctor_set(x_205, 2, x_204); +lean_ctor_set(x_193, 1, x_205); +return x_193; +} +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_206 = lean_ctor_get(x_193, 1); +x_207 = lean_ctor_get(x_193, 0); +lean_inc(x_206); +lean_inc(x_207); +lean_dec(x_193); +x_208 = lean_ctor_get(x_206, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_206, 1); +lean_inc(x_209); +x_210 = lean_ctor_get(x_206, 2); +lean_inc(x_210); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + lean_ctor_release(x_206, 2); + x_211 = x_206; +} else { + lean_dec_ref(x_206); + x_211 = lean_box(0); +} +lean_inc(x_207); +x_212 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_210, x_157, x_207); +if (lean_is_scalar(x_211)) { + x_213 = lean_alloc_ctor(0, 3, 0); +} else { + x_213 = x_211; +} +lean_ctor_set(x_213, 0, x_208); +lean_ctor_set(x_213, 1, x_209); +lean_ctor_set(x_213, 2, x_212); +x_214 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_214, 0, x_207); +lean_ctor_set(x_214, 1, x_213); +return x_214; +} +} +else +{ +uint8_t x_215; +lean_dec(x_157); +x_215 = !lean_is_exclusive(x_193); +if (x_215 == 0) +{ +return x_193; +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_193, 0); +x_217 = lean_ctor_get(x_193, 1); +lean_inc(x_217); +lean_inc(x_216); +lean_dec(x_193); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); +return x_218; +} +} +} +else +{ +lean_object* x_219; lean_object* x_220; +lean_dec(x_157); +lean_dec(x_1); +x_219 = lean_ctor_get(x_192, 0); +lean_inc(x_219); +lean_dec(x_192); +x_220 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_4); +return x_220; +} +} +} +} +case 5: +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_221 = lean_unsigned_to_nat(0u); +x_222 = l_Lean_Expr_getAppNumArgsAux___main(x_3, x_221); +x_223 = lean_mk_empty_array_with_capacity(x_222); +lean_dec(x_222); +x_224 = l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___rarg(x_1, x_2, x_3, x_223, x_4); +return x_224; +} +case 6: +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; uint8_t x_280; +x_225 = lean_ctor_get(x_3, 1); +lean_inc(x_225); +x_226 = lean_ctor_get(x_3, 2); +lean_inc(x_226); +x_280 = lean_expr_has_expr_mvar(x_225); +if (x_280 == 0) +{ +uint8_t x_281; +x_281 = lean_expr_has_level_mvar(x_225); +if (x_281 == 0) +{ +x_227 = x_225; +x_228 = x_4; +goto block_279; +} +else +{ +lean_object* x_282; lean_object* x_283; +x_282 = lean_ctor_get(x_4, 2); +lean_inc(x_282); +x_283 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_282, x_225); +lean_dec(x_282); +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_284; +lean_inc(x_225); +lean_inc(x_1); +x_284 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_225, x_4); +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_288, x_225, x_286); +lean_ctor_set(x_285, 2, x_289); +x_227 = x_286; +x_228 = x_285; +goto block_279; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_292, x_225, 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_227 = x_286; +x_228 = x_294; +goto block_279; +} +} +else +{ +uint8_t x_295; +lean_dec(x_226); +lean_dec(x_225); +lean_dec(x_3); +lean_dec(x_1); +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_225); +x_299 = lean_ctor_get(x_283, 0); +lean_inc(x_299); +lean_dec(x_283); +x_227 = x_299; +x_228 = x_4; +goto block_279; +} +} +} +else +{ +lean_object* x_300; lean_object* x_301; +x_300 = lean_ctor_get(x_4, 2); +lean_inc(x_300); +x_301 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_300, x_225); +lean_dec(x_300); +if (lean_obj_tag(x_301) == 0) +{ +lean_object* x_302; +lean_inc(x_225); +lean_inc(x_1); +x_302 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_225, x_4); +if (lean_obj_tag(x_302) == 0) +{ +lean_object* x_303; lean_object* x_304; uint8_t x_305; +x_303 = lean_ctor_get(x_302, 1); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 0); +lean_inc(x_304); +lean_dec(x_302); +x_305 = !lean_is_exclusive(x_303); +if (x_305 == 0) +{ +lean_object* x_306; lean_object* x_307; +x_306 = lean_ctor_get(x_303, 2); +lean_inc(x_304); +x_307 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_306, x_225, x_304); +lean_ctor_set(x_303, 2, x_307); +x_227 = x_304; +x_228 = x_303; +goto block_279; +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_308 = lean_ctor_get(x_303, 0); +x_309 = lean_ctor_get(x_303, 1); +x_310 = lean_ctor_get(x_303, 2); +lean_inc(x_310); +lean_inc(x_309); +lean_inc(x_308); +lean_dec(x_303); +lean_inc(x_304); +x_311 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_310, x_225, x_304); +x_312 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_312, 0, x_308); +lean_ctor_set(x_312, 1, x_309); +lean_ctor_set(x_312, 2, x_311); +x_227 = x_304; +x_228 = x_312; +goto block_279; +} +} +else +{ +uint8_t x_313; +lean_dec(x_226); +lean_dec(x_225); +lean_dec(x_3); +lean_dec(x_1); +x_313 = !lean_is_exclusive(x_302); +if (x_313 == 0) +{ +return x_302; +} +else +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; +x_314 = lean_ctor_get(x_302, 0); +x_315 = lean_ctor_get(x_302, 1); +lean_inc(x_315); +lean_inc(x_314); +lean_dec(x_302); +x_316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_316, 0, x_314); +lean_ctor_set(x_316, 1, x_315); +return x_316; +} +} +} +else +{ +lean_object* x_317; +lean_dec(x_225); +x_317 = lean_ctor_get(x_301, 0); +lean_inc(x_317); +lean_dec(x_301); +x_227 = x_317; +x_228 = x_4; +goto block_279; +} +} +block_279: +{ +lean_object* x_229; lean_object* x_230; uint8_t x_241; +x_241 = lean_expr_has_expr_mvar(x_226); +if (x_241 == 0) +{ +uint8_t x_242; +x_242 = lean_expr_has_level_mvar(x_226); +if (x_242 == 0) +{ +lean_dec(x_1); +x_229 = x_226; +x_230 = x_228; +goto block_240; +} +else +{ +lean_object* x_243; lean_object* x_244; +x_243 = lean_ctor_get(x_228, 2); +lean_inc(x_243); +x_244 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_243, x_226); +lean_dec(x_243); +if (lean_obj_tag(x_244) == 0) +{ +lean_object* x_245; +lean_inc(x_226); +x_245 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_226, x_228); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; lean_object* x_247; uint8_t x_248; +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +x_247 = lean_ctor_get(x_245, 0); +lean_inc(x_247); +lean_dec(x_245); +x_248 = !lean_is_exclusive(x_246); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; +x_249 = lean_ctor_get(x_246, 2); +lean_inc(x_247); +x_250 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_249, x_226, x_247); +lean_ctor_set(x_246, 2, x_250); +x_229 = x_247; +x_230 = x_246; +goto block_240; +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_251 = lean_ctor_get(x_246, 0); +x_252 = lean_ctor_get(x_246, 1); +x_253 = lean_ctor_get(x_246, 2); +lean_inc(x_253); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_246); +lean_inc(x_247); +x_254 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_253, x_226, x_247); +x_255 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_255, 0, x_251); +lean_ctor_set(x_255, 1, x_252); +lean_ctor_set(x_255, 2, x_254); +x_229 = x_247; +x_230 = x_255; +goto block_240; +} +} +else +{ +uint8_t x_256; +lean_dec(x_227); +lean_dec(x_226); +lean_dec(x_3); +x_256 = !lean_is_exclusive(x_245); +if (x_256 == 0) +{ +return x_245; +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = lean_ctor_get(x_245, 0); +x_258 = lean_ctor_get(x_245, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_245); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +return x_259; +} +} +} +else +{ +lean_object* x_260; +lean_dec(x_226); +lean_dec(x_1); +x_260 = lean_ctor_get(x_244, 0); +lean_inc(x_260); +lean_dec(x_244); +x_229 = x_260; +x_230 = x_228; +goto block_240; +} +} +} +else +{ +lean_object* x_261; lean_object* x_262; +x_261 = lean_ctor_get(x_228, 2); +lean_inc(x_261); +x_262 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_261, x_226); +lean_dec(x_261); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; +lean_inc(x_226); +x_263 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_226, x_228); +if (lean_obj_tag(x_263) == 0) +{ +lean_object* x_264; lean_object* x_265; uint8_t x_266; +x_264 = lean_ctor_get(x_263, 1); +lean_inc(x_264); +x_265 = lean_ctor_get(x_263, 0); +lean_inc(x_265); +lean_dec(x_263); +x_266 = !lean_is_exclusive(x_264); +if (x_266 == 0) +{ +lean_object* x_267; lean_object* x_268; +x_267 = lean_ctor_get(x_264, 2); +lean_inc(x_265); +x_268 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_267, x_226, x_265); +lean_ctor_set(x_264, 2, x_268); +x_229 = x_265; +x_230 = x_264; +goto block_240; +} +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_264, 0); +x_270 = lean_ctor_get(x_264, 1); +x_271 = lean_ctor_get(x_264, 2); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_dec(x_264); +lean_inc(x_265); +x_272 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_271, x_226, x_265); +x_273 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_273, 0, x_269); +lean_ctor_set(x_273, 1, x_270); +lean_ctor_set(x_273, 2, x_272); +x_229 = x_265; +x_230 = x_273; +goto block_240; +} +} +else +{ +uint8_t x_274; +lean_dec(x_227); +lean_dec(x_226); +lean_dec(x_3); +x_274 = !lean_is_exclusive(x_263); +if (x_274 == 0) +{ +return x_263; +} +else +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; +x_275 = lean_ctor_get(x_263, 0); +x_276 = lean_ctor_get(x_263, 1); +lean_inc(x_276); +lean_inc(x_275); +lean_dec(x_263); +x_277 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_277, 0, x_275); +lean_ctor_set(x_277, 1, x_276); +return x_277; +} +} +} +else +{ +lean_object* x_278; +lean_dec(x_226); +lean_dec(x_1); +x_278 = lean_ctor_get(x_262, 0); +lean_inc(x_278); +lean_dec(x_262); +x_229 = x_278; +x_230 = x_228; +goto block_240; +} +} +block_240: +{ +if (lean_obj_tag(x_3) == 6) +{ +uint8_t x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_232 = lean_expr_update_lambda(x_3, x_231, x_227, x_229); +x_233 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_230); +return x_233; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; +lean_dec(x_229); +lean_dec(x_227); +lean_dec(x_3); +x_234 = l_Lean_Expr_constName_x21___closed__1; +x_235 = lean_unsigned_to_nat(475u); +x_236 = lean_unsigned_to_nat(18u); +x_237 = l_Lean_Expr_updateLambda_x21___closed__1; +x_238 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_234, x_235, x_236, x_237); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_230); +return x_239; +} +} +} +} +case 7: +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_373; +x_318 = lean_ctor_get(x_3, 1); +lean_inc(x_318); +x_319 = lean_ctor_get(x_3, 2); +lean_inc(x_319); +x_373 = lean_expr_has_expr_mvar(x_318); +if (x_373 == 0) +{ +uint8_t x_374; +x_374 = lean_expr_has_level_mvar(x_318); +if (x_374 == 0) +{ +x_320 = x_318; +x_321 = x_4; +goto block_372; +} +else +{ +lean_object* x_375; lean_object* x_376; +x_375 = lean_ctor_get(x_4, 2); +lean_inc(x_375); +x_376 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_375, x_318); +lean_dec(x_375); +if (lean_obj_tag(x_376) == 0) +{ +lean_object* x_377; +lean_inc(x_318); +lean_inc(x_1); +x_377 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_318, x_4); +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_381, x_318, x_379); +lean_ctor_set(x_378, 2, x_382); +x_320 = x_379; +x_321 = x_378; +goto block_372; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_385, x_318, 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_320 = x_379; +x_321 = x_387; +goto block_372; +} +} +else +{ +uint8_t x_388; +lean_dec(x_319); +lean_dec(x_318); +lean_dec(x_3); +lean_dec(x_1); +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_318); +x_392 = lean_ctor_get(x_376, 0); +lean_inc(x_392); +lean_dec(x_376); +x_320 = x_392; +x_321 = x_4; +goto block_372; +} +} +} +else +{ +lean_object* x_393; lean_object* x_394; +x_393 = lean_ctor_get(x_4, 2); +lean_inc(x_393); +x_394 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_393, x_318); +lean_dec(x_393); +if (lean_obj_tag(x_394) == 0) +{ +lean_object* x_395; +lean_inc(x_318); +lean_inc(x_1); +x_395 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_318, x_4); +if (lean_obj_tag(x_395) == 0) +{ +lean_object* x_396; lean_object* x_397; uint8_t x_398; +x_396 = lean_ctor_get(x_395, 1); +lean_inc(x_396); +x_397 = lean_ctor_get(x_395, 0); +lean_inc(x_397); +lean_dec(x_395); +x_398 = !lean_is_exclusive(x_396); +if (x_398 == 0) +{ +lean_object* x_399; lean_object* x_400; +x_399 = lean_ctor_get(x_396, 2); +lean_inc(x_397); +x_400 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_399, x_318, x_397); +lean_ctor_set(x_396, 2, x_400); +x_320 = x_397; +x_321 = x_396; +goto block_372; +} +else +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; +x_401 = lean_ctor_get(x_396, 0); +x_402 = lean_ctor_get(x_396, 1); +x_403 = lean_ctor_get(x_396, 2); +lean_inc(x_403); +lean_inc(x_402); +lean_inc(x_401); +lean_dec(x_396); +lean_inc(x_397); +x_404 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_403, x_318, x_397); +x_405 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_405, 0, x_401); +lean_ctor_set(x_405, 1, x_402); +lean_ctor_set(x_405, 2, x_404); +x_320 = x_397; +x_321 = x_405; +goto block_372; +} +} +else +{ +uint8_t x_406; +lean_dec(x_319); +lean_dec(x_318); +lean_dec(x_3); +lean_dec(x_1); +x_406 = !lean_is_exclusive(x_395); +if (x_406 == 0) +{ +return x_395; +} +else +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; +x_407 = lean_ctor_get(x_395, 0); +x_408 = lean_ctor_get(x_395, 1); +lean_inc(x_408); +lean_inc(x_407); +lean_dec(x_395); +x_409 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_409, 0, x_407); +lean_ctor_set(x_409, 1, x_408); +return x_409; +} +} +} +else +{ +lean_object* x_410; +lean_dec(x_318); +x_410 = lean_ctor_get(x_394, 0); +lean_inc(x_410); +lean_dec(x_394); +x_320 = x_410; +x_321 = x_4; +goto block_372; +} +} +block_372: +{ +lean_object* x_322; lean_object* x_323; uint8_t x_334; +x_334 = lean_expr_has_expr_mvar(x_319); +if (x_334 == 0) +{ +uint8_t x_335; +x_335 = lean_expr_has_level_mvar(x_319); +if (x_335 == 0) +{ +lean_dec(x_1); +x_322 = x_319; +x_323 = x_321; +goto block_333; +} +else +{ +lean_object* x_336; lean_object* x_337; +x_336 = lean_ctor_get(x_321, 2); +lean_inc(x_336); +x_337 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_336, x_319); +lean_dec(x_336); +if (lean_obj_tag(x_337) == 0) +{ +lean_object* x_338; +lean_inc(x_319); +x_338 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_319, x_321); +if (lean_obj_tag(x_338) == 0) +{ +lean_object* x_339; lean_object* x_340; uint8_t x_341; +x_339 = lean_ctor_get(x_338, 1); +lean_inc(x_339); +x_340 = lean_ctor_get(x_338, 0); +lean_inc(x_340); +lean_dec(x_338); +x_341 = !lean_is_exclusive(x_339); +if (x_341 == 0) +{ +lean_object* x_342; lean_object* x_343; +x_342 = lean_ctor_get(x_339, 2); +lean_inc(x_340); +x_343 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_342, x_319, x_340); +lean_ctor_set(x_339, 2, x_343); +x_322 = x_340; +x_323 = x_339; +goto block_333; +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_344 = lean_ctor_get(x_339, 0); +x_345 = lean_ctor_get(x_339, 1); +x_346 = lean_ctor_get(x_339, 2); +lean_inc(x_346); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_339); +lean_inc(x_340); +x_347 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_346, x_319, x_340); +x_348 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set(x_348, 1, x_345); +lean_ctor_set(x_348, 2, x_347); +x_322 = x_340; +x_323 = x_348; +goto block_333; +} +} +else +{ +uint8_t x_349; +lean_dec(x_320); +lean_dec(x_319); +lean_dec(x_3); +x_349 = !lean_is_exclusive(x_338); +if (x_349 == 0) +{ +return x_338; +} +else +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; +x_350 = lean_ctor_get(x_338, 0); +x_351 = lean_ctor_get(x_338, 1); +lean_inc(x_351); +lean_inc(x_350); +lean_dec(x_338); +x_352 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_352, 0, x_350); +lean_ctor_set(x_352, 1, x_351); +return x_352; +} +} +} +else +{ +lean_object* x_353; +lean_dec(x_319); +lean_dec(x_1); +x_353 = lean_ctor_get(x_337, 0); +lean_inc(x_353); +lean_dec(x_337); +x_322 = x_353; +x_323 = x_321; +goto block_333; +} +} +} +else +{ +lean_object* x_354; lean_object* x_355; +x_354 = lean_ctor_get(x_321, 2); +lean_inc(x_354); +x_355 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_354, x_319); +lean_dec(x_354); +if (lean_obj_tag(x_355) == 0) +{ +lean_object* x_356; +lean_inc(x_319); +x_356 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_319, x_321); +if (lean_obj_tag(x_356) == 0) +{ +lean_object* x_357; lean_object* x_358; uint8_t x_359; +x_357 = lean_ctor_get(x_356, 1); +lean_inc(x_357); +x_358 = lean_ctor_get(x_356, 0); +lean_inc(x_358); +lean_dec(x_356); +x_359 = !lean_is_exclusive(x_357); +if (x_359 == 0) +{ +lean_object* x_360; lean_object* x_361; +x_360 = lean_ctor_get(x_357, 2); +lean_inc(x_358); +x_361 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_360, x_319, x_358); +lean_ctor_set(x_357, 2, x_361); +x_322 = x_358; +x_323 = x_357; +goto block_333; +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_362 = lean_ctor_get(x_357, 0); +x_363 = lean_ctor_get(x_357, 1); +x_364 = lean_ctor_get(x_357, 2); +lean_inc(x_364); +lean_inc(x_363); +lean_inc(x_362); +lean_dec(x_357); +lean_inc(x_358); +x_365 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_364, x_319, x_358); +x_366 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_366, 0, x_362); +lean_ctor_set(x_366, 1, x_363); +lean_ctor_set(x_366, 2, x_365); +x_322 = x_358; +x_323 = x_366; +goto block_333; +} +} +else +{ +uint8_t x_367; +lean_dec(x_320); +lean_dec(x_319); +lean_dec(x_3); +x_367 = !lean_is_exclusive(x_356); +if (x_367 == 0) +{ +return x_356; +} +else +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; +x_368 = lean_ctor_get(x_356, 0); +x_369 = lean_ctor_get(x_356, 1); +lean_inc(x_369); +lean_inc(x_368); +lean_dec(x_356); +x_370 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_370, 0, x_368); +lean_ctor_set(x_370, 1, x_369); +return x_370; +} +} +} +else +{ +lean_object* x_371; +lean_dec(x_319); +lean_dec(x_1); +x_371 = lean_ctor_get(x_355, 0); +lean_inc(x_371); +lean_dec(x_355); +x_322 = x_371; +x_323 = x_321; +goto block_333; +} +} +block_333: +{ +if (lean_obj_tag(x_3) == 7) +{ +uint8_t x_324; lean_object* x_325; lean_object* x_326; +x_324 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_325 = lean_expr_update_forall(x_3, x_324, x_320, x_322); +x_326 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_326, 0, x_325); +lean_ctor_set(x_326, 1, x_323); +return x_326; +} +else +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +lean_dec(x_322); +lean_dec(x_320); +lean_dec(x_3); +x_327 = l_Lean_Expr_constName_x21___closed__1; +x_328 = lean_unsigned_to_nat(461u); +x_329 = lean_unsigned_to_nat(22u); +x_330 = l_Lean_Expr_updateForall_x21___closed__1; +x_331 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_327, x_328, x_329, x_330); +x_332 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_332, 0, x_331); +lean_ctor_set(x_332, 1, x_323); +return x_332; +} +} +} +} +case 8: +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; uint8_t x_507; +x_411 = lean_ctor_get(x_3, 1); +lean_inc(x_411); +x_412 = lean_ctor_get(x_3, 2); +lean_inc(x_412); +x_413 = lean_ctor_get(x_3, 3); +lean_inc(x_413); +x_507 = lean_expr_has_expr_mvar(x_411); +if (x_507 == 0) +{ +uint8_t x_508; +x_508 = lean_expr_has_level_mvar(x_411); +if (x_508 == 0) +{ +x_414 = x_411; +x_415 = x_4; +goto block_506; +} +else +{ +lean_object* x_509; lean_object* x_510; +x_509 = lean_ctor_get(x_4, 2); +lean_inc(x_509); +x_510 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_509, x_411); +lean_dec(x_509); +if (lean_obj_tag(x_510) == 0) +{ +lean_object* x_511; +lean_inc(x_411); +lean_inc(x_1); +x_511 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_411, x_4); +if (lean_obj_tag(x_511) == 0) +{ +lean_object* x_512; lean_object* x_513; uint8_t x_514; +x_512 = lean_ctor_get(x_511, 1); +lean_inc(x_512); +x_513 = lean_ctor_get(x_511, 0); +lean_inc(x_513); +lean_dec(x_511); +x_514 = !lean_is_exclusive(x_512); +if (x_514 == 0) +{ +lean_object* x_515; lean_object* x_516; +x_515 = lean_ctor_get(x_512, 2); +lean_inc(x_513); +x_516 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_515, x_411, x_513); +lean_ctor_set(x_512, 2, x_516); +x_414 = x_513; +x_415 = x_512; +goto block_506; +} +else +{ +lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; +x_517 = lean_ctor_get(x_512, 0); +x_518 = lean_ctor_get(x_512, 1); +x_519 = lean_ctor_get(x_512, 2); +lean_inc(x_519); +lean_inc(x_518); +lean_inc(x_517); +lean_dec(x_512); +lean_inc(x_513); +x_520 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_519, x_411, x_513); +x_521 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_521, 0, x_517); +lean_ctor_set(x_521, 1, x_518); +lean_ctor_set(x_521, 2, x_520); +x_414 = x_513; +x_415 = x_521; +goto block_506; +} +} +else +{ +uint8_t x_522; +lean_dec(x_413); +lean_dec(x_412); +lean_dec(x_411); +lean_dec(x_3); +lean_dec(x_1); +x_522 = !lean_is_exclusive(x_511); +if (x_522 == 0) +{ +return x_511; +} +else +{ +lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_523 = lean_ctor_get(x_511, 0); +x_524 = lean_ctor_get(x_511, 1); +lean_inc(x_524); +lean_inc(x_523); +lean_dec(x_511); +x_525 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_525, 0, x_523); +lean_ctor_set(x_525, 1, x_524); +return x_525; +} +} +} +else +{ +lean_object* x_526; +lean_dec(x_411); +x_526 = lean_ctor_get(x_510, 0); +lean_inc(x_526); +lean_dec(x_510); +x_414 = x_526; +x_415 = x_4; +goto block_506; +} +} +} +else +{ +lean_object* x_527; lean_object* x_528; +x_527 = lean_ctor_get(x_4, 2); +lean_inc(x_527); +x_528 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_527, x_411); +lean_dec(x_527); +if (lean_obj_tag(x_528) == 0) +{ +lean_object* x_529; +lean_inc(x_411); +lean_inc(x_1); +x_529 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_411, x_4); +if (lean_obj_tag(x_529) == 0) +{ +lean_object* x_530; lean_object* x_531; uint8_t x_532; +x_530 = lean_ctor_get(x_529, 1); +lean_inc(x_530); +x_531 = lean_ctor_get(x_529, 0); +lean_inc(x_531); +lean_dec(x_529); +x_532 = !lean_is_exclusive(x_530); +if (x_532 == 0) +{ +lean_object* x_533; lean_object* x_534; +x_533 = lean_ctor_get(x_530, 2); +lean_inc(x_531); +x_534 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_533, x_411, x_531); +lean_ctor_set(x_530, 2, x_534); +x_414 = x_531; +x_415 = x_530; +goto block_506; +} +else +{ +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_535 = lean_ctor_get(x_530, 0); +x_536 = lean_ctor_get(x_530, 1); +x_537 = lean_ctor_get(x_530, 2); +lean_inc(x_537); +lean_inc(x_536); +lean_inc(x_535); +lean_dec(x_530); +lean_inc(x_531); +x_538 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_537, x_411, x_531); +x_539 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_539, 0, x_535); +lean_ctor_set(x_539, 1, x_536); +lean_ctor_set(x_539, 2, x_538); +x_414 = x_531; +x_415 = x_539; +goto block_506; +} +} +else +{ +uint8_t x_540; +lean_dec(x_413); +lean_dec(x_412); +lean_dec(x_411); +lean_dec(x_3); +lean_dec(x_1); +x_540 = !lean_is_exclusive(x_529); +if (x_540 == 0) +{ +return x_529; +} +else +{ +lean_object* x_541; lean_object* x_542; lean_object* x_543; +x_541 = lean_ctor_get(x_529, 0); +x_542 = lean_ctor_get(x_529, 1); +lean_inc(x_542); +lean_inc(x_541); +lean_dec(x_529); +x_543 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_543, 0, x_541); +lean_ctor_set(x_543, 1, x_542); +return x_543; +} +} +} +else +{ +lean_object* x_544; +lean_dec(x_411); +x_544 = lean_ctor_get(x_528, 0); +lean_inc(x_544); +lean_dec(x_528); +x_414 = x_544; +x_415 = x_4; +goto block_506; +} +} +block_506: +{ +lean_object* x_416; lean_object* x_417; uint8_t x_468; +x_468 = lean_expr_has_expr_mvar(x_412); +if (x_468 == 0) +{ +uint8_t x_469; +x_469 = lean_expr_has_level_mvar(x_412); +if (x_469 == 0) +{ +x_416 = x_412; +x_417 = x_415; +goto block_467; +} +else +{ +lean_object* x_470; lean_object* x_471; +x_470 = lean_ctor_get(x_415, 2); +lean_inc(x_470); +x_471 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_470, x_412); +lean_dec(x_470); +if (lean_obj_tag(x_471) == 0) +{ +lean_object* x_472; +lean_inc(x_412); +lean_inc(x_1); +x_472 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_412, x_415); +if (lean_obj_tag(x_472) == 0) +{ +lean_object* x_473; lean_object* x_474; uint8_t x_475; +x_473 = lean_ctor_get(x_472, 1); +lean_inc(x_473); +x_474 = lean_ctor_get(x_472, 0); +lean_inc(x_474); +lean_dec(x_472); +x_475 = !lean_is_exclusive(x_473); +if (x_475 == 0) +{ +lean_object* x_476; lean_object* x_477; +x_476 = lean_ctor_get(x_473, 2); +lean_inc(x_474); +x_477 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_476, x_412, x_474); +lean_ctor_set(x_473, 2, x_477); +x_416 = x_474; +x_417 = x_473; +goto block_467; +} +else +{ +lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; +x_478 = lean_ctor_get(x_473, 0); +x_479 = lean_ctor_get(x_473, 1); +x_480 = lean_ctor_get(x_473, 2); +lean_inc(x_480); +lean_inc(x_479); +lean_inc(x_478); +lean_dec(x_473); +lean_inc(x_474); +x_481 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_480, x_412, x_474); +x_482 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_482, 0, x_478); +lean_ctor_set(x_482, 1, x_479); +lean_ctor_set(x_482, 2, x_481); +x_416 = x_474; +x_417 = x_482; +goto block_467; +} +} +else +{ +uint8_t x_483; +lean_dec(x_414); +lean_dec(x_413); +lean_dec(x_412); +lean_dec(x_3); +lean_dec(x_1); +x_483 = !lean_is_exclusive(x_472); +if (x_483 == 0) +{ +return x_472; +} +else +{ +lean_object* x_484; lean_object* x_485; lean_object* x_486; +x_484 = lean_ctor_get(x_472, 0); +x_485 = lean_ctor_get(x_472, 1); +lean_inc(x_485); +lean_inc(x_484); +lean_dec(x_472); +x_486 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_486, 0, x_484); +lean_ctor_set(x_486, 1, x_485); +return x_486; +} +} +} +else +{ +lean_object* x_487; +lean_dec(x_412); +x_487 = lean_ctor_get(x_471, 0); +lean_inc(x_487); +lean_dec(x_471); +x_416 = x_487; +x_417 = x_415; +goto block_467; +} +} +} +else +{ +lean_object* x_488; lean_object* x_489; +x_488 = lean_ctor_get(x_415, 2); +lean_inc(x_488); +x_489 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_488, x_412); +lean_dec(x_488); +if (lean_obj_tag(x_489) == 0) +{ +lean_object* x_490; +lean_inc(x_412); +lean_inc(x_1); +x_490 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_412, x_415); +if (lean_obj_tag(x_490) == 0) +{ +lean_object* x_491; lean_object* x_492; uint8_t x_493; +x_491 = lean_ctor_get(x_490, 1); +lean_inc(x_491); +x_492 = lean_ctor_get(x_490, 0); +lean_inc(x_492); +lean_dec(x_490); +x_493 = !lean_is_exclusive(x_491); +if (x_493 == 0) +{ +lean_object* x_494; lean_object* x_495; +x_494 = lean_ctor_get(x_491, 2); +lean_inc(x_492); +x_495 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_494, x_412, x_492); +lean_ctor_set(x_491, 2, x_495); +x_416 = x_492; +x_417 = x_491; +goto block_467; +} +else +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_496 = lean_ctor_get(x_491, 0); +x_497 = lean_ctor_get(x_491, 1); +x_498 = lean_ctor_get(x_491, 2); +lean_inc(x_498); +lean_inc(x_497); +lean_inc(x_496); +lean_dec(x_491); +lean_inc(x_492); +x_499 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_498, x_412, x_492); +x_500 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_500, 0, x_496); +lean_ctor_set(x_500, 1, x_497); +lean_ctor_set(x_500, 2, x_499); +x_416 = x_492; +x_417 = x_500; +goto block_467; +} +} +else +{ +uint8_t x_501; +lean_dec(x_414); +lean_dec(x_413); +lean_dec(x_412); +lean_dec(x_3); +lean_dec(x_1); +x_501 = !lean_is_exclusive(x_490); +if (x_501 == 0) +{ +return x_490; +} +else +{ +lean_object* x_502; lean_object* x_503; lean_object* x_504; +x_502 = lean_ctor_get(x_490, 0); +x_503 = lean_ctor_get(x_490, 1); +lean_inc(x_503); +lean_inc(x_502); +lean_dec(x_490); +x_504 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_504, 0, x_502); +lean_ctor_set(x_504, 1, x_503); +return x_504; +} +} +} +else +{ +lean_object* x_505; +lean_dec(x_412); +x_505 = lean_ctor_get(x_489, 0); +lean_inc(x_505); +lean_dec(x_489); +x_416 = x_505; +x_417 = x_415; +goto block_467; +} +} +block_467: +{ +lean_object* x_418; lean_object* x_419; uint8_t x_429; +x_429 = lean_expr_has_expr_mvar(x_413); +if (x_429 == 0) +{ +uint8_t x_430; +x_430 = lean_expr_has_level_mvar(x_413); +if (x_430 == 0) +{ +lean_dec(x_1); +x_418 = x_413; +x_419 = x_417; +goto block_428; +} +else +{ +lean_object* x_431; lean_object* x_432; +x_431 = lean_ctor_get(x_417, 2); +lean_inc(x_431); +x_432 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_431, x_413); +lean_dec(x_431); +if (lean_obj_tag(x_432) == 0) +{ +lean_object* x_433; +lean_inc(x_413); +x_433 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_413, x_417); +if (lean_obj_tag(x_433) == 0) +{ +lean_object* x_434; lean_object* x_435; uint8_t x_436; +x_434 = lean_ctor_get(x_433, 1); +lean_inc(x_434); +x_435 = lean_ctor_get(x_433, 0); +lean_inc(x_435); +lean_dec(x_433); +x_436 = !lean_is_exclusive(x_434); +if (x_436 == 0) +{ +lean_object* x_437; lean_object* x_438; +x_437 = lean_ctor_get(x_434, 2); +lean_inc(x_435); +x_438 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_437, x_413, x_435); +lean_ctor_set(x_434, 2, x_438); +x_418 = x_435; +x_419 = x_434; +goto block_428; +} +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; +x_439 = lean_ctor_get(x_434, 0); +x_440 = lean_ctor_get(x_434, 1); +x_441 = lean_ctor_get(x_434, 2); +lean_inc(x_441); +lean_inc(x_440); +lean_inc(x_439); +lean_dec(x_434); +lean_inc(x_435); +x_442 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_441, x_413, x_435); +x_443 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_443, 0, x_439); +lean_ctor_set(x_443, 1, x_440); +lean_ctor_set(x_443, 2, x_442); +x_418 = x_435; +x_419 = x_443; +goto block_428; +} +} +else +{ +uint8_t x_444; +lean_dec(x_416); +lean_dec(x_414); +lean_dec(x_413); +lean_dec(x_3); +x_444 = !lean_is_exclusive(x_433); +if (x_444 == 0) +{ +return x_433; +} +else +{ +lean_object* x_445; lean_object* x_446; lean_object* x_447; +x_445 = lean_ctor_get(x_433, 0); +x_446 = lean_ctor_get(x_433, 1); +lean_inc(x_446); +lean_inc(x_445); +lean_dec(x_433); +x_447 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_447, 0, x_445); +lean_ctor_set(x_447, 1, x_446); +return x_447; +} +} +} +else +{ +lean_object* x_448; +lean_dec(x_413); +lean_dec(x_1); +x_448 = lean_ctor_get(x_432, 0); +lean_inc(x_448); +lean_dec(x_432); +x_418 = x_448; +x_419 = x_417; +goto block_428; +} +} +} +else +{ +lean_object* x_449; lean_object* x_450; +x_449 = lean_ctor_get(x_417, 2); +lean_inc(x_449); +x_450 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_449, x_413); +lean_dec(x_449); +if (lean_obj_tag(x_450) == 0) +{ +lean_object* x_451; +lean_inc(x_413); +x_451 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_413, x_417); +if (lean_obj_tag(x_451) == 0) +{ +lean_object* x_452; lean_object* x_453; uint8_t x_454; +x_452 = lean_ctor_get(x_451, 1); +lean_inc(x_452); +x_453 = lean_ctor_get(x_451, 0); +lean_inc(x_453); +lean_dec(x_451); +x_454 = !lean_is_exclusive(x_452); +if (x_454 == 0) +{ +lean_object* x_455; lean_object* x_456; +x_455 = lean_ctor_get(x_452, 2); +lean_inc(x_453); +x_456 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_455, x_413, x_453); +lean_ctor_set(x_452, 2, x_456); +x_418 = x_453; +x_419 = x_452; +goto block_428; +} +else +{ +lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; +x_457 = lean_ctor_get(x_452, 0); +x_458 = lean_ctor_get(x_452, 1); +x_459 = lean_ctor_get(x_452, 2); +lean_inc(x_459); +lean_inc(x_458); +lean_inc(x_457); +lean_dec(x_452); +lean_inc(x_453); +x_460 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_459, x_413, x_453); +x_461 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_461, 0, x_457); +lean_ctor_set(x_461, 1, x_458); +lean_ctor_set(x_461, 2, x_460); +x_418 = x_453; +x_419 = x_461; +goto block_428; +} +} +else +{ +uint8_t x_462; +lean_dec(x_416); +lean_dec(x_414); +lean_dec(x_413); +lean_dec(x_3); +x_462 = !lean_is_exclusive(x_451); +if (x_462 == 0) +{ +return x_451; +} +else +{ +lean_object* x_463; lean_object* x_464; lean_object* x_465; +x_463 = lean_ctor_get(x_451, 0); +x_464 = lean_ctor_get(x_451, 1); +lean_inc(x_464); +lean_inc(x_463); +lean_dec(x_451); +x_465 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_465, 0, x_463); +lean_ctor_set(x_465, 1, x_464); +return x_465; +} +} +} +else +{ +lean_object* x_466; +lean_dec(x_413); +lean_dec(x_1); +x_466 = lean_ctor_get(x_450, 0); +lean_inc(x_466); +lean_dec(x_450); +x_418 = x_466; +x_419 = x_417; +goto block_428; +} +} +block_428: +{ +if (lean_obj_tag(x_3) == 8) +{ +lean_object* x_420; lean_object* x_421; +x_420 = lean_expr_update_let(x_3, x_414, x_416, x_418); +x_421 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_421, 0, x_420); +lean_ctor_set(x_421, 1, x_419); +return x_421; +} +else +{ +lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_dec(x_418); +lean_dec(x_416); +lean_dec(x_414); +lean_dec(x_3); +x_422 = l_Lean_Expr_constName_x21___closed__1; +x_423 = lean_unsigned_to_nat(484u); +x_424 = lean_unsigned_to_nat(18u); +x_425 = l_Lean_Expr_letName_x21___closed__1; +x_426 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_422, x_423, x_424, x_425); +x_427 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_427, 0, x_426); +lean_ctor_set(x_427, 1, x_419); +return x_427; +} +} +} +} +} +case 10: +{ +lean_object* x_545; uint8_t x_546; +x_545 = lean_ctor_get(x_3, 1); +lean_inc(x_545); +x_546 = lean_expr_has_expr_mvar(x_545); +if (x_546 == 0) +{ +uint8_t x_547; +x_547 = lean_expr_has_level_mvar(x_545); +if (x_547 == 0) +{ +lean_dec(x_1); +x_5 = x_545; +x_6 = x_4; +goto block_15; +} +else +{ +lean_object* x_548; lean_object* x_549; +x_548 = lean_ctor_get(x_4, 2); +lean_inc(x_548); +x_549 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_548, x_545); +lean_dec(x_548); +if (lean_obj_tag(x_549) == 0) +{ +lean_object* x_550; +lean_inc(x_545); +x_550 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_545, x_4); +if (lean_obj_tag(x_550) == 0) +{ +lean_object* x_551; lean_object* x_552; uint8_t x_553; +x_551 = lean_ctor_get(x_550, 1); +lean_inc(x_551); +x_552 = lean_ctor_get(x_550, 0); +lean_inc(x_552); +lean_dec(x_550); +x_553 = !lean_is_exclusive(x_551); +if (x_553 == 0) +{ +lean_object* x_554; lean_object* x_555; +x_554 = lean_ctor_get(x_551, 2); +lean_inc(x_552); +x_555 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_554, x_545, x_552); +lean_ctor_set(x_551, 2, x_555); +x_5 = x_552; +x_6 = x_551; +goto block_15; +} +else +{ +lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; +x_556 = lean_ctor_get(x_551, 0); +x_557 = lean_ctor_get(x_551, 1); +x_558 = lean_ctor_get(x_551, 2); +lean_inc(x_558); +lean_inc(x_557); +lean_inc(x_556); +lean_dec(x_551); +lean_inc(x_552); +x_559 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_558, x_545, x_552); +x_560 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_560, 0, x_556); +lean_ctor_set(x_560, 1, x_557); +lean_ctor_set(x_560, 2, x_559); +x_5 = x_552; +x_6 = x_560; +goto block_15; +} +} +else +{ +uint8_t x_561; +lean_dec(x_545); +lean_dec(x_3); +x_561 = !lean_is_exclusive(x_550); +if (x_561 == 0) +{ +return x_550; +} +else +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; +x_562 = lean_ctor_get(x_550, 0); +x_563 = lean_ctor_get(x_550, 1); +lean_inc(x_563); +lean_inc(x_562); +lean_dec(x_550); +x_564 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_564, 0, x_562); +lean_ctor_set(x_564, 1, x_563); +return x_564; +} +} +} +else +{ +lean_object* x_565; +lean_dec(x_545); +lean_dec(x_1); +x_565 = lean_ctor_get(x_549, 0); +lean_inc(x_565); +lean_dec(x_549); +x_5 = x_565; +x_6 = x_4; +goto block_15; +} +} +} +else +{ +lean_object* x_566; lean_object* x_567; +x_566 = lean_ctor_get(x_4, 2); +lean_inc(x_566); +x_567 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_566, x_545); +lean_dec(x_566); +if (lean_obj_tag(x_567) == 0) +{ +lean_object* x_568; +lean_inc(x_545); +x_568 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_545, x_4); +if (lean_obj_tag(x_568) == 0) +{ +lean_object* x_569; lean_object* x_570; uint8_t x_571; +x_569 = lean_ctor_get(x_568, 1); +lean_inc(x_569); +x_570 = lean_ctor_get(x_568, 0); +lean_inc(x_570); +lean_dec(x_568); +x_571 = !lean_is_exclusive(x_569); +if (x_571 == 0) +{ +lean_object* x_572; lean_object* x_573; +x_572 = lean_ctor_get(x_569, 2); +lean_inc(x_570); +x_573 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_572, x_545, x_570); +lean_ctor_set(x_569, 2, x_573); +x_5 = x_570; +x_6 = x_569; +goto block_15; +} +else +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; +x_574 = lean_ctor_get(x_569, 0); +x_575 = lean_ctor_get(x_569, 1); +x_576 = lean_ctor_get(x_569, 2); +lean_inc(x_576); +lean_inc(x_575); +lean_inc(x_574); +lean_dec(x_569); +lean_inc(x_570); +x_577 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_576, x_545, x_570); +x_578 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_578, 0, x_574); +lean_ctor_set(x_578, 1, x_575); +lean_ctor_set(x_578, 2, x_577); +x_5 = x_570; +x_6 = x_578; +goto block_15; +} +} +else +{ +uint8_t x_579; +lean_dec(x_545); +lean_dec(x_3); +x_579 = !lean_is_exclusive(x_568); +if (x_579 == 0) +{ +return x_568; +} +else +{ +lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_580 = lean_ctor_get(x_568, 0); +x_581 = lean_ctor_get(x_568, 1); +lean_inc(x_581); +lean_inc(x_580); +lean_dec(x_568); +x_582 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_582, 0, x_580); +lean_ctor_set(x_582, 1, x_581); +return x_582; +} +} +} +else +{ +lean_object* x_583; +lean_dec(x_545); +lean_dec(x_1); +x_583 = lean_ctor_get(x_567, 0); +lean_inc(x_583); +lean_dec(x_567); +x_5 = x_583; +x_6 = x_4; +goto block_15; +} +} +} +case 11: +{ +lean_object* x_584; uint8_t x_585; +x_584 = lean_ctor_get(x_3, 2); +lean_inc(x_584); +x_585 = lean_expr_has_expr_mvar(x_584); +if (x_585 == 0) +{ +uint8_t x_586; +x_586 = lean_expr_has_level_mvar(x_584); +if (x_586 == 0) +{ +lean_dec(x_1); +x_16 = x_584; +x_17 = x_4; +goto block_26; +} +else +{ +lean_object* x_587; lean_object* x_588; +x_587 = lean_ctor_get(x_4, 2); +lean_inc(x_587); +x_588 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_587, x_584); +lean_dec(x_587); +if (lean_obj_tag(x_588) == 0) +{ +lean_object* x_589; +lean_inc(x_584); +x_589 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_584, x_4); +if (lean_obj_tag(x_589) == 0) +{ +lean_object* x_590; lean_object* x_591; uint8_t x_592; +x_590 = lean_ctor_get(x_589, 1); +lean_inc(x_590); +x_591 = lean_ctor_get(x_589, 0); +lean_inc(x_591); +lean_dec(x_589); +x_592 = !lean_is_exclusive(x_590); +if (x_592 == 0) +{ +lean_object* x_593; lean_object* x_594; +x_593 = lean_ctor_get(x_590, 2); +lean_inc(x_591); +x_594 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_593, x_584, x_591); +lean_ctor_set(x_590, 2, x_594); +x_16 = x_591; +x_17 = x_590; +goto block_26; +} +else +{ +lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; +x_595 = lean_ctor_get(x_590, 0); +x_596 = lean_ctor_get(x_590, 1); +x_597 = lean_ctor_get(x_590, 2); +lean_inc(x_597); +lean_inc(x_596); +lean_inc(x_595); +lean_dec(x_590); +lean_inc(x_591); +x_598 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_597, x_584, x_591); +x_599 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_599, 0, x_595); +lean_ctor_set(x_599, 1, x_596); +lean_ctor_set(x_599, 2, x_598); +x_16 = x_591; +x_17 = x_599; +goto block_26; +} +} +else +{ +uint8_t x_600; +lean_dec(x_584); +lean_dec(x_3); +x_600 = !lean_is_exclusive(x_589); +if (x_600 == 0) +{ +return x_589; +} +else +{ +lean_object* x_601; lean_object* x_602; lean_object* x_603; +x_601 = lean_ctor_get(x_589, 0); +x_602 = lean_ctor_get(x_589, 1); +lean_inc(x_602); +lean_inc(x_601); +lean_dec(x_589); +x_603 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_603, 0, x_601); +lean_ctor_set(x_603, 1, x_602); +return x_603; +} +} +} +else +{ +lean_object* x_604; +lean_dec(x_584); +lean_dec(x_1); +x_604 = lean_ctor_get(x_588, 0); +lean_inc(x_604); +lean_dec(x_588); +x_16 = x_604; +x_17 = x_4; +goto block_26; +} +} +} +else +{ +lean_object* x_605; lean_object* x_606; +x_605 = lean_ctor_get(x_4, 2); +lean_inc(x_605); +x_606 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_605, x_584); +lean_dec(x_605); +if (lean_obj_tag(x_606) == 0) +{ +lean_object* x_607; +lean_inc(x_584); +x_607 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_584, x_4); +if (lean_obj_tag(x_607) == 0) +{ +lean_object* x_608; lean_object* x_609; uint8_t x_610; +x_608 = lean_ctor_get(x_607, 1); +lean_inc(x_608); +x_609 = lean_ctor_get(x_607, 0); +lean_inc(x_609); +lean_dec(x_607); +x_610 = !lean_is_exclusive(x_608); +if (x_610 == 0) +{ +lean_object* x_611; lean_object* x_612; +x_611 = lean_ctor_get(x_608, 2); +lean_inc(x_609); +x_612 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_611, x_584, x_609); +lean_ctor_set(x_608, 2, x_612); +x_16 = x_609; +x_17 = x_608; +goto block_26; +} +else +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; +x_613 = lean_ctor_get(x_608, 0); +x_614 = lean_ctor_get(x_608, 1); +x_615 = lean_ctor_get(x_608, 2); +lean_inc(x_615); +lean_inc(x_614); +lean_inc(x_613); +lean_dec(x_608); +lean_inc(x_609); +x_616 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_615, x_584, x_609); +x_617 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_617, 0, x_613); +lean_ctor_set(x_617, 1, x_614); +lean_ctor_set(x_617, 2, x_616); +x_16 = x_609; +x_17 = x_617; +goto block_26; +} +} +else +{ +uint8_t x_618; +lean_dec(x_584); +lean_dec(x_3); +x_618 = !lean_is_exclusive(x_607); +if (x_618 == 0) +{ +return x_607; +} +else +{ +lean_object* x_619; lean_object* x_620; lean_object* x_621; +x_619 = lean_ctor_get(x_607, 0); +x_620 = lean_ctor_get(x_607, 1); +lean_inc(x_620); +lean_inc(x_619); +lean_dec(x_607); +x_621 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_621, 0, x_619); +lean_ctor_set(x_621, 1, x_620); +return x_621; +} +} +} +else +{ +lean_object* x_622; +lean_dec(x_584); +lean_dec(x_1); +x_622 = lean_ctor_get(x_606, 0); +lean_inc(x_622); +lean_dec(x_606); +x_16 = x_622; +x_17 = x_4; +goto block_26; +} +} +} +default: +{ +lean_object* x_623; +lean_dec(x_1); +x_623 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_623, 0, x_3); +lean_ctor_set(x_623, 1, x_4); +return x_623; +} +} +block_15: +{ +if (lean_obj_tag(x_3) == 10) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_expr_update_mdata(x_3, x_5); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +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_dec(x_5); +lean_dec(x_3); +x_9 = l_Lean_Expr_constName_x21___closed__1; +x_10 = lean_unsigned_to_nat(442u); +x_11 = lean_unsigned_to_nat(15u); +x_12 = l_Lean_Expr_updateMData_x21___closed__1; +x_13 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_9, x_10, x_11, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_6); +return x_14; +} +} +block_26: +{ +if (lean_obj_tag(x_3) == 11) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_expr_update_proj(x_3, x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +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_dec(x_16); +lean_dec(x_3); +x_20 = l_Lean_Expr_constName_x21___closed__1; +x_21 = lean_unsigned_to_nat(447u); +x_22 = lean_unsigned_to_nat(16u); +x_23 = l_Lean_Expr_updateProj_x21___closed__1; +x_24 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_20, x_21, x_22, 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_17); +return x_25; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___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_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__2___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___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* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_4); +lean_dec(x_4); +x_9 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___lambda__1(x_1, x_2, x_3, x_8, x_5, x_6, x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__3___rarg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_10; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_2); +lean_dec(x_2); +x_8 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__1___rarg(x_1, x_7, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___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_umapMAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__4___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___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___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___spec__5___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_expr_has_expr_mvar(x_3); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = lean_expr_has_level_mvar(x_3); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_1); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_4); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_4, 2); +x_10 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_4, 2, x_10); +x_11 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_11, 1); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_13, 2); +lean_dec(x_15); +lean_ctor_set(x_13, 2, x_9); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_13, 0); +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_13); +x_18 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +lean_ctor_set(x_18, 2, x_9); +lean_ctor_set(x_11, 1, x_18); +return x_11; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_19 = lean_ctor_get(x_11, 1); +x_20 = lean_ctor_get(x_11, 0); +lean_inc(x_19); +lean_inc(x_20); +lean_dec(x_11); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + lean_ctor_release(x_19, 2); + x_23 = x_19; +} else { + lean_dec_ref(x_19); + x_23 = lean_box(0); +} +if (lean_is_scalar(x_23)) { + x_24 = lean_alloc_ctor(0, 3, 0); +} else { + x_24 = x_23; +} +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_22); +lean_ctor_set(x_24, 2, x_9); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_20); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_9); +x_26 = !lean_is_exclusive(x_11); +if (x_26 == 0) +{ +return x_11; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_30 = lean_ctor_get(x_4, 0); +x_31 = lean_ctor_get(x_4, 1); +x_32 = lean_ctor_get(x_4, 2); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_4); +x_33 = l_HashMap_Inhabited___closed__1; +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_35 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_34); +if (lean_obj_tag(x_35) == 0) +{ +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_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_38 = x_35; +} else { + lean_dec_ref(x_35); + x_38 = lean_box(0); +} +x_39 = lean_ctor_get(x_36, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + lean_ctor_release(x_36, 2); + x_41 = x_36; +} else { + lean_dec_ref(x_36); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(0, 3, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +lean_ctor_set(x_42, 2, x_32); +if (lean_is_scalar(x_38)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_38; +} +lean_ctor_set(x_43, 0, x_37); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_32); +x_44 = lean_ctor_get(x_35, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_35, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_46 = x_35; +} else { + lean_dec_ref(x_35); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +} +} +else +{ +uint8_t x_48; +x_48 = !lean_is_exclusive(x_4); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_4, 2); +x_50 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_4, 2, x_50); +x_51 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_51) == 0) +{ +uint8_t x_52; +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; +x_55 = lean_ctor_get(x_53, 2); +lean_dec(x_55); +lean_ctor_set(x_53, 2, x_49); +return x_51; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_53, 0); +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_53); +x_58 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_49); +lean_ctor_set(x_51, 1, x_58); +return x_51; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_59 = lean_ctor_get(x_51, 1); +x_60 = lean_ctor_get(x_51, 0); +lean_inc(x_59); +lean_inc(x_60); +lean_dec(x_51); +x_61 = lean_ctor_get(x_59, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_59, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + lean_ctor_release(x_59, 2); + x_63 = x_59; +} else { + lean_dec_ref(x_59); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(0, 3, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +lean_ctor_set(x_64, 2, x_49); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_60); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +else +{ +uint8_t x_66; +lean_dec(x_49); +x_66 = !lean_is_exclusive(x_51); +if (x_66 == 0) +{ +return x_51; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_51, 0); +x_68 = lean_ctor_get(x_51, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_51); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_70 = lean_ctor_get(x_4, 0); +x_71 = lean_ctor_get(x_4, 1); +x_72 = lean_ctor_get(x_4, 2); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_4); +x_73 = l_HashMap_Inhabited___closed__1; +x_74 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_74, 0, x_70); +lean_ctor_set(x_74, 1, x_71); +lean_ctor_set(x_74, 2, x_73); +x_75 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___rarg(x_1, x_2, x_3, x_74); +if (lean_obj_tag(x_75) == 0) +{ +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; +x_76 = lean_ctor_get(x_75, 1); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 0); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; +} else { + lean_dec_ref(x_75); + x_78 = lean_box(0); +} +x_79 = lean_ctor_get(x_76, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + lean_ctor_release(x_76, 2); + x_81 = x_76; +} else { + lean_dec_ref(x_76); + x_81 = lean_box(0); +} +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(0, 3, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +lean_ctor_set(x_82, 2, x_72); +if (lean_is_scalar(x_78)) { + x_83 = lean_alloc_ctor(0, 2, 0); +} else { + x_83 = x_78; +} +lean_ctor_set(x_83, 0, x_77); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_72); +x_84 = lean_ctor_get(x_75, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_75, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_86 = x_75; +} else { + lean_dec_ref(x_75); + 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(x_87, 0, x_84); +lean_ctor_set(x_87, 1, x_85); +return x_87; +} +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___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_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___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; 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_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_6 = l_panicWithPos___rarg___closed__1; +x_7 = lean_string_append(x_6, x_1); +x_8 = l_panicWithPos___rarg___closed__2; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_Nat_repr(x_2); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +x_12 = l_panicWithPos___rarg___closed__2; +x_13 = lean_string_append(x_11, x_12); +x_14 = l_Nat_repr(x_3); +x_15 = lean_string_append(x_13, x_14); +lean_dec(x_14); +x_16 = l_panicWithPos___rarg___closed__3; +x_17 = lean_string_append(x_15, x_16); +x_18 = lean_string_append(x_17, x_4); +x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; +x_20 = lean_panic_fn(x_18); +x_21 = lean_apply_1(x_20, x_5); +return x_21; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Lean_exprIsInhabited; +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); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +lean_dec(x_4); +x_11 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; +x_12 = lean_unsigned_to_nat(380u); +x_13 = lean_unsigned_to_nat(16u); +x_14 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +x_15 = l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___rarg(x_11, x_12, x_13, x_14, x_7); +return x_15; +} +else +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_10, 0); +lean_inc(x_16); +lean_dec(x_10); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* 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_20 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(x_4, x_1, x_18, x_7); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_expr_abstract_range(x_22, x_2, x_1); +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_6); +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_6); +lean_ctor_set(x_20, 0, x_25); +return x_20; +} +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = lean_expr_abstract_range(x_26, x_2, x_1); +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_6); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +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_6); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_27); +return x_32; +} +} +} +else +{ +uint8_t x_33; +lean_dec(x_17); +lean_dec(x_6); +x_33 = !lean_is_exclusive(x_20); +if (x_33 == 0) +{ +return x_20; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_20, 0); +x_35 = lean_ctor_get(x_20, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_20); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_16, 2); +lean_inc(x_37); +x_38 = lean_ctor_get(x_16, 3); +lean_inc(x_38); +x_39 = lean_ctor_get(x_16, 4); +lean_inc(x_39); +lean_dec(x_16); +lean_inc(x_4); +x_40 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(x_4, x_1, x_38, x_7); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_expr_abstract_range(x_41, x_2, x_1); +lean_dec(x_41); +x_44 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(x_4, x_1, x_39, x_42); +if (lean_obj_tag(x_44) == 0) +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_44, 0); +x_47 = lean_expr_abstract_range(x_46, x_2, x_1); +lean_dec(x_46); +x_48 = lean_expr_mk_let(x_37, x_43, x_47, x_6); +lean_ctor_set(x_44, 0, x_48); +return x_44; +} +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); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_44); +x_51 = lean_expr_abstract_range(x_49, x_2, x_1); +lean_dec(x_49); +x_52 = lean_expr_mk_let(x_37, x_43, 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 +{ +uint8_t x_54; +lean_dec(x_43); +lean_dec(x_37); +lean_dec(x_6); +x_54 = !lean_is_exclusive(x_44); +if (x_54 == 0) +{ +return x_44; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_44, 0); +x_56 = lean_ctor_get(x_44, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_44); +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; +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_6); +lean_dec(x_4); +x_58 = !lean_is_exclusive(x_40); +if (x_58 == 0) +{ +return x_40; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_40, 0); +x_60 = lean_ctor_get(x_40, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_40); +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; +} +} +} +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_6, x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_6, x_11); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +x_14 = lean_box(x_2); +lean_inc(x_1); +lean_inc(x_3); +lean_inc(x_12); +lean_inc(x_4); +x_15 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___lambda__1___boxed), 7, 6); +lean_closure_set(x_15, 0, x_4); +lean_closure_set(x_15, 1, x_12); +lean_closure_set(x_15, 2, x_3); +lean_closure_set(x_15, 3, x_1); +lean_closure_set(x_15, 4, x_14); +lean_closure_set(x_15, 5, x_7); +x_16 = lean_box(x_2); +x_17 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___boxed), 8, 6); +lean_closure_set(x_17, 0, x_1); +lean_closure_set(x_17, 1, x_16); +lean_closure_set(x_17, 2, x_3); +lean_closure_set(x_17, 3, x_4); +lean_closure_set(x_17, 4, x_5); +lean_closure_set(x_17, 5, x_12); +x_18 = lean_apply_5(x_13, lean_box(0), lean_box(0), x_15, x_17, x_8); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_ctor_get(x_5, 0); +lean_inc(x_19); +lean_dec(x_5); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_apply_3(x_20, lean_box(0), x_7, x_8); +return x_21; +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___boxed), 8, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_array_get_size(x_4); +lean_inc(x_1); +x_8 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___rarg(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_expr_abstract_range(x_9, x_7, x_4); +lean_dec(x_9); +x_12 = l_EIO_Monad___closed__1; +x_13 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg(x_1, x_2, x_3, x_4, x_12, x_7, x_11, x_10); +lean_dec(x_7); +return x_13; +} +else +{ +uint8_t x_14; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_8); +if (x_14 == 0) +{ +return x_8; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_8); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkBinding___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_HashMap_Inhabited___closed__1; +x_9 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_9, 0, x_3); +lean_ctor_set(x_9, 1, x_4); +lean_ctor_set(x_9, 2, x_8); +x_10 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg(x_1, x_2, x_5, x_6, x_7, x_9); +if (lean_obj_tag(x_10) == 0) +{ +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_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_13); +lean_ctor_set(x_16, 1, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_19, 0, x_18); +return x_19; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_mkBinding(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_mkBinding___rarg___boxed), 7, 0); +return x_2; +} +} +lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___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_panicWithPos___at_Lean_AbstractMetavarContext_mkBinding___spec__2___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___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* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_5); +lean_dec(x_5); +x_9 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___lambda__1(x_1, x_2, x_3, x_4, x_8, x_6, x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = l_Nat_foldRevMAux___main___at_Lean_AbstractMetavarContext_mkBinding___spec__3___rarg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +return x_10; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_2); +lean_dec(x_2); +x_8 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_AbstractMetavarContext_mkBinding___spec__1___rarg(x_1, x_7, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkBinding___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l_Lean_AbstractMetavarContext_mkBinding___rarg(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkLambda___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = 1; +x_8 = l_Lean_AbstractMetavarContext_mkBinding___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkLambda(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_mkLambda___rarg), 6, 0); +return x_2; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkForall___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = 0; +x_8 = l_Lean_AbstractMetavarContext_mkBinding___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkForall(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_AbstractMetavarContext_mkForall___rarg), 6, 0); +return x_2; +} +} lean_object* initialize_Init_Control_Reader(lean_object*); lean_object* initialize_Init_Control_Conditional(lean_object*); lean_object* initialize_Init_Data_Option_Default(lean_object*); lean_object* initialize_Init_Data_List_Default(lean_object*); +lean_object* initialize_Init_Data_Nat_Default(lean_object*); lean_object* initialize_Init_Lean_LocalContext(lean_object*); +lean_object* initialize_Init_Lean_MonadCache(lean_object*); +lean_object* initialize_Init_Lean_NameGenerator(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Lean_AbstractMetavarContext(lean_object* w) { lean_object * res; @@ -13657,9 +40095,22 @@ lean_dec_ref(res); res = initialize_Init_Data_List_Default(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Nat_Default(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Init_Lean_LocalContext(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Lean_MonadCache(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Lean_NameGenerator(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_MetavarDecl_Inhabited___closed__1 = _init_l_Lean_MetavarDecl_Inhabited___closed__1(); +lean_mark_persistent(l_Lean_MetavarDecl_Inhabited___closed__1); +l_Lean_MetavarDecl_Inhabited = _init_l_Lean_MetavarDecl_Inhabited(); +lean_mark_persistent(l_Lean_MetavarDecl_Inhabited); l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__1 = _init_l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__1(); lean_mark_persistent(l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__1); l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__2 = _init_l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__2(); @@ -13668,12 +40119,36 @@ l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main_ lean_mark_persistent(l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1); l_Lean_AbstractMetavarContext_instantiateMVars___rarg___closed__1 = _init_l_Lean_AbstractMetavarContext_instantiateMVars___rarg___closed__1(); lean_mark_persistent(l_Lean_AbstractMetavarContext_instantiateMVars___rarg___closed__1); -l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___closed__1 = _init_l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___closed__1(); -lean_mark_persistent(l_panicWithPos___at_Lean_AbstractMetavarContext_DependsOn_dep___main___spec__1___closed__1); -l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg___closed__1 = _init_l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg___closed__1(); -lean_mark_persistent(l_Lean_AbstractMetavarContext_DependsOn_dep___main___rarg___closed__1); l_Lean_AbstractMetavarContext_exprDependsOn___rarg___closed__1 = _init_l_Lean_AbstractMetavarContext_exprDependsOn___rarg___closed__1(); lean_mark_persistent(l_Lean_AbstractMetavarContext_exprDependsOn___rarg___closed__1); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__1 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__1(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__1); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__2 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__2(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__2); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__3 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__3(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__3); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__4 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__4(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__4); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__5 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__5(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__5); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__6 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__6(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__6); +l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__7 = _init_l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__7(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_toStr___closed__7); +l_Lean_AbstractMetavarContext_MkBindingException_HasToString___closed__1 = _init_l_Lean_AbstractMetavarContext_MkBindingException_HasToString___closed__1(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_HasToString___closed__1); +l_Lean_AbstractMetavarContext_MkBindingException_HasToString = _init_l_Lean_AbstractMetavarContext_MkBindingException_HasToString(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBindingException_HasToString); +l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1 = _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__1); +l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2 = _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__2); +l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__3 = _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__3(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__3); +l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4 = _init_l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4(); +lean_mark_persistent(l_Lean_AbstractMetavarContext_MkBinding_Lean_MonadHashMapCacheAdapter___closed__4); +l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1 = _init_l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1(); +lean_mark_persistent(l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus diff --git a/src/stage0/Init/Lean/Class.c b/src/stage0/Init/Lean/Class.c index 0215970596..4d54daaec2 100644 --- a/src/stage0/Init/Lean/Class.c +++ b/src/stage0/Init/Lean/Class.c @@ -198,7 +198,6 @@ lean_object* l_AssocList_foldlM___main___at_Lean_ClassState_addEntry___spec__10( lean_object* l_Lean_mkClassExtension___closed__4; lean_object* l_Array_iterateMAux___main___at_Lean_ClassState_addEntry___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_moveEntries___main___at_Lean_ClassState_addEntry___spec__37(lean_object*, lean_object*, lean_object*); -uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_ClassState_addEntry___spec__31(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getClassName___boxed(lean_object*, lean_object*); @@ -277,6 +276,7 @@ lean_object* l_Lean_registerInstanceAttr___lambda__1___closed__1; lean_object* l_Lean_registerInstanceAttr___closed__3; extern lean_object* l_Lean_registerEnvExtensionUnsafe___rarg___closed__1; extern lean_object* l_Lean_regNamespacesExtension___closed__5; +uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_ClassState_addEntry___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_reset(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_ClassState_addEntry___spec__19(lean_object*, lean_object*, lean_object*); @@ -4916,7 +4916,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } @@ -5099,7 +5099,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } diff --git a/src/stage0/Init/Lean/Compiler/IR/CompilerM.c b/src/stage0/Init/Lean/Compiler/IR/CompilerM.c index e0d0086e14..225ac24880 100644 --- a/src/stage0/Init/Lean/Compiler/IR/CompilerM.c +++ b/src/stage0/Init/Lean/Compiler/IR/CompilerM.c @@ -157,7 +157,6 @@ lean_object* l_Lean_IR_declMapExt___elambda__4___boxed(lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_IR_mkDeclMapExtension___spec__6___closed__1; uint8_t l_AssocList_contains___main___at___private_Init_Lean_Compiler_IR_CompilerM_4__mkEntryArray___spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Format_sbracket___closed__3; -uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_Decl_name(lean_object*); lean_object* l_Lean_IR_declMapExt___closed__2; lean_object* l_Lean_IR_getDecl(lean_object*, lean_object*, lean_object*); @@ -229,6 +228,7 @@ lean_object* l_Lean_IR_mkDeclMapExtension___lambda__1(lean_object*, lean_object* lean_object* l_Array_iterateMAux___main___at_Lean_IR_mkDeclMapExtension___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_Compiler_IR_CompilerM_4__mkEntryArray___spec__6(lean_object*, lean_object*); extern lean_object* l_Lean_registerEnvExtensionUnsafe___rarg___closed__1; +uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_IR_containsDecl_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_reset(lean_object*, lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_IR_mkDeclMapExtension___spec__7___boxed(lean_object*); @@ -3370,7 +3370,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } diff --git a/src/stage0/Init/Lean/Environment.c b/src/stage0/Init/Lean/Environment.c index 64a9bc2fcd..63ba20b099 100644 --- a/src/stage0/Init/Lean/Environment.c +++ b/src/stage0/Init/Lean/Environment.c @@ -309,7 +309,6 @@ lean_object* l_Nat_foldAux___main___at_Lean_mkModuleData___spec__1___boxed(lean_ uint8_t l_Lean_isNamespace(lean_object*, lean_object*); lean_object* l_HashMapImp_find___at_Lean_Environment_getModuleIdxFor___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_namespacesExt___closed__5; -lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_modListExtension___closed__1; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_registerPersistentEnvExtensionUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_importModules___boxed(lean_object*, lean_object*, lean_object*); @@ -326,7 +325,6 @@ lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___bo lean_object* l_Lean_SMap_numBuckets___at_Lean_Environment_displayStats___spec__5___boxed(lean_object*); lean_object* l_Lean_namespacesExt___closed__6; uint8_t l_Array_anyMAux___main___at_Lean_registerSimplePersistentEnvExtension___spec__2___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4(lean_object*); lean_object* l_Lean_Environment_Inhabited___closed__1; lean_object* l_Lean_Environment_addAndCompile___boxed(lean_object*, lean_object*, lean_object*); @@ -431,6 +429,7 @@ lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_mkStateFromImportedEntries___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnvExtensionUnsafe___rarg___closed__1; lean_object* l_Lean_regNamespacesExtension___closed__5; +uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_moveEntries___main___at_Lean_Environment_addAux___spec__9(lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_reset(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Environment_find___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1780,45 +1779,6 @@ lean_dec(x_7); return x_8; } } -uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_1); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_2); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_fget(x_1, x_2); -x_8 = lean_name_dec_eq(x_3, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_2, x_9); -lean_dec(x_2); -x_2 = x_10; -goto _start; -} -else -{ -uint8_t x_12; -lean_dec(x_2); -x_12 = 1; -return x_12; -} -} -} -} uint8_t l_PersistentHashMap_containsAux___main___at_Lean_Environment_contains___spec__4(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { @@ -1868,7 +1828,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } @@ -1936,17 +1896,6 @@ x_4 = lean_box(x_3); return x_4; } } -lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5___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_PersistentHashMap_containsAtAux___main___at_Lean_Environment_contains___spec__5(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec(x_1); -x_5 = lean_box(x_4); -return x_5; -} -} lean_object* l_PersistentHashMap_containsAux___main___at_Lean_Environment_contains___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { diff --git a/src/stage0/Init/Lean/Expr.c b/src/stage0/Init/Lean/Expr.c index 14ee5cbd65..f424737937 100644 --- a/src/stage0/Init/Lean/Expr.c +++ b/src/stage0/Init/Lean/Expr.c @@ -20,15 +20,16 @@ lean_object* l_Lean_Expr_getAppNumArgsAux___main___boxed(lean_object*, lean_obje lean_object* l_Lean_Expr_lam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_quick_lt(lean_object*, lean_object*); lean_object* l_Lean_Expr_hash___boxed(lean_object*); +lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_Lean_Expr_updateProj___boxed(lean_object*, lean_object*, 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_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_HasRepr(lean_object*); lean_object* l_Lean_mkBinApp(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* l_Lean_Expr_constName(lean_object*); lean_object* lean_expr_mk_sort(lean_object*); lean_object* l___private_Init_Lean_Expr_5__betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); @@ -39,26 +40,28 @@ lean_object* l_Lean_Expr_isLambda___boxed(lean_object*); 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*); 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_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*); -lean_object* l_Lean_Expr_bvarIdx(lean_object*); -lean_object* l_Lean_Expr_letName___closed__1; 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_5__betaRevAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +lean_object* l_Lean_BinderInfo_isAuxDecl___boxed(lean_object*); lean_object* l_Lean_exprIsInhabited; 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*); lean_object* l_Lean_Expr_updateLambda_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_constLevels_x21___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_Hashable; lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l_Lean_Expr_constName___boxed(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*); @@ -67,20 +70,17 @@ lean_object* l_Lean_mkDecIsTrue___closed__4; lean_object* l_Lean_Expr_withAppRev(lean_object*); lean_object* l_Lean_ExprStructEq_HasBeq___closed__1; lean_object* l_Lean_Expr_isBVar___boxed(lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_constName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Expr_fvarName___closed__1; lean_object* lean_expr_local(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_expr_mk_app(lean_object*, lean_object*); 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_bindingBody(lean_object*); lean_object* l_Lean_Expr_isAppOf___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet_x21(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_bindingName___boxed(lean_object*); lean_object* l_Lean_BinderInfo_isInstImplicit___boxed(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_exprToExprStructEq___boxed(lean_object*); lean_object* l___private_Init_Lean_Expr_5__betaRevAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); @@ -88,7 +88,6 @@ 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_5__betaRevAux___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_constLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkDecIsTrue___closed__3; lean_object* l_Lean_Expr_isProj___boxed(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -99,24 +98,28 @@ lean_object* l_Lean_Expr_sort___boxed(lean_object*); lean_object* l_Lean_Expr_HasToString___closed__1; lean_object* l_Lean_ExprStructEq_HasToString(lean_object*); lean_object* l_Lean_mkAppRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_constLevels_x21(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___private_Init_Lean_Expr_4__mkAppRevRangeAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x21(lean_object*); +lean_object* l_Lean_Expr_constName_x21___closed__2; lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_beq___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isLet(lean_object*); -lean_object* l_Lean_Expr_bvarIdx___boxed(lean_object*); lean_object* l_Nat_repr(lean_object*); +lean_object* l_Lean_Expr_bvarIdx_x21___closed__1; lean_object* l___private_Init_Lean_Expr_2__getAppRevArgsAux___main(lean_object*, lean_object*); 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_Lean_Expr_isMData___boxed(lean_object*); extern lean_object* l_panicWithPos___rarg___closed__3; lean_object* lean_expr_mk_const(lean_object*, lean_object*); -lean_object* l_Lean_Expr_constName___closed__1; lean_object* l_Array_iterateMAux___main___at_Lean_mkApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_bvar___boxed(lean_object*); lean_object* l_Lean_Expr_updateForall_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,26 +130,26 @@ lean_object* l_Lean_Expr_withAppRev___rarg(lean_object*, 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_ExprStructEq_HasBeq; -lean_object* l_Lean_Expr_constLevels___boxed(lean_object*); lean_object* l_Lean_Expr_updateProj_x21___closed__1; lean_object* l_Lean_Expr_isApp___boxed(lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_constLevels___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constLevels_x21___boxed(lean_object*); lean_object* l_Lean_ExprStructEq_HasRepr___boxed(lean_object*); -lean_object* l_Lean_Expr_bindingDomain(lean_object*); lean_object* l_Lean_BinderInfo_HasBeq; lean_object* l_Lean_Expr_dbgToString___boxed(lean_object*); uint8_t lean_expr_equal(lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateRev___boxed(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Lean_Expr_constName___closed__2; 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_Lean_Expr_instantiate___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x21___closed__1; uint8_t l_Lean_Expr_isForall(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* lean_expr_update_const(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* lean_expr_instantiate_range(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux(lean_object*); lean_object* l_Lean_mkBinCApp(lean_object*, lean_object*, lean_object*); @@ -160,6 +163,7 @@ lean_object* l_Lean_Expr_updateApp_x21___closed__1; uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___boxed(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_mkDecIsTrue___closed__2; @@ -168,38 +172,40 @@ lean_object* lean_expr_update_proj(lean_object*, lean_object*); extern lean_object* l_panicWithPos___rarg___closed__1; lean_object* l_Lean_Expr_getAppArgs(lean_object*); lean_object* l_Lean_mkCApp___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Expr_letName(lean_object*); lean_object* l___private_Init_Lean_Expr_4__mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main___boxed(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_fvarName___boxed(lean_object*); +lean_object* l_Lean_Expr_bindingName_x21(lean_object*); uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); lean_object* l___private_Init_Lean_Expr_2__getAppRevArgsAux(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* l_Lean_Expr_bindingName(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_mkCApp(lean_object*, lean_object*); lean_object* l_Lean_mkDecIsTrue___closed__5; +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Expr_hasFVar___boxed(lean_object*); lean_object* l___private_Init_Lean_Expr_3__withAppRevAux(lean_object*); lean_object* l___private_Init_Lean_Expr_1__getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_HasToString; uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isBinding(lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); 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_Lean_Expr_bindingDomain___boxed(lean_object*); +lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*); lean_object* l_Lean_Expr_withAppAux___main(lean_object*); +lean_object* l_Lean_Expr_letName_x21___closed__1; 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_panicWithPos___at_Lean_Expr_constLevels_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Expr_1__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_proj___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateConst_x21(lean_object*, lean_object*); @@ -209,9 +215,11 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkApp___spec__1___boxed(lean_o uint8_t lean_expr_lt(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_Expr_bvarIdx_x21___boxed(lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object*); lean_object* l_Lean_mkDecIsTrue(lean_object*, 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*); @@ -219,10 +227,11 @@ lean_object* l_Lean_Expr_abstract___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateSort_x21(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); size_t l_Lean_ExprStructEq_hash(lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_constName_x21___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); 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_constLevels(lean_object*); lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); lean_object* l_Lean_Expr_isFVar___boxed(lean_object*); @@ -233,12 +242,10 @@ 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_Lean_Expr_letE___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mdata___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Expr_bvarIdx___closed__1; extern lean_object* l_panicWithPos___rarg___closed__2; lean_object* l_Lean_Expr_HasBeq; lean_object* l_Lean_mkApp___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkAppRev___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Expr_bindingName___closed__1; uint8_t l_Lean_Expr_isBVar(lean_object*); lean_object* l_Lean_Expr_updateSort_x21___closed__1; lean_object* l_Lean_Expr_isBinding___boxed(lean_object*); @@ -246,12 +253,9 @@ uint8_t lean_expr_has_expr_mvar(lean_object*); lean_object* l_Lean_Expr_Hashable; lean_object* l_Lean_Expr_updateMData_x21___closed__1; lean_object* l_Lean_Expr_getAppNumArgs___boxed(lean_object*); -lean_object* l_Lean_Expr_bindingBody___boxed(lean_object*); lean_object* l___private_Init_Lean_Expr_4__mkAppRevRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvar___boxed(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_fvarName(lean_object*); lean_object* l_Lean_Expr_isSort___boxed(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*); @@ -266,12 +270,10 @@ lean_object* l_Lean_Expr_mkAppRevRange___boxed(lean_object*, lean_object*, lean_ 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_panicWithPos___at_Lean_Expr_constName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkDecIsFalse___closed__3; lean_object* l_Lean_exprIsInhabited___closed__1; lean_object* lean_expr_mk_lit(lean_object*); lean_object* l_Lean_mkDecIsFalse___closed__2; -lean_object* l_Lean_Expr_letName___boxed(lean_object*); lean_object* l_Lean_Expr_isConst___boxed(lean_object*); lean_object* l_Lean_Expr_lt___boxed(lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_Hashable___closed__1; @@ -310,6 +312,37 @@ x_4 = lean_box(x_3); return x_4; } } +uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(x_1); +if (lean_obj_tag(x_2) == 4) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +lean_dec(x_2); +x_4 = 0; +return x_4; +} +} +} +lean_object* l_Lean_BinderInfo_isAuxDecl___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_BinderInfo_isAuxDecl(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} uint8_t l_Lean_BinderInfo_beq(uint8_t x_1, uint8_t x_2) { _start: { @@ -1664,7 +1697,7 @@ x_5 = lean_box(x_4); return x_5; } } -lean_object* l_panicWithPos___at_Lean_Expr_constName___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -1688,7 +1721,7 @@ x_19 = lean_panic_fn(x_17); return x_19; } } -lean_object* _init_l_Lean_Expr_constName___closed__1() { +lean_object* _init_l_Lean_Expr_constName_x21___closed__1() { _start: { lean_object* x_1; @@ -1696,7 +1729,7 @@ x_1 = lean_mk_string("Init.Lean.Expr"); return x_1; } } -lean_object* _init_l_Lean_Expr_constName___closed__2() { +lean_object* _init_l_Lean_Expr_constName_x21___closed__2() { _start: { lean_object* x_1; @@ -1704,7 +1737,7 @@ x_1 = lean_mk_string("constant expected"); return x_1; } } -lean_object* l_Lean_Expr_constName(lean_object* x_1) { +lean_object* l_Lean_Expr_constName_x21(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 4) @@ -1717,35 +1750,35 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = l_Lean_Expr_constName___closed__1; -x_4 = lean_unsigned_to_nat(236u); +x_3 = l_Lean_Expr_constName_x21___closed__1; +x_4 = lean_unsigned_to_nat(240u); x_5 = lean_unsigned_to_nat(15u); -x_6 = l_Lean_Expr_constName___closed__2; -x_7 = l_panicWithPos___at_Lean_Expr_constName___spec__1(x_3, x_4, x_5, x_6); +x_6 = l_Lean_Expr_constName_x21___closed__2; +x_7 = l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(x_3, x_4, x_5, x_6); return x_7; } } } -lean_object* l_panicWithPos___at_Lean_Expr_constName___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_panicWithPos___at_Lean_Expr_constName_x21___spec__1___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_panicWithPos___at_Lean_Expr_constName___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Expr_constName___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_constName_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_constName(x_1); +x_2 = l_Lean_Expr_constName_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_panicWithPos___at_Lean_Expr_constLevels___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_panicWithPos___at_Lean_Expr_constLevels_x21___spec__1(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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -1769,7 +1802,7 @@ x_19 = lean_panic_fn(x_18); return x_19; } } -lean_object* l_Lean_Expr_constLevels(lean_object* x_1) { +lean_object* l_Lean_Expr_constLevels_x21(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 4) @@ -1782,35 +1815,35 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = l_Lean_Expr_constName___closed__1; -x_4 = lean_unsigned_to_nat(240u); +x_3 = l_Lean_Expr_constName_x21___closed__1; +x_4 = lean_unsigned_to_nat(244u); x_5 = lean_unsigned_to_nat(16u); -x_6 = l_Lean_Expr_constName___closed__2; -x_7 = l_panicWithPos___at_Lean_Expr_constLevels___spec__1(x_3, x_4, x_5, x_6); +x_6 = l_Lean_Expr_constName_x21___closed__2; +x_7 = l_panicWithPos___at_Lean_Expr_constLevels_x21___spec__1(x_3, x_4, x_5, x_6); return x_7; } } } -lean_object* l_panicWithPos___at_Lean_Expr_constLevels___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_panicWithPos___at_Lean_Expr_constLevels_x21___spec__1___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_panicWithPos___at_Lean_Expr_constLevels___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_panicWithPos___at_Lean_Expr_constLevels_x21___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Expr_constLevels___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_constLevels_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_constLevels(x_1); +x_2 = l_Lean_Expr_constLevels_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* _init_l_Lean_Expr_bvarIdx___closed__1() { +lean_object* _init_l_Lean_Expr_bvarIdx_x21___closed__1() { _start: { lean_object* x_1; @@ -1818,7 +1851,7 @@ x_1 = lean_mk_string("bvar expected"); return x_1; } } -lean_object* l_Lean_Expr_bvarIdx(lean_object* x_1) { +lean_object* l_Lean_Expr_bvarIdx_x21(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1831,25 +1864,25 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = l_Lean_Expr_constName___closed__1; -x_4 = lean_unsigned_to_nat(244u); +x_3 = l_Lean_Expr_constName_x21___closed__1; +x_4 = lean_unsigned_to_nat(248u); x_5 = lean_unsigned_to_nat(14u); -x_6 = l_Lean_Expr_bvarIdx___closed__1; +x_6 = l_Lean_Expr_bvarIdx_x21___closed__1; x_7 = l_panicWithPos___at_Array_findIdx_x21___spec__1(x_3, x_4, x_5, x_6); return x_7; } } } -lean_object* l_Lean_Expr_bvarIdx___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_bvarIdx_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_bvarIdx(x_1); +x_2 = l_Lean_Expr_bvarIdx_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* _init_l_Lean_Expr_fvarName___closed__1() { +lean_object* _init_l_Lean_Expr_fvarId_x21___closed__1() { _start: { lean_object* x_1; @@ -1857,7 +1890,7 @@ x_1 = lean_mk_string("fvar expected"); return x_1; } } -lean_object* l_Lean_Expr_fvarName(lean_object* x_1) { +lean_object* l_Lean_Expr_fvarId_x21(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 1) @@ -1870,25 +1903,25 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = l_Lean_Expr_constName___closed__1; -x_4 = lean_unsigned_to_nat(248u); +x_3 = l_Lean_Expr_constName_x21___closed__1; +x_4 = lean_unsigned_to_nat(252u); x_5 = lean_unsigned_to_nat(12u); -x_6 = l_Lean_Expr_fvarName___closed__1; -x_7 = l_panicWithPos___at_Lean_Expr_constName___spec__1(x_3, x_4, x_5, x_6); +x_6 = l_Lean_Expr_fvarId_x21___closed__1; +x_7 = l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(x_3, x_4, x_5, x_6); return x_7; } } } -lean_object* l_Lean_Expr_fvarName___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_fvarId_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_fvarName(x_1); +x_2 = l_Lean_Expr_fvarId_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* _init_l_Lean_Expr_bindingName___closed__1() { +lean_object* _init_l_Lean_Expr_bindingName_x21___closed__1() { _start: { lean_object* x_1; @@ -1896,7 +1929,7 @@ x_1 = lean_mk_string("binding expected"); return x_1; } } -lean_object* l_Lean_Expr_bindingName(lean_object* x_1) { +lean_object* l_Lean_Expr_bindingName_x21(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -1917,26 +1950,26 @@ return x_3; default: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(253u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(257u); x_6 = lean_unsigned_to_nat(21u); -x_7 = l_Lean_Expr_bindingName___closed__1; -x_8 = l_panicWithPos___at_Lean_Expr_constName___spec__1(x_4, x_5, x_6, x_7); +x_7 = l_Lean_Expr_bindingName_x21___closed__1; +x_8 = l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } } } -lean_object* l_Lean_Expr_bindingName___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_bindingName_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_bindingName(x_1); +x_2 = l_Lean_Expr_bindingName_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -1960,7 +1993,7 @@ x_19 = lean_panic_fn(x_17); return x_19; } } -lean_object* l_Lean_Expr_bindingDomain(lean_object* x_1) { +lean_object* l_Lean_Expr_bindingDomain_x21(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -1981,36 +2014,36 @@ return x_3; default: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(258u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(262u); x_6 = lean_unsigned_to_nat(21u); -x_7 = l_Lean_Expr_bindingName___closed__1; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_7 = l_Lean_Expr_bindingName_x21___closed__1; +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } } } -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1___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_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Expr_bindingDomain___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_bindingDomain(x_1); +x_2 = l_Lean_Expr_bindingDomain_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_Lean_Expr_bindingBody(lean_object* x_1) { +lean_object* l_Lean_Expr_bindingBody_x21(lean_object* x_1) { _start: { switch (lean_obj_tag(x_1)) { @@ -2031,26 +2064,26 @@ return x_3; default: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(263u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(267u); x_6 = lean_unsigned_to_nat(21u); -x_7 = l_Lean_Expr_bindingName___closed__1; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_7 = l_Lean_Expr_bindingName_x21___closed__1; +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } } } -lean_object* l_Lean_Expr_bindingBody___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_bindingBody(x_1); +x_2 = l_Lean_Expr_bindingBody_x21(x_1); lean_dec(x_1); return x_2; } } -lean_object* _init_l_Lean_Expr_letName___closed__1() { +lean_object* _init_l_Lean_Expr_letName_x21___closed__1() { _start: { lean_object* x_1; @@ -2058,7 +2091,7 @@ x_1 = lean_mk_string("let expression expected"); return x_1; } } -lean_object* l_Lean_Expr_letName(lean_object* x_1) { +lean_object* l_Lean_Expr_letName_x21(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 8) @@ -2071,20 +2104,20 @@ return x_2; else { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = l_Lean_Expr_constName___closed__1; -x_4 = lean_unsigned_to_nat(267u); +x_3 = l_Lean_Expr_constName_x21___closed__1; +x_4 = lean_unsigned_to_nat(271u); x_5 = lean_unsigned_to_nat(18u); -x_6 = l_Lean_Expr_letName___closed__1; -x_7 = l_panicWithPos___at_Lean_Expr_constName___spec__1(x_3, x_4, x_5, x_6); +x_6 = l_Lean_Expr_letName_x21___closed__1; +x_7 = l_panicWithPos___at_Lean_Expr_constName_x21___spec__1(x_3, x_4, x_5, x_6); return x_7; } } } -lean_object* l_Lean_Expr_letName___boxed(lean_object* x_1) { +lean_object* l_Lean_Expr_letName_x21___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Expr_letName(x_1); +x_2 = l_Lean_Expr_letName_x21(x_1); lean_dec(x_1); return x_2; } @@ -2636,11 +2669,11 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_obj lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_5 = l_Lean_Expr_constName___closed__1; -x_6 = lean_unsigned_to_nat(403u); +x_5 = l_Lean_Expr_constName_x21___closed__1; +x_6 = lean_unsigned_to_nat(407u); x_7 = lean_unsigned_to_nat(16u); x_8 = l_Lean_Expr_updateApp_x21___closed__1; -x_9 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_5, x_6, x_7, x_8); +x_9 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_5, x_6, x_7, x_8); return x_9; } } @@ -2667,11 +2700,11 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(412u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(416u); x_6 = lean_unsigned_to_nat(16u); -x_7 = l_Lean_Expr_constName___closed__2; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_7 = l_Lean_Expr_constName_x21___closed__2; +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } @@ -2706,11 +2739,11 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(421u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(425u); x_6 = lean_unsigned_to_nat(12u); x_7 = l_Lean_Expr_updateSort_x21___closed__1; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } @@ -2753,11 +2786,11 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(438u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(442u); x_6 = lean_unsigned_to_nat(15u); x_7 = l_Lean_Expr_updateMData_x21___closed__1; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } @@ -2784,11 +2817,11 @@ else lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_dec(x_2); lean_dec(x_1); -x_4 = l_Lean_Expr_constName___closed__1; -x_5 = lean_unsigned_to_nat(443u); +x_4 = l_Lean_Expr_constName_x21___closed__1; +x_5 = lean_unsigned_to_nat(447u); x_6 = lean_unsigned_to_nat(16u); x_7 = l_Lean_Expr_updateProj_x21___closed__1; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } } @@ -2826,11 +2859,11 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_6 = l_Lean_Expr_constName___closed__1; -x_7 = lean_unsigned_to_nat(452u); +x_6 = l_Lean_Expr_constName_x21___closed__1; +x_7 = lean_unsigned_to_nat(456u); x_8 = lean_unsigned_to_nat(22u); x_9 = l_Lean_Expr_updateForall_x21___closed__1; -x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_6, x_7, x_8, x_9); +x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_6, x_7, x_8, x_9); return x_10; } } @@ -2861,11 +2894,11 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Expr_constName___closed__1; -x_7 = lean_unsigned_to_nat(457u); +x_6 = l_Lean_Expr_constName_x21___closed__1; +x_7 = lean_unsigned_to_nat(461u); x_8 = lean_unsigned_to_nat(22u); x_9 = l_Lean_Expr_updateForall_x21___closed__1; -x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_6, x_7, x_8, x_9); +x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_6, x_7, x_8, x_9); return x_10; } } @@ -2903,11 +2936,11 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_6 = l_Lean_Expr_constName___closed__1; -x_7 = lean_unsigned_to_nat(466u); +x_6 = l_Lean_Expr_constName_x21___closed__1; +x_7 = lean_unsigned_to_nat(470u); x_8 = lean_unsigned_to_nat(18u); x_9 = l_Lean_Expr_updateLambda_x21___closed__1; -x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_6, x_7, x_8, x_9); +x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_6, x_7, x_8, x_9); return x_10; } } @@ -2938,11 +2971,11 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Expr_constName___closed__1; -x_7 = lean_unsigned_to_nat(471u); +x_6 = l_Lean_Expr_constName_x21___closed__1; +x_7 = lean_unsigned_to_nat(475u); x_8 = lean_unsigned_to_nat(18u); x_9 = l_Lean_Expr_updateLambda_x21___closed__1; -x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_6, x_7, x_8, x_9); +x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_6, x_7, x_8, x_9); return x_10; } } @@ -2971,11 +3004,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Expr_constName___closed__1; -x_7 = lean_unsigned_to_nat(480u); +x_6 = l_Lean_Expr_constName_x21___closed__1; +x_7 = lean_unsigned_to_nat(484u); x_8 = lean_unsigned_to_nat(18u); -x_9 = l_Lean_Expr_letName___closed__1; -x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_6, x_7, x_8, x_9); +x_9 = l_Lean_Expr_letName_x21___closed__1; +x_10 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_6, x_7, x_8, x_9); return x_10; } } @@ -3029,18 +3062,18 @@ 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_constName___closed__1 = _init_l_Lean_Expr_constName___closed__1(); -lean_mark_persistent(l_Lean_Expr_constName___closed__1); -l_Lean_Expr_constName___closed__2 = _init_l_Lean_Expr_constName___closed__2(); -lean_mark_persistent(l_Lean_Expr_constName___closed__2); -l_Lean_Expr_bvarIdx___closed__1 = _init_l_Lean_Expr_bvarIdx___closed__1(); -lean_mark_persistent(l_Lean_Expr_bvarIdx___closed__1); -l_Lean_Expr_fvarName___closed__1 = _init_l_Lean_Expr_fvarName___closed__1(); -lean_mark_persistent(l_Lean_Expr_fvarName___closed__1); -l_Lean_Expr_bindingName___closed__1 = _init_l_Lean_Expr_bindingName___closed__1(); -lean_mark_persistent(l_Lean_Expr_bindingName___closed__1); -l_Lean_Expr_letName___closed__1 = _init_l_Lean_Expr_letName___closed__1(); -lean_mark_persistent(l_Lean_Expr_letName___closed__1); +l_Lean_Expr_constName_x21___closed__1 = _init_l_Lean_Expr_constName_x21___closed__1(); +lean_mark_persistent(l_Lean_Expr_constName_x21___closed__1); +l_Lean_Expr_constName_x21___closed__2 = _init_l_Lean_Expr_constName_x21___closed__2(); +lean_mark_persistent(l_Lean_Expr_constName_x21___closed__2); +l_Lean_Expr_bvarIdx_x21___closed__1 = _init_l_Lean_Expr_bvarIdx_x21___closed__1(); +lean_mark_persistent(l_Lean_Expr_bvarIdx_x21___closed__1); +l_Lean_Expr_fvarId_x21___closed__1 = _init_l_Lean_Expr_fvarId_x21___closed__1(); +lean_mark_persistent(l_Lean_Expr_fvarId_x21___closed__1); +l_Lean_Expr_bindingName_x21___closed__1 = _init_l_Lean_Expr_bindingName_x21___closed__1(); +lean_mark_persistent(l_Lean_Expr_bindingName_x21___closed__1); +l_Lean_Expr_letName_x21___closed__1 = _init_l_Lean_Expr_letName_x21___closed__1(); +lean_mark_persistent(l_Lean_Expr_letName_x21___closed__1); l_Lean_Expr_HasToString___closed__1 = _init_l_Lean_Expr_HasToString___closed__1(); lean_mark_persistent(l_Lean_Expr_HasToString___closed__1); l_Lean_Expr_HasToString = _init_l_Lean_Expr_HasToString(); diff --git a/src/stage0/Init/Lean/LocalContext.c b/src/stage0/Init/Lean/LocalContext.c index d91227b298..76969a2964 100644 --- a/src/stage0/Init/Lean/LocalContext.c +++ b/src/stage0/Init/Lean/LocalContext.c @@ -20,6 +20,7 @@ lean_object* l_Lean_LocalContext_forM(lean_object*); lean_object* l_Lean_LocalContext_foldlM(lean_object*); lean_object* l_PersistentArray_foldlM___at_Lean_LocalContext_foldlM___spec__1(lean_object*); lean_object* l_Array_forMAux___main___at_Lean_LocalContext_forM___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_toExpr___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__5(lean_object*); lean_object* l_PersistentArray_findMAux___main___at_Lean_LocalContext_findDecl___spec__3___rarg___boxed(lean_object*, lean_object*); uint8_t l_PersistentArray_anyM___at_Lean_LocalContext_all___spec__1(lean_object*, lean_object*); @@ -29,6 +30,7 @@ lean_object* l_Lean_LocalContext_foldl(lean_object*); uint8_t lean_name_dec_eq(lean_object*, lean_object*); size_t l_USize_mul(size_t, size_t); lean_object* l_Array_forMAux___main___at_Lean_LocalContext_forM___spec__3___boxed(lean_object*); +lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2(lean_object*); lean_object* l_PersistentArray_foldlFromMAux___main___at_Lean_LocalContext_foldlFrom___spec__3___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Array_findMAux___main___at_Lean_LocalContext_findDecl___spec__6___rarg(lean_object*, lean_object*, lean_object*); @@ -45,6 +47,7 @@ lean_object* l_Lean_LocalDecl_Inhabited; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__4(lean_object*); lean_object* l_Lean_LocalContext_findDeclRev___rarg___boxed(lean_object*, lean_object*); +lean_object* l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_foldlFrom___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_anyMAux___main___at_Lean_LocalContext_anyM___spec__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -92,7 +95,9 @@ 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*); lean_object* l_Array_findMAux___main___at_Lean_LocalContext_findDeclM___spec__3___rarg(lean_object*, 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_Array_anyMAux___main___at_Lean_LocalContext_anyM___spec__4___boxed(lean_object*); +lean_object* l_Lean_LocalContext_findFVar___boxed(lean_object*, lean_object*); lean_object* l_Array_anyMAux___main___at_Lean_LocalContext_anyM___spec__5(lean_object*); lean_object* l_Lean_LocalDecl_valueOpt___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldl___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -103,17 +108,20 @@ 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_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_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRevM___spec__4___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__10(lean_object*); lean_object* l_Array_anyMAux___main___at_Lean_LocalContext_allM___spec__3___boxed(lean_object*); lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRev___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMAux___main___at_Lean_LocalContext_allM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_anyM(lean_object*); +lean_object* l_Lean_LocalContext_contains___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_mkLambda___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findDeclRev___rarg(lean_object*, lean_object*); lean_object* l_PersistentArray_anyM___at_Lean_LocalContext_anyM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_forMAux___main___at_Lean_LocalContext_forM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRevM___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l_PersistentArray_foldlFromM___at_Lean_LocalContext_foldlFromM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFromM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMAux___main___at_Lean_LocalContext_all___spec__4(lean_object*, lean_object*, lean_object*); @@ -140,6 +148,7 @@ lean_object* l_Array_anyMAux___main___at_Lean_LocalContext_anyM___spec__4___rarg 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*); +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_PersistentArray_get_x21___at___private_Init_Lean_LocalContext_1__popTailNoneAux___main___spec__1___boxed(lean_object*, lean_object*); @@ -266,6 +275,7 @@ extern size_t l_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_PersistentArray_findMAux___main___at_Lean_LocalContext_findDeclM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMAux___main___at_Lean_LocalContext_allM___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_PersistentArray_findRevMAux___main___at_Lean_LocalContext_findFromUserName___spec__3___boxed(lean_object*, lean_object*); +lean_object* l_PersistentHashMap_contains___at_Lean_LocalContext_contains___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_empty; lean_object* l_PersistentHashMap_find___at_Lean_LocalContext_find___spec__1(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFromM___spec__3(lean_object*); @@ -275,6 +285,7 @@ lean_object* l_PersistentArray_findRevMAux___main___at_Lean_LocalContext_findDec lean_object* l_PersistentHashMap_eraseAux___main___at_Lean_LocalContext_erase___spec__2(lean_object*, size_t, lean_object*); 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*); lean_object* l_PersistentArray_findM___at_Lean_LocalContext_findDeclM___spec__1(lean_object*); lean_object* l_PersistentArray_foldlMAux___main___at_Lean_LocalContext_foldl___spec__3(lean_object*); @@ -298,6 +309,7 @@ lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1_ lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRevM___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRevM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_findRevM___at_Lean_LocalContext_findDeclRev___spec__2(lean_object*); +uint8_t l_PersistentHashMap_contains___at_Lean_LocalContext_contains___spec__1(lean_object*, lean_object*); lean_object* l_PersistentArray_findM___at_Lean_LocalContext_findDeclM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlFrom___spec__6(lean_object*); @@ -399,7 +411,6 @@ lean_object* l_Array_findMAux___main___at_Lean_LocalContext_findDeclM___spec__3( lean_object* l_Lean_LocalDecl_userName___boxed(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_getUnusedNameAux(lean_object*, lean_object*, lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_foldlM___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_foldlFromM___at_Lean_LocalContext_foldlFromM___spec__1(lean_object*); lean_object* lean_mk_empty_local_ctx(lean_object*); @@ -426,11 +437,13 @@ lean_object* l_Array_anyMAux___main___at_Lean_LocalContext_all___spec__4___boxed lean_object* l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Lean_LocalContext_findDeclRevM___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_isEmpty___rarg(lean_object*); +uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentArray_forM___at_Lean_LocalContext_forM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkLambda___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findMAux___main___at_Lean_LocalContext_findDecl___spec__5(lean_object*); lean_object* l_Lean_LocalContext_mkForall(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_toExpr(lean_object*); extern lean_object* l_Lean_exprIsInhabited___closed__1; lean_object* l_Lean_LocalContext_foldlM___at_Lean_LocalContext_foldl___spec__1(lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_LocalContext_find___spec__1___boxed(lean_object*, lean_object*); @@ -652,7 +665,7 @@ x_2 = l_Lean_LocalDecl_value___closed__1; x_3 = lean_unsigned_to_nat(49u); x_4 = lean_unsigned_to_nat(21u); x_5 = l_Lean_LocalDecl_value___closed__2; -x_6 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_2, x_3, x_4, x_5); +x_6 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_2, x_3, x_4, x_5); return x_6; } else @@ -743,6 +756,24 @@ return x_16; } } } +lean_object* l_Lean_LocalDecl_toExpr(lean_object* x_1) { +_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); +return x_3; +} +} +lean_object* l_Lean_LocalDecl_toExpr___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_LocalDecl_toExpr(x_1); +lean_dec(x_1); +return x_2; +} +} lean_object* _init_l_Lean_LocalContext_Inhabited___closed__1() { _start: { @@ -1600,24 +1631,178 @@ return x_3; lean_object* l_Lean_LocalContext_findFVar(lean_object* x_1, lean_object* x_2) { _start: { -if (lean_obj_tag(x_2) == 1) -{ lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); +x_3 = l_Lean_Expr_fvarId_x21(x_2); x_4 = lean_local_ctx_find(x_1, x_3); return x_4; } +} +lean_object* l_Lean_LocalContext_findFVar___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_LocalContext_findFVar(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_1); +x_5 = lean_nat_dec_lt(x_2, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_2); +x_6 = 0; +return x_6; +} else { -lean_object* x_5; +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_1, x_2); +x_8 = lean_name_dec_eq(x_3, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_2, x_9); lean_dec(x_2); -lean_dec(x_1); -x_5 = lean_box(0); +x_2 = x_10; +goto _start; +} +else +{ +uint8_t x_12; +lean_dec(x_2); +x_12 = 1; +return x_12; +} +} +} +} +uint8_t l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* 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; +x_4 = lean_ctor_get(x_1, 0); +x_5 = 5; +x_6 = l_PersistentHashMap_insertAux___main___rarg___closed__2; +x_7 = x_2 & x_6; +x_8 = lean_usize_to_nat(x_7); +x_9 = lean_box(2); +x_10 = lean_array_get(x_9, x_4, x_8); +lean_dec(x_8); +switch (lean_obj_tag(x_10)) { +case 0: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_name_dec_eq(x_3, x_11); +lean_dec(x_11); +return x_12; +} +case 1: +{ +lean_object* x_13; size_t x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +x_14 = x_2 >> x_5; +x_15 = l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2(x_13, x_14, x_3); +lean_dec(x_13); +return x_15; +} +default: +{ +uint8_t x_16; +x_16 = 0; +return x_16; +} +} +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = lean_ctor_get(x_1, 0); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); +return x_19; +} +} +} +uint8_t l_PersistentHashMap_contains___at_Lean_LocalContext_contains___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; size_t x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_name_hash_usize(x_2); +x_5 = l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2(x_3, x_4, x_2); return x_5; } } +uint8_t l_Lean_LocalContext_contains(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_1, 0); +x_4 = l_PersistentHashMap_contains___at_Lean_LocalContext_contains___spec__1(x_3, x_2); +return x_4; +} +} +lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3___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_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = l_PersistentHashMap_containsAux___main___at_Lean_LocalContext_contains___spec__2(x_1, x_4, x_3); +lean_dec(x_3); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} +lean_object* l_PersistentHashMap_contains___at_Lean_LocalContext_contains___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentHashMap_contains___at_Lean_LocalContext_contains___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_LocalContext_contains___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_LocalContext_contains(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} } lean_object* l_PersistentArray_getAux___main___at___private_Init_Lean_LocalContext_1__popTailNoneAux___main___spec__2(lean_object* x_1, size_t x_2, size_t x_3) { _start: @@ -6693,15 +6878,16 @@ x_10 = l_Lean_exprIsInhabited; 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); +lean_dec(x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_5); x_13 = l_Lean_LocalDecl_value___closed__1; -x_14 = lean_unsigned_to_nat(252u); +x_14 = lean_unsigned_to_nat(256u); x_15 = lean_unsigned_to_nat(12u); x_16 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; -x_17 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_13, x_14, x_15, x_16); +x_17 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_13, x_14, x_15, x_16); x_4 = x_9; x_5 = x_17; goto _start; @@ -6818,15 +7004,16 @@ x_9 = l_Lean_exprIsInhabited; 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); +lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_4); x_12 = l_Lean_LocalDecl_value___closed__1; -x_13 = lean_unsigned_to_nat(252u); +x_13 = lean_unsigned_to_nat(256u); x_14 = lean_unsigned_to_nat(12u); x_15 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; -x_16 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_12, x_13, x_14, x_15); +x_16 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_12, x_13, x_14, x_15); x_3 = x_8; x_4 = x_16; goto _start; @@ -6927,15 +7114,16 @@ x_9 = l_Lean_exprIsInhabited; 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); +lean_dec(x_10); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_4); x_12 = l_Lean_LocalDecl_value___closed__1; -x_13 = lean_unsigned_to_nat(252u); +x_13 = lean_unsigned_to_nat(256u); x_14 = lean_unsigned_to_nat(12u); x_15 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; -x_16 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_12, x_13, x_14, x_15); +x_16 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_12, x_13, x_14, x_15); x_3 = x_8; x_4 = x_16; goto _start; diff --git a/src/stage0/Init/Lean/MetavarContext.c b/src/stage0/Init/Lean/MetavarContext.c index 963fe7a520..d38b40c4ad 100644 --- a/src/stage0/Init/Lean/MetavarContext.c +++ b/src/stage0/Init/Lean/MetavarContext.c @@ -13,202 +13,370 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__67(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_level_assigned(lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); 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_Array_iterateMAux___main___at_Lean_MetavarContext_assignDelayed___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_instantiateMVars___spec__7(lean_object*, lean_object*, lean_object*); +uint8_t lean_expr_has_fvar(lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__6; +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__34___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__17___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__54(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*); size_t l_USize_mul(size_t, size_t); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__16___boxed(lean_object*, lean_object*, 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_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__60___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_findDecl___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_PersistentHashMap_contains___at_Lean_MetavarContext_isExprAssigned___spec__1(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__47(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__58___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__62(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__50___boxed(lean_object*, lean_object*); uint8_t l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___main___at_Lean_MetavarContext_hasAssignedLevelMVar___spec__1(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_letName___closed__1; +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__21___boxed(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__11; +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__8(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_MetavarContext_mkLambda___spec__66___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__9(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignExpr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_exprIsInhabited; lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getExprAssignment___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__23(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); size_t l_USize_shift__right(size_t, size_t); uint8_t lean_level_has_mvar(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isDelayedAssigned___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_hasAssignedLevelMVar(lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_getExprMVarLCtx(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__26___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getDelayedAssignment___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__57___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__51___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__30(lean_object*, lean_object*, lean_object*); extern lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___spec__1___rarg___closed__2; lean_object* lean_metavar_ctx_erase_delayed(lean_object*, lean_object*); -lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__32___boxed(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__12___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_delayed_assignment(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__11___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__36(lean_object*, lean_object*, lean_object*); size_t l_USize_sub(size_t, size_t); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__9___boxed(lean_object*, lean_object*); +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_mkMetavarContext___closed__1; -lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(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_Lean_MetavarContext_instantiateLevelMVars(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_mkDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__50(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__30___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedLevelMVar___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); +lean_object* l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(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*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getDelayedAssignment___spec__1(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_MetavarContext_instantiateMVars___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext(lean_object*, lean_object*); lean_object* l_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -lean_object* l_Lean_MetavarContext_getExprMVarType(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__15(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppRev(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_mkDecl___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__44___boxed(lean_object*, lean_object*); lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); 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* lean_level_update_succ(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__10(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___at_Lean_MetavarContext_instantiateMVars___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__8; +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__60(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_getDecl___boxed(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__17(lean_object*, lean_object*, 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*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__23___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); lean_object* l_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateMVars___at_Lean_MetavarContext_instantiateMVars___spec__1(lean_object*, lean_object*); -uint8_t l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1(lean_object*); +uint8_t l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateForall_x21___closed__1; +uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__10; +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__56___boxed(lean_object*, lean_object*); extern lean_object* l_panicWithPos___rarg___closed__3; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getDelayedAssignment___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_MetavarContext_instantiateMVars___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_constName___closed__1; +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__45(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__40(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__20___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_contains___at_Lean_MetavarContext_isLevelAssigned___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext; 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_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getLevelAssignment___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__15___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__1; +lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__7; +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__20(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__41___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__9; size_t l_USize_add(size_t, size_t); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__28___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_erase___at_Lean_MetavarContext_eraseDelayed___spec__1(lean_object*, 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*); +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__44(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__42(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_constName_x21___closed__1; +lean_object* l_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__27___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getExprAssignment___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__51(lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_empty___closed__3; 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_metavarContextIsAbstractMetavarContext___closed__5; -lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__28(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__42___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_MetavarContext_mkDecl___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_expr(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__24___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_List_foldr___main___at_Lean_MetavarContext_hasAssignedMVar___spec__2(lean_object*, uint8_t, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__53(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__27(lean_object*, 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; +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__26(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__22(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); extern lean_object* l_panicWithPos___rarg___closed__1; +extern lean_object* l_Lean_MetavarDecl_Inhabited; +lean_object* l_Lean_AbstractMetavarContext_MkBinding_getInScope(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_MetavarContext_getDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getDelayedAssignment___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__33___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_instantiateLevelMVars___main___at_Lean_MetavarContext_instantiateLevelMVars___spec__1(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*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__58(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_mkDecl___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); extern size_t l_PersistentHashMap_insertAux___main___rarg___closed__2; +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__5___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; lean_object* l_Lean_MetavarContext_instantiateMVars(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__59(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__46(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__18___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_getDecl___closed__1; +lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__39___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__16(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_find___at_Lean_MetavarContext_getLevelAssignment___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__62___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__39(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_MetavarContext_instantiateMVars___spec__6(lean_object*, lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__67___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_assignExpr___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__8___boxed(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_panicWithPos___at_Lean_MetavarContext_instantiateMVars___spec__4(lean_object*, lean_object*, lean_object*, 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* lean_metavar_ctx_get_level_assignment(lean_object*, lean_object*); lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_main___main___at_Lean_MetavarContext_instantiateMVars___spec__2(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_delayed_assigned(lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__34(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_AbstractMetavarContext_hasAssignedMVar___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__54___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_updateSucc_x21___closed__1; +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__57(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__41(lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignDelayed___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__38(lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_letName_x21___closed__1; lean_object* l_Lean_AbstractMetavarContext_hasAssignedMVar___main___at_Lean_MetavarContext_hasAssignedMVar___spec__1___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_mkDecl___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateLevelMVars___at_Lean_MetavarContext_instantiateMVars___spec__5(lean_object*, lean_object*); lean_object* l_panic(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Level_updateIMax_x21___closed__1; -uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__10___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLambda_x21___closed__1; +lean_object* lean_name_mk_numeral(lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__11(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__1; +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__21(lean_object*, lean_object*); lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_findDecl___spec__2(lean_object*, size_t, lean_object*); extern lean_object* l_HashMap_Inhabited___closed__1; +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__45___boxed(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isDelayedAssigned___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_assignExpr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isLevelAssigned___boxed(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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__52___boxed(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_PersistentHashMap_findAtAux___main___at_Lean_MetavarContext_getExprAssignment___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_PersistentHashMap_isUnaryNode___rarg(lean_object*); +extern lean_object* l_EIO_Monad___closed__1; +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__29___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_mkForall(lean_object*, 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* lean_array_fget(lean_object*, lean_object*); lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__24(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__29(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, 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*); 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_Lean_MetavarContext_mkLambda___spec__14(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* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignLevel___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_MetavarContext_assignLevel___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1___boxed(lean_object*); +lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_isExprAssigned___boxed(lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_hasAssignedMVar(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_delayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_mkDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_mkDecl___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__56(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__35___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_mk_lambda(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_MetavarContext_mkLambda___spec__66(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__35(lean_object*, 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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__22___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(lean_object*, lean_object*); lean_object* l_PersistentHashMap_erase___at_Lean_MetavarContext_eraseDelayed___spec__1___boxed(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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__12(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__38___boxed(lean_object*, lean_object*); extern lean_object* l_panicWithPos___rarg___closed__2; lean_object* l_PersistentHashMap_findAux___main___at_Lean_MetavarContext_getExprAssignment___spec__2___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__32(lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__2; +uint8_t l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__47___boxed(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*); 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*); extern lean_object* l_Lean_Expr_updateMData_x21___closed__1; +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__48(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__4; +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_MetavarContext_instantiateMVars___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__46___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_sort(lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__48___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_hasAssignedMVar___boxed(lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__53___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__18(lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__52(lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_assign_level(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__36___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__33(lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_MkBinding_collectDeps___at_Lean_MetavarContext_mkLambda___spec__4(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_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_MetavarContext_getDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63___boxed(lean_object*, lean_object*, 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_Lean_LocalDecl_toExpr(lean_object*); +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25___boxed(lean_object*, 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*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__59___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__40___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__14___boxed(lean_object*, lean_object*); lean_object* l_panicWithPos___at_Lean_Level_updateSucc_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__3; uint8_t lean_expr_has_level_mvar(lean_object*); +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l_PersistentHashMap_insertAux___main___at_Lean_MetavarContext_assignLevel___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); +lean_object* l_Lean_LocalDecl_name(lean_object*); lean_object* l_PersistentHashMap_contains___at_Lean_MetavarContext_isExprAssigned___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___main___at_Lean_MetavarContext_hasAssignedLevelMVar___spec__1___boxed(lean_object*, lean_object*); lean_object* _init_l_Lean_MetavarContext_mkMetavarContext___closed__1() { @@ -960,87 +1128,91 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_MetavarContext_getExprMVarLCtx(lean_object* x_1, lean_object* x_2) { +lean_object* l_panicWithPos___at_Lean_MetavarContext_getDecl___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_3; -x_3 = lean_metavar_ctx_find_decl(x_1, x_2); -if (lean_obj_tag(x_3) == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_5 = l_panicWithPos___rarg___closed__1; +x_6 = lean_string_append(x_5, x_1); +x_7 = l_panicWithPos___rarg___closed__2; +x_8 = lean_string_append(x_6, x_7); +x_9 = l_Nat_repr(x_2); +x_10 = lean_string_append(x_8, x_9); +lean_dec(x_9); +x_11 = l_panicWithPos___rarg___closed__2; +x_12 = lean_string_append(x_10, x_11); +x_13 = l_Nat_repr(x_3); +x_14 = lean_string_append(x_12, x_13); +lean_dec(x_13); +x_15 = l_panicWithPos___rarg___closed__3; +x_16 = lean_string_append(x_14, x_15); +x_17 = lean_string_append(x_16, x_4); +x_18 = l_Lean_MetavarDecl_Inhabited; +x_19 = lean_panic_fn(x_17); +return x_19; +} +} +lean_object* _init_l_Lean_MetavarContext_getDecl___closed__1() { +_start: { -lean_object* x_4; -x_4 = lean_box(0); -return x_4; +lean_object* x_1; +x_1 = lean_mk_string("Init.Lean.MetavarContext"); +return x_1; +} +} +lean_object* _init_l_Lean_MetavarContext_getDecl___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unknown metavariable"); +return x_1; +} +} +lean_object* l_Lean_MetavarContext_getDecl(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 0); +x_4 = l_PersistentHashMap_find___at_Lean_MetavarContext_findDecl___spec__1(x_3, x_2); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = l_Lean_MetavarContext_getDecl___closed__1; +x_6 = lean_unsigned_to_nat(37u); +x_7 = lean_unsigned_to_nat(15u); +x_8 = l_Lean_MetavarContext_getDecl___closed__2; +x_9 = l_panicWithPos___at_Lean_MetavarContext_getDecl___spec__1(x_5, x_6, x_7, x_8); +return x_9; } else { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_3, 0); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -lean_ctor_set(x_3, 0, x_7); -return x_3; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); +lean_object* x_10; +x_10 = lean_ctor_get(x_4, 0); +lean_inc(x_10); +lean_dec(x_4); return x_10; } } } +lean_object* l_panicWithPos___at_Lean_MetavarContext_getDecl___spec__1___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_panicWithPos___at_Lean_MetavarContext_getDecl___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_1); +return x_5; } -lean_object* l_Lean_MetavarContext_getExprMVarType(lean_object* x_1, lean_object* x_2) { +} +lean_object* l_Lean_MetavarContext_getDecl___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_metavar_ctx_find_decl(x_1, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -x_4 = lean_box(0); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_3, 0); -x_7 = lean_ctor_get(x_6, 2); -lean_inc(x_7); -lean_dec(x_6); -lean_ctor_set(x_3, 0, x_7); +x_3 = l_Lean_MetavarContext_getDecl(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); return x_3; } -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_8, 2); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -return x_10; -} -} -} } lean_object* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_MetavarContext_assignLevel___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: @@ -3171,45 +3343,6 @@ lean_dec(x_1); return x_3; } } -uint8_t l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = lean_array_get_size(x_1); -x_5 = lean_nat_dec_lt(x_2, x_4); -lean_dec(x_4); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_2); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_fget(x_1, x_2); -x_8 = lean_name_dec_eq(x_3, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_2, x_9); -lean_dec(x_2); -x_2 = x_10; -goto _start; -} -else -{ -uint8_t x_12; -lean_dec(x_2); -x_12 = 1; -return x_12; -} -} -} -} uint8_t l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { @@ -3259,7 +3392,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } @@ -3287,17 +3420,6 @@ lean_dec(x_3); return x_4; } } -lean_object* l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3___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_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec(x_1); -x_5 = lean_box(x_4); -return x_5; -} -} lean_object* l_PersistentHashMap_containsAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3380,7 +3502,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } @@ -3490,7 +3612,7 @@ else lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_1, 0); x_18 = lean_unsigned_to_nat(0u); -x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_MetavarContext_isLevelAssigned___spec__3(x_17, x_18, x_3); +x_19 = l_PersistentHashMap_containsAtAux___main___at_Lean_LocalContext_contains___spec__3(x_17, x_18, x_3); return x_19; } } @@ -4235,19 +4357,30 @@ lean_dec(x_2); return x_3; } } -uint8_t l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1(lean_object* x_1) { +uint8_t l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; -x_2 = 1; -return x_2; +uint8_t x_3; +x_3 = 0; +return x_3; +} +} +lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_box(0); +x_7 = lean_metavar_ctx_mk_decl(x_1, x_2, x_6, x_3, x_4, x_5); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_7); +return x_8; } } lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1___boxed), 2, 0); return x_1; } } @@ -4287,7 +4420,7 @@ lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_getExprMVarLCtx), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_getDecl___boxed), 2, 0); return x_1; } } @@ -4295,7 +4428,7 @@ lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_getExprMVarType), 2, 0); +x_1 = lean_alloc_closure((void*)(lean_metavar_ctx_assign_delayed), 5, 0); return x_1; } } @@ -4303,7 +4436,7 @@ lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(lean_metavar_ctx_assign_delayed), 5, 0); +x_1 = lean_alloc_closure((void*)(lean_metavar_ctx_get_delayed_assignment), 2, 0); return x_1; } } @@ -4311,7 +4444,7 @@ lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(lean_metavar_ctx_get_delayed_assignment), 2, 0); +x_1 = lean_alloc_closure((void*)(lean_metavar_ctx_erase_delayed), 2, 0); return x_1; } } @@ -4319,14 +4452,14 @@ lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(lean_metavar_ctx_erase_delayed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__2___boxed), 5, 0); return x_1; } } lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* 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_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_1 = l_Lean_MetavarContext_mkMetavarContext___closed__1; x_2 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__1; x_3 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__2; @@ -4335,25 +4468,23 @@ x_5 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__4; x_6 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__5; x_7 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__6; x_8 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__7; -x_9 = 0; -x_10 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__8; -x_11 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__9; -x_12 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__10; -x_13 = lean_alloc_ctor(0, 12, 1); -lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_13, 1, x_2); -lean_ctor_set(x_13, 2, x_3); -lean_ctor_set(x_13, 3, x_4); -lean_ctor_set(x_13, 4, x_2); -lean_ctor_set(x_13, 5, x_5); -lean_ctor_set(x_13, 6, x_6); -lean_ctor_set(x_13, 7, x_7); -lean_ctor_set(x_13, 8, x_8); -lean_ctor_set(x_13, 9, x_10); -lean_ctor_set(x_13, 10, x_11); -lean_ctor_set(x_13, 11, x_12); -lean_ctor_set_uint8(x_13, sizeof(void*)*12, x_9); -return x_13; +x_9 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__8; +x_10 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__9; +x_11 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__10; +x_12 = lean_alloc_ctor(0, 12, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_2); +lean_ctor_set(x_12, 2, x_3); +lean_ctor_set(x_12, 3, x_4); +lean_ctor_set(x_12, 4, x_2); +lean_ctor_set(x_12, 5, x_5); +lean_ctor_set(x_12, 6, x_6); +lean_ctor_set(x_12, 7, x_7); +lean_ctor_set(x_12, 8, x_8); +lean_ctor_set(x_12, 9, x_9); +lean_ctor_set(x_12, 10, x_10); +lean_ctor_set(x_12, 11, x_11); +return x_12; } } lean_object* _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext() { @@ -4364,14 +4495,25 @@ x_1 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__11; return x_1; } } -lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1___boxed(lean_object* x_1) { +lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1(x_1); +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__1(x_1, x_2); +lean_dec(x_2); lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__2___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_MetavarContext_metavarContextIsAbstractMetavarContext___lambda__2(x_1, x_2, x_3, x_4, x_6); +return x_7; } } uint8_t l_Lean_AbstractMetavarContext_hasAssignedLevelMVar___main___at_Lean_MetavarContext_hasAssignedLevelMVar___spec__1(lean_object* x_1, lean_object* x_2) { @@ -5577,6 +5719,7 @@ x_10 = l_Lean_exprIsInhabited; 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); +lean_dec(x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -5584,7 +5727,7 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_1); x_13 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; -x_14 = lean_unsigned_to_nat(194u); +x_14 = lean_unsigned_to_nat(197u); x_15 = lean_unsigned_to_nat(12u); x_16 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; x_17 = l_panicWithPos___at_Lean_MetavarContext_instantiateMVars___spec__4(x_13, x_14, x_15, x_16, x_5); @@ -5621,7 +5764,7 @@ else lean_object* x_36; lean_object* x_37; x_36 = lean_ctor_get(x_5, 1); lean_inc(x_36); -x_37 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_36, x_20); +x_37 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_36, x_20); lean_dec(x_36); if (lean_obj_tag(x_37) == 0) { @@ -5639,7 +5782,7 @@ if (x_41 == 0) lean_object* x_42; lean_object* x_43; x_42 = lean_ctor_get(x_39, 1); lean_inc(x_40); -x_43 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_42, x_20, x_40); +x_43 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_42, x_20, x_40); lean_ctor_set(x_39, 1, x_43); x_22 = x_40; x_23 = x_39; @@ -5654,7 +5797,7 @@ lean_inc(x_45); lean_inc(x_44); lean_dec(x_39); lean_inc(x_40); -x_46 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_45, x_20, x_40); +x_46 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_45, x_20, x_40); x_47 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_47, 0, x_44); lean_ctor_set(x_47, 1, x_46); @@ -5681,7 +5824,7 @@ else lean_object* x_49; lean_object* x_50; x_49 = lean_ctor_get(x_5, 1); lean_inc(x_49); -x_50 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_49, x_20); +x_50 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_49, x_20); lean_dec(x_49); if (lean_obj_tag(x_50) == 0) { @@ -5699,7 +5842,7 @@ if (x_54 == 0) lean_object* x_55; lean_object* x_56; x_55 = lean_ctor_get(x_52, 1); lean_inc(x_53); -x_56 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_55, x_20, x_53); +x_56 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_55, x_20, x_53); lean_ctor_set(x_52, 1, x_56); x_22 = x_53; x_23 = x_52; @@ -5714,7 +5857,7 @@ lean_inc(x_58); lean_inc(x_57); lean_dec(x_52); lean_inc(x_53); -x_59 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_58, x_20, x_53); +x_59 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_58, x_20, x_53); x_60 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_60, 0, x_57); lean_ctor_set(x_60, 1, x_59); @@ -5811,7 +5954,7 @@ else lean_object* x_117; lean_object* x_118; x_117 = lean_ctor_get(x_5, 1); lean_inc(x_117); -x_118 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_117, x_63); +x_118 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_117, x_63); lean_dec(x_117); if (lean_obj_tag(x_118) == 0) { @@ -5829,7 +5972,7 @@ if (x_122 == 0) lean_object* x_123; lean_object* x_124; x_123 = lean_ctor_get(x_120, 1); lean_inc(x_121); -x_124 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_123, x_63, x_121); +x_124 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_123, x_63, x_121); lean_ctor_set(x_120, 1, x_124); x_65 = x_121; x_66 = x_120; @@ -5844,7 +5987,7 @@ lean_inc(x_126); lean_inc(x_125); lean_dec(x_120); lean_inc(x_121); -x_127 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_126, x_63, x_121); +x_127 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_126, x_63, x_121); x_128 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_128, 0, x_125); lean_ctor_set(x_128, 1, x_127); @@ -5871,7 +6014,7 @@ else lean_object* x_130; lean_object* x_131; x_130 = lean_ctor_get(x_5, 1); lean_inc(x_130); -x_131 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_130, x_63); +x_131 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_130, x_63); lean_dec(x_130); if (lean_obj_tag(x_131) == 0) { @@ -5889,7 +6032,7 @@ if (x_135 == 0) lean_object* x_136; lean_object* x_137; x_136 = lean_ctor_get(x_133, 1); lean_inc(x_134); -x_137 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_136, x_63, x_134); +x_137 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_136, x_63, x_134); lean_ctor_set(x_133, 1, x_137); x_65 = x_134; x_66 = x_133; @@ -5904,7 +6047,7 @@ lean_inc(x_139); lean_inc(x_138); lean_dec(x_133); lean_inc(x_134); -x_140 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_139, x_63, x_134); +x_140 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_139, x_63, x_134); x_141 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_141, 0, x_138); lean_ctor_set(x_141, 1, x_140); @@ -5952,7 +6095,7 @@ else lean_object* x_84; lean_object* x_85; x_84 = lean_ctor_get(x_66, 1); lean_inc(x_84); -x_85 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_84, x_64); +x_85 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_84, x_64); lean_dec(x_84); if (lean_obj_tag(x_85) == 0) { @@ -5970,7 +6113,7 @@ if (x_89 == 0) lean_object* x_90; lean_object* x_91; x_90 = lean_ctor_get(x_87, 1); lean_inc(x_88); -x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_90, x_64, x_88); +x_91 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_90, x_64, x_88); lean_ctor_set(x_87, 1, x_91); x_67 = x_88; x_68 = x_87; @@ -5985,7 +6128,7 @@ lean_inc(x_93); lean_inc(x_92); lean_dec(x_87); lean_inc(x_88); -x_94 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_93, x_64, x_88); +x_94 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_93, x_64, x_88); x_95 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_95, 0, x_92); lean_ctor_set(x_95, 1, x_94); @@ -6012,7 +6155,7 @@ else lean_object* x_97; lean_object* x_98; x_97 = lean_ctor_get(x_66, 1); lean_inc(x_97); -x_98 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_97, x_64); +x_98 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_97, x_64); lean_dec(x_97); if (lean_obj_tag(x_98) == 0) { @@ -6030,7 +6173,7 @@ if (x_102 == 0) lean_object* x_103; lean_object* x_104; x_103 = lean_ctor_get(x_100, 1); lean_inc(x_101); -x_104 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_103, x_64, x_101); +x_104 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_103, x_64, x_101); lean_ctor_set(x_100, 1, x_104); x_67 = x_101; x_68 = x_100; @@ -6045,7 +6188,7 @@ lean_inc(x_106); lean_inc(x_105); lean_dec(x_100); lean_inc(x_101); -x_107 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_106, x_64, x_101); +x_107 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_106, x_64, x_101); x_108 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_108, 0, x_105); lean_ctor_set(x_108, 1, x_107); @@ -6383,7 +6526,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_20, x_9); +x_21 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_20, x_9); lean_dec(x_20); if (lean_obj_tag(x_21) == 0) { @@ -6402,7 +6545,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean x_26 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_inc(x_9); -x_27 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_26, x_9, x_24); +x_27 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6424,7 +6567,7 @@ lean_inc(x_33); lean_dec(x_23); lean_inc(x_24); lean_inc(x_9); -x_35 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_34, x_9, x_24); +x_35 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6461,7 +6604,7 @@ else 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_48, x_9); +x_49 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_48, x_9); lean_dec(x_48); if (lean_obj_tag(x_49) == 0) { @@ -6480,7 +6623,7 @@ lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean x_54 = lean_ctor_get(x_51, 1); lean_inc(x_52); lean_inc(x_9); -x_55 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_54, x_9, x_52); +x_55 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6502,7 +6645,7 @@ lean_inc(x_61); lean_dec(x_51); lean_inc(x_52); lean_inc(x_9); -x_63 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_62, x_9, x_52); +x_63 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6560,7 +6703,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_76, x_1); +x_77 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_76, x_1); lean_dec(x_76); if (lean_obj_tag(x_77) == 0) { @@ -6578,7 +6721,7 @@ if (x_81 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_82, x_1, x_80); +x_83 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -6593,7 +6736,7 @@ lean_inc(x_85); lean_inc(x_84); lean_dec(x_79); lean_inc(x_80); -x_86 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_85, x_1, x_80); +x_86 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6620,7 +6763,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_89, x_1); +x_90 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_89, x_1); lean_dec(x_89); if (lean_obj_tag(x_90) == 0) { @@ -6638,7 +6781,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_95, x_1, x_93); +x_96 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -6653,7 +6796,7 @@ lean_inc(x_98); lean_inc(x_97); lean_dec(x_92); lean_inc(x_93); -x_99 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_98, x_1, x_93); +x_99 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6718,7 +6861,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_25, x_21); +x_26 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_25, x_21); lean_dec(x_25); if (lean_obj_tag(x_26) == 0) { @@ -6737,7 +6880,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_32, x_21, x_31); +x_33 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_32, x_21, x_31); lean_ctor_set(x_29, 1, x_33); return x_27; } @@ -6751,7 +6894,7 @@ lean_inc(x_36); lean_inc(x_35); lean_dec(x_29); lean_inc(x_34); -x_37 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_36, x_21, x_34); +x_37 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6780,7 +6923,7 @@ if (lean_is_exclusive(x_39)) { x_43 = lean_box(0); } lean_inc(x_40); -x_44 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_42, x_21, x_40); +x_44 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_42, x_21, x_40); if (lean_is_scalar(x_43)) { x_45 = lean_alloc_ctor(0, 2, 0); } else { @@ -6813,7 +6956,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_49, x_21); +x_50 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_49, x_21); lean_dec(x_49); if (lean_obj_tag(x_50) == 0) { @@ -6832,7 +6975,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_56, x_21, x_55); +x_57 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_56, x_21, x_55); lean_ctor_set(x_53, 1, x_57); return x_51; } @@ -6846,7 +6989,7 @@ lean_inc(x_60); lean_inc(x_59); lean_dec(x_53); lean_inc(x_58); -x_61 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_60, x_21, x_58); +x_61 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -6875,7 +7018,7 @@ if (lean_is_exclusive(x_63)) { x_67 = lean_box(0); } lean_inc(x_64); -x_68 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_66, x_21, x_64); +x_68 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_66, x_21, x_64); if (lean_is_scalar(x_67)) { x_69 = lean_alloc_ctor(0, 2, 0); } else { @@ -6958,7 +7101,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_174, x_1); +x_175 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_174, x_1); lean_dec(x_174); if (lean_obj_tag(x_175) == 0) { @@ -6976,7 +7119,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_180, x_1, x_178); +x_181 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -6991,7 +7134,7 @@ lean_inc(x_183); lean_inc(x_182); lean_dec(x_177); lean_inc(x_178); -x_184 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_183, x_1, x_178); +x_184 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7018,7 +7161,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_187, x_1); +x_188 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_187, x_1); lean_dec(x_187); if (lean_obj_tag(x_188) == 0) { @@ -7036,7 +7179,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_193, x_1, x_191); +x_194 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -7051,7 +7194,7 @@ lean_inc(x_196); lean_inc(x_195); lean_dec(x_190); lean_inc(x_191); -x_197 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_196, x_1, x_191); +x_197 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7116,7 +7259,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_123, x_119); +x_124 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_123, x_119); lean_dec(x_123); if (lean_obj_tag(x_124) == 0) { @@ -7135,7 +7278,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_130, x_119, x_129); +x_131 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_130, x_119, x_129); lean_ctor_set(x_127, 1, x_131); return x_125; } @@ -7149,7 +7292,7 @@ lean_inc(x_134); lean_inc(x_133); lean_dec(x_127); lean_inc(x_132); -x_135 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_134, x_119, x_132); +x_135 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7178,7 +7321,7 @@ if (lean_is_exclusive(x_137)) { x_141 = lean_box(0); } lean_inc(x_138); -x_142 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_140, x_119, x_138); +x_142 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_140, x_119, x_138); if (lean_is_scalar(x_141)) { x_143 = lean_alloc_ctor(0, 2, 0); } else { @@ -7211,7 +7354,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_147, x_119); +x_148 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_147, x_119); lean_dec(x_147); if (lean_obj_tag(x_148) == 0) { @@ -7230,7 +7373,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_154, x_119, x_153); +x_155 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_154, x_119, x_153); lean_ctor_set(x_151, 1, x_155); return x_149; } @@ -7244,7 +7387,7 @@ lean_inc(x_158); lean_inc(x_157); lean_dec(x_151); lean_inc(x_156); -x_159 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_158, x_119, x_156); +x_159 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7273,7 +7416,7 @@ if (lean_is_exclusive(x_161)) { x_165 = lean_box(0); } lean_inc(x_162); -x_166 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_164, x_119, x_162); +x_166 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_164, x_119, x_162); if (lean_is_scalar(x_165)) { x_167 = lean_alloc_ctor(0, 2, 0); } else { @@ -7356,7 +7499,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_272, x_1); +x_273 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_272, x_1); lean_dec(x_272); if (lean_obj_tag(x_273) == 0) { @@ -7374,7 +7517,7 @@ if (x_277 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_278, x_1, x_276); +x_279 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -7389,7 +7532,7 @@ lean_inc(x_281); lean_inc(x_280); lean_dec(x_275); lean_inc(x_276); -x_282 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_281, x_1, x_276); +x_282 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7416,7 +7559,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_285, x_1); +x_286 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_285, x_1); lean_dec(x_285); if (lean_obj_tag(x_286) == 0) { @@ -7434,7 +7577,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_291, x_1, x_289); +x_292 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -7449,7 +7592,7 @@ lean_inc(x_294); lean_inc(x_293); lean_dec(x_288); lean_inc(x_289); -x_295 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_294, x_1, x_289); +x_295 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7514,7 +7657,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_221, x_217); +x_222 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_221, x_217); lean_dec(x_221); if (lean_obj_tag(x_222) == 0) { @@ -7533,7 +7676,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_228, x_217, x_227); +x_229 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_228, x_217, x_227); lean_ctor_set(x_225, 1, x_229); return x_223; } @@ -7547,7 +7690,7 @@ lean_inc(x_232); lean_inc(x_231); lean_dec(x_225); lean_inc(x_230); -x_233 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_232, x_217, x_230); +x_233 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7576,7 +7719,7 @@ if (lean_is_exclusive(x_235)) { x_239 = lean_box(0); } lean_inc(x_236); -x_240 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_238, x_217, x_236); +x_240 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_238, x_217, x_236); if (lean_is_scalar(x_239)) { x_241 = lean_alloc_ctor(0, 2, 0); } else { @@ -7609,7 +7752,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_245, x_217); +x_246 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_245, x_217); lean_dec(x_245); if (lean_obj_tag(x_246) == 0) { @@ -7628,7 +7771,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_252, x_217, x_251); +x_253 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_252, x_217, x_251); lean_ctor_set(x_249, 1, x_253); return x_247; } @@ -7642,7 +7785,7 @@ lean_inc(x_256); lean_inc(x_255); lean_dec(x_249); lean_inc(x_254); -x_257 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_256, x_217, x_254); +x_257 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7671,7 +7814,7 @@ if (lean_is_exclusive(x_259)) { x_263 = lean_box(0); } lean_inc(x_260); -x_264 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_262, x_217, x_260); +x_264 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_262, x_217, x_260); if (lean_is_scalar(x_263)) { x_265 = lean_alloc_ctor(0, 2, 0); } else { @@ -7754,7 +7897,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_370, x_1); +x_371 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_370, x_1); lean_dec(x_370); if (lean_obj_tag(x_371) == 0) { @@ -7772,7 +7915,7 @@ if (x_375 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_376, x_1, x_374); +x_377 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -7787,7 +7930,7 @@ lean_inc(x_379); lean_inc(x_378); lean_dec(x_373); lean_inc(x_374); -x_380 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_379, x_1, x_374); +x_380 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7814,7 +7957,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_383, x_1); +x_384 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_383, x_1); lean_dec(x_383); if (lean_obj_tag(x_384) == 0) { @@ -7832,7 +7975,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_389, x_1, x_387); +x_390 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -7847,7 +7990,7 @@ lean_inc(x_392); lean_inc(x_391); lean_dec(x_386); lean_inc(x_387); -x_393 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_392, x_1, x_387); +x_393 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7912,7 +8055,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_319, x_315); +x_320 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_319, x_315); lean_dec(x_319); if (lean_obj_tag(x_320) == 0) { @@ -7931,7 +8074,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_326, x_315, x_325); +x_327 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_326, x_315, x_325); lean_ctor_set(x_323, 1, x_327); return x_321; } @@ -7945,7 +8088,7 @@ lean_inc(x_330); lean_inc(x_329); lean_dec(x_323); lean_inc(x_328); -x_331 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_330, x_315, x_328); +x_331 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -7974,7 +8117,7 @@ if (lean_is_exclusive(x_333)) { x_337 = lean_box(0); } lean_inc(x_334); -x_338 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_336, x_315, x_334); +x_338 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_336, x_315, x_334); if (lean_is_scalar(x_337)) { x_339 = lean_alloc_ctor(0, 2, 0); } else { @@ -8007,7 +8150,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_343, x_315); +x_344 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_343, x_315); lean_dec(x_343); if (lean_obj_tag(x_344) == 0) { @@ -8026,7 +8169,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_350, x_315, x_349); +x_351 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_350, x_315, x_349); lean_ctor_set(x_347, 1, x_351); return x_345; } @@ -8040,7 +8183,7 @@ lean_inc(x_354); lean_inc(x_353); lean_dec(x_347); lean_inc(x_352); -x_355 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_354, x_315, x_352); +x_355 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8069,7 +8212,7 @@ if (lean_is_exclusive(x_357)) { x_361 = lean_box(0); } lean_inc(x_358); -x_362 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_360, x_315, x_358); +x_362 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_360, x_315, x_358); if (lean_is_scalar(x_361)) { x_363 = lean_alloc_ctor(0, 2, 0); } else { @@ -8152,7 +8295,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_468, x_1); +x_469 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_468, x_1); lean_dec(x_468); if (lean_obj_tag(x_469) == 0) { @@ -8170,7 +8313,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_474, x_1, x_472); +x_475 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -8185,7 +8328,7 @@ lean_inc(x_477); lean_inc(x_476); lean_dec(x_471); lean_inc(x_472); -x_478 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_477, x_1, x_472); +x_478 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8212,7 +8355,7 @@ else 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_481, x_1); +x_482 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_481, x_1); lean_dec(x_481); if (lean_obj_tag(x_482) == 0) { @@ -8230,7 +8373,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_487, x_1, x_485); +x_488 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -8245,7 +8388,7 @@ lean_inc(x_490); lean_inc(x_489); lean_dec(x_484); lean_inc(x_485); -x_491 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_490, x_1, x_485); +x_491 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8310,7 +8453,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_417, x_413); +x_418 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_417, x_413); lean_dec(x_417); if (lean_obj_tag(x_418) == 0) { @@ -8329,7 +8472,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_424, x_413, x_423); +x_425 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_424, x_413, x_423); lean_ctor_set(x_421, 1, x_425); return x_419; } @@ -8343,7 +8486,7 @@ lean_inc(x_428); lean_inc(x_427); lean_dec(x_421); lean_inc(x_426); -x_429 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_428, x_413, x_426); +x_429 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8372,7 +8515,7 @@ if (lean_is_exclusive(x_431)) { x_435 = lean_box(0); } lean_inc(x_432); -x_436 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_434, x_413, x_432); +x_436 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_434, x_413, x_432); if (lean_is_scalar(x_435)) { x_437 = lean_alloc_ctor(0, 2, 0); } else { @@ -8405,7 +8548,7 @@ else lean_object* x_441; lean_object* x_442; x_441 = lean_ctor_get(x_398, 1); lean_inc(x_441); -x_442 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_441, x_413); +x_442 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_441, x_413); lean_dec(x_441); if (lean_obj_tag(x_442) == 0) { @@ -8424,7 +8567,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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_448, x_413, x_447); +x_449 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_448, x_413, x_447); lean_ctor_set(x_445, 1, x_449); return x_443; } @@ -8438,7 +8581,7 @@ lean_inc(x_452); lean_inc(x_451); lean_dec(x_445); lean_inc(x_450); -x_453 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_452, x_413, x_450); +x_453 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_452, x_413, 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); @@ -8467,7 +8610,7 @@ if (lean_is_exclusive(x_455)) { x_459 = lean_box(0); } lean_inc(x_456); -x_460 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_458, x_413, x_456); +x_460 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_458, x_413, x_456); if (lean_is_scalar(x_459)) { x_461 = lean_alloc_ctor(0, 2, 0); } else { @@ -8563,7 +8706,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_570, x_1); +x_571 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_570, x_1); lean_dec(x_570); if (lean_obj_tag(x_571) == 0) { @@ -8581,7 +8724,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_576, x_1, x_574); +x_577 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -8596,7 +8739,7 @@ lean_inc(x_579); lean_inc(x_578); lean_dec(x_573); lean_inc(x_574); -x_580 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_579, x_1, x_574); +x_580 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8623,7 +8766,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_583, x_1); +x_584 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_583, x_1); lean_dec(x_583); if (lean_obj_tag(x_584) == 0) { @@ -8641,7 +8784,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_589, x_1, x_587); +x_590 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -8656,7 +8799,7 @@ lean_inc(x_592); lean_inc(x_591); lean_dec(x_586); lean_inc(x_587); -x_593 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_592, x_1, x_587); +x_593 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8721,7 +8864,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_519, x_515); +x_520 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_519, x_515); lean_dec(x_519); if (lean_obj_tag(x_520) == 0) { @@ -8740,7 +8883,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_526, x_515, x_525); +x_527 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_526, x_515, x_525); lean_ctor_set(x_523, 1, x_527); return x_521; } @@ -8754,7 +8897,7 @@ lean_inc(x_530); lean_inc(x_529); lean_dec(x_523); lean_inc(x_528); -x_531 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_530, x_515, x_528); +x_531 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8783,7 +8926,7 @@ if (lean_is_exclusive(x_533)) { x_537 = lean_box(0); } lean_inc(x_534); -x_538 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_536, x_515, x_534); +x_538 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_536, x_515, x_534); if (lean_is_scalar(x_537)) { x_539 = lean_alloc_ctor(0, 2, 0); } else { @@ -8816,7 +8959,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_543, x_515); +x_544 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_543, x_515); lean_dec(x_543); if (lean_obj_tag(x_544) == 0) { @@ -8835,7 +8978,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_550, x_515, x_549); +x_551 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_550, x_515, x_549); lean_ctor_set(x_547, 1, x_551); return x_545; } @@ -8849,7 +8992,7 @@ lean_inc(x_554); lean_inc(x_553); lean_dec(x_547); lean_inc(x_552); -x_555 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_554, x_515, x_552); +x_555 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -8878,7 +9021,7 @@ if (lean_is_exclusive(x_557)) { x_561 = lean_box(0); } lean_inc(x_558); -x_562 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_560, x_515, x_558); +x_562 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_560, x_515, x_558); if (lean_is_scalar(x_561)) { x_563 = lean_alloc_ctor(0, 2, 0); } else { @@ -8961,7 +9104,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_668, x_1); +x_669 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_668, x_1); lean_dec(x_668); if (lean_obj_tag(x_669) == 0) { @@ -8979,7 +9122,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_674, x_1, x_672); +x_675 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -8994,7 +9137,7 @@ lean_inc(x_677); lean_inc(x_676); lean_dec(x_671); lean_inc(x_672); -x_678 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_677, x_1, x_672); +x_678 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9021,7 +9164,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_681, x_1); +x_682 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_681, x_1); lean_dec(x_681); if (lean_obj_tag(x_682) == 0) { @@ -9039,7 +9182,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_687, x_1, x_685); +x_688 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -9054,7 +9197,7 @@ lean_inc(x_690); lean_inc(x_689); lean_dec(x_684); lean_inc(x_685); -x_691 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_690, x_1, x_685); +x_691 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9119,7 +9262,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_617, x_613); +x_618 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_617, x_613); lean_dec(x_617); if (lean_obj_tag(x_618) == 0) { @@ -9138,7 +9281,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_624, x_613, x_623); +x_625 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_624, x_613, x_623); lean_ctor_set(x_621, 1, x_625); return x_619; } @@ -9152,7 +9295,7 @@ lean_inc(x_628); lean_inc(x_627); lean_dec(x_621); lean_inc(x_626); -x_629 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_628, x_613, x_626); +x_629 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9181,7 +9324,7 @@ if (lean_is_exclusive(x_631)) { x_635 = lean_box(0); } lean_inc(x_632); -x_636 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_634, x_613, x_632); +x_636 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_634, x_613, x_632); if (lean_is_scalar(x_635)) { x_637 = lean_alloc_ctor(0, 2, 0); } else { @@ -9214,7 +9357,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_641, x_613); +x_642 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_641, x_613); lean_dec(x_641); if (lean_obj_tag(x_642) == 0) { @@ -9233,7 +9376,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_648, x_613, x_647); +x_649 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_648, x_613, x_647); lean_ctor_set(x_645, 1, x_649); return x_643; } @@ -9247,7 +9390,7 @@ lean_inc(x_652); lean_inc(x_651); lean_dec(x_645); lean_inc(x_650); -x_653 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_652, x_613, x_650); +x_653 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9276,7 +9419,7 @@ if (lean_is_exclusive(x_655)) { x_659 = lean_box(0); } lean_inc(x_656); -x_660 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_658, x_613, x_656); +x_660 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_658, x_613, x_656); if (lean_is_scalar(x_659)) { x_661 = lean_alloc_ctor(0, 2, 0); } else { @@ -9359,7 +9502,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_766, x_1); +x_767 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_766, x_1); lean_dec(x_766); if (lean_obj_tag(x_767) == 0) { @@ -9377,7 +9520,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_772, x_1, x_770); +x_773 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -9392,7 +9535,7 @@ lean_inc(x_775); lean_inc(x_774); lean_dec(x_769); lean_inc(x_770); -x_776 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_775, x_1, x_770); +x_776 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9419,7 +9562,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_779, x_1); +x_780 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_779, x_1); lean_dec(x_779); if (lean_obj_tag(x_780) == 0) { @@ -9437,7 +9580,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_785, x_1, x_783); +x_786 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -9452,7 +9595,7 @@ lean_inc(x_788); lean_inc(x_787); lean_dec(x_782); lean_inc(x_783); -x_789 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_788, x_1, x_783); +x_789 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9517,7 +9660,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_715, x_711); +x_716 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_715, x_711); lean_dec(x_715); if (lean_obj_tag(x_716) == 0) { @@ -9536,7 +9679,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_722, x_711, x_721); +x_723 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_722, x_711, x_721); lean_ctor_set(x_719, 1, x_723); return x_717; } @@ -9550,7 +9693,7 @@ lean_inc(x_726); lean_inc(x_725); lean_dec(x_719); lean_inc(x_724); -x_727 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_726, x_711, x_724); +x_727 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9579,7 +9722,7 @@ if (lean_is_exclusive(x_729)) { x_733 = lean_box(0); } lean_inc(x_730); -x_734 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_732, x_711, x_730); +x_734 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_732, x_711, x_730); if (lean_is_scalar(x_733)) { x_735 = lean_alloc_ctor(0, 2, 0); } else { @@ -9612,7 +9755,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_739, x_711); +x_740 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_739, x_711); lean_dec(x_739); if (lean_obj_tag(x_740) == 0) { @@ -9631,7 +9774,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_746, x_711, x_745); +x_747 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_746, x_711, x_745); lean_ctor_set(x_743, 1, x_747); return x_741; } @@ -9645,7 +9788,7 @@ lean_inc(x_750); lean_inc(x_749); lean_dec(x_743); lean_inc(x_748); -x_751 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_750, x_711, x_748); +x_751 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9674,7 +9817,7 @@ if (lean_is_exclusive(x_753)) { x_757 = lean_box(0); } lean_inc(x_754); -x_758 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_756, x_711, x_754); +x_758 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_756, x_711, x_754); if (lean_is_scalar(x_757)) { x_759 = lean_alloc_ctor(0, 2, 0); } else { @@ -9757,7 +9900,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_864, x_1); +x_865 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_864, x_1); lean_dec(x_864); if (lean_obj_tag(x_865) == 0) { @@ -9775,7 +9918,7 @@ if (x_869 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_870, x_1, x_868); +x_871 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -9790,7 +9933,7 @@ lean_inc(x_873); lean_inc(x_872); lean_dec(x_867); lean_inc(x_868); -x_874 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_873, x_1, x_868); +x_874 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9817,7 +9960,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_877, x_1); +x_878 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_877, x_1); lean_dec(x_877); if (lean_obj_tag(x_878) == 0) { @@ -9835,7 +9978,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_883, x_1, x_881); +x_884 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -9850,7 +9993,7 @@ lean_inc(x_886); lean_inc(x_885); lean_dec(x_880); lean_inc(x_881); -x_887 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_886, x_1, x_881); +x_887 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9915,7 +10058,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_813, x_809); +x_814 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_813, x_809); lean_dec(x_813); if (lean_obj_tag(x_814) == 0) { @@ -9934,7 +10077,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_820, x_809, x_819); +x_821 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_820, x_809, x_819); lean_ctor_set(x_817, 1, x_821); return x_815; } @@ -9948,7 +10091,7 @@ lean_inc(x_824); lean_inc(x_823); lean_dec(x_817); lean_inc(x_822); -x_825 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_824, x_809, x_822); +x_825 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -9977,7 +10120,7 @@ if (lean_is_exclusive(x_827)) { x_831 = lean_box(0); } lean_inc(x_828); -x_832 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_830, x_809, x_828); +x_832 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_830, x_809, x_828); if (lean_is_scalar(x_831)) { x_833 = lean_alloc_ctor(0, 2, 0); } else { @@ -10010,7 +10153,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_837, x_809); +x_838 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_837, x_809); lean_dec(x_837); if (lean_obj_tag(x_838) == 0) { @@ -10029,7 +10172,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_844, x_809, x_843); +x_845 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_844, x_809, x_843); lean_ctor_set(x_841, 1, x_845); return x_839; } @@ -10043,7 +10186,7 @@ lean_inc(x_848); lean_inc(x_847); lean_dec(x_841); lean_inc(x_846); -x_849 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_848, x_809, x_846); +x_849 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10072,7 +10215,7 @@ if (lean_is_exclusive(x_851)) { x_855 = lean_box(0); } lean_inc(x_852); -x_856 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_854, x_809, x_852); +x_856 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_854, x_809, x_852); if (lean_is_scalar(x_855)) { x_857 = lean_alloc_ctor(0, 2, 0); } else { @@ -10155,7 +10298,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_962, x_1); +x_963 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_962, x_1); lean_dec(x_962); if (lean_obj_tag(x_963) == 0) { @@ -10173,7 +10316,7 @@ if (x_967 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_968, x_1, x_966); +x_969 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -10188,7 +10331,7 @@ lean_inc(x_971); lean_inc(x_970); lean_dec(x_965); lean_inc(x_966); -x_972 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_971, x_1, x_966); +x_972 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10215,7 +10358,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_975, x_1); +x_976 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_975, x_1); lean_dec(x_975); if (lean_obj_tag(x_976) == 0) { @@ -10233,7 +10376,7 @@ if (x_980 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_981, x_1, x_979); +x_982 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -10248,7 +10391,7 @@ lean_inc(x_984); lean_inc(x_983); lean_dec(x_978); lean_inc(x_979); -x_985 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_984, x_1, x_979); +x_985 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10313,7 +10456,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_911, x_907); +x_912 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_911, x_907); lean_dec(x_911); if (lean_obj_tag(x_912) == 0) { @@ -10332,7 +10475,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_918, x_907, x_917); +x_919 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_918, x_907, x_917); lean_ctor_set(x_915, 1, x_919); return x_913; } @@ -10346,7 +10489,7 @@ lean_inc(x_922); lean_inc(x_921); lean_dec(x_915); lean_inc(x_920); -x_923 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_922, x_907, x_920); +x_923 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10375,7 +10518,7 @@ if (lean_is_exclusive(x_925)) { x_929 = lean_box(0); } lean_inc(x_926); -x_930 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_928, x_907, x_926); +x_930 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_928, x_907, x_926); if (lean_is_scalar(x_929)) { x_931 = lean_alloc_ctor(0, 2, 0); } else { @@ -10408,7 +10551,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_935, x_907); +x_936 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_935, x_907); lean_dec(x_935); if (lean_obj_tag(x_936) == 0) { @@ -10427,7 +10570,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_942, x_907, x_941); +x_943 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_942, x_907, x_941); lean_ctor_set(x_939, 1, x_943); return x_937; } @@ -10441,7 +10584,7 @@ lean_inc(x_946); lean_inc(x_945); lean_dec(x_939); lean_inc(x_944); -x_947 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_946, x_907, x_944); +x_947 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10470,7 +10613,7 @@ if (lean_is_exclusive(x_949)) { x_953 = lean_box(0); } lean_inc(x_950); -x_954 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_952, x_907, x_950); +x_954 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_952, x_907, x_950); if (lean_is_scalar(x_953)) { x_955 = lean_alloc_ctor(0, 2, 0); } else { @@ -10553,7 +10696,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1060, x_1); +x_1061 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1060, x_1); lean_dec(x_1060); if (lean_obj_tag(x_1061) == 0) { @@ -10571,7 +10714,7 @@ if (x_1065 == 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1066, x_1, x_1064); +x_1067 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -10586,7 +10729,7 @@ lean_inc(x_1069); lean_inc(x_1068); lean_dec(x_1063); lean_inc(x_1064); -x_1070 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1069, x_1, x_1064); +x_1070 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10613,7 +10756,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1073, x_1); +x_1074 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1073, x_1); lean_dec(x_1073); if (lean_obj_tag(x_1074) == 0) { @@ -10631,7 +10774,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1079, x_1, x_1077); +x_1080 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; @@ -10646,7 +10789,7 @@ lean_inc(x_1082); lean_inc(x_1081); lean_dec(x_1076); lean_inc(x_1077); -x_1083 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1082, x_1, x_1077); +x_1083 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10711,7 +10854,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1009, x_1005); +x_1010 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1009, x_1005); lean_dec(x_1009); if (lean_obj_tag(x_1010) == 0) { @@ -10730,7 +10873,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1016, x_1005, x_1015); +x_1017 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1016, x_1005, x_1015); lean_ctor_set(x_1013, 1, x_1017); return x_1011; } @@ -10744,7 +10887,7 @@ lean_inc(x_1020); lean_inc(x_1019); lean_dec(x_1013); lean_inc(x_1018); -x_1021 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1020, x_1005, x_1018); +x_1021 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10773,7 +10916,7 @@ if (lean_is_exclusive(x_1023)) { x_1027 = lean_box(0); } lean_inc(x_1024); -x_1028 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1026, x_1005, x_1024); +x_1028 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1026, x_1005, x_1024); if (lean_is_scalar(x_1027)) { x_1029 = lean_alloc_ctor(0, 2, 0); } else { @@ -10806,7 +10949,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_1033, x_1005); +x_1034 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_1033, x_1005); lean_dec(x_1033); if (lean_obj_tag(x_1034) == 0) { @@ -10825,7 +10968,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1040, x_1005, x_1039); +x_1041 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1040, x_1005, x_1039); lean_ctor_set(x_1037, 1, x_1041); return x_1035; } @@ -10839,7 +10982,7 @@ lean_inc(x_1044); lean_inc(x_1043); lean_dec(x_1037); lean_inc(x_1042); -x_1045 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1044, x_1005, x_1042); +x_1045 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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); @@ -10868,7 +11011,7 @@ if (lean_is_exclusive(x_1047)) { x_1051 = lean_box(0); } lean_inc(x_1048); -x_1052 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_1050, x_1005, x_1048); +x_1052 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_1050, x_1005, x_1048); if (lean_is_scalar(x_1051)) { x_1053 = lean_alloc_ctor(0, 2, 0); } else { @@ -10946,7 +11089,7 @@ x_37 = lean_ctor_get(x_1, 0); lean_inc(x_37); x_48 = lean_ctor_get(x_2, 1); lean_inc(x_48); -x_49 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_48, x_1); +x_49 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_48, x_1); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; lean_object* x_51; @@ -10997,7 +11140,7 @@ goto block_98; else { lean_object* x_101; -x_101 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_48, x_56); +x_101 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_48, x_56); lean_dec(x_48); if (lean_obj_tag(x_101) == 0) { @@ -11015,7 +11158,7 @@ if (x_105 == 0) lean_object* x_106; lean_object* x_107; x_106 = lean_ctor_get(x_103, 1); lean_inc(x_104); -x_107 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_106, x_56, x_104); +x_107 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_106, x_56, x_104); lean_ctor_set(x_103, 1, x_107); x_57 = x_104; x_58 = x_103; @@ -11030,7 +11173,7 @@ lean_inc(x_109); lean_inc(x_108); lean_dec(x_103); lean_inc(x_104); -x_110 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_109, x_56, x_104); +x_110 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_109, x_56, x_104); x_111 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_111, 0, x_108); lean_ctor_set(x_111, 1, x_110); @@ -11055,7 +11198,7 @@ goto block_98; else { lean_object* x_113; -x_113 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_48, x_56); +x_113 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_48, x_56); lean_dec(x_48); if (lean_obj_tag(x_113) == 0) { @@ -11073,7 +11216,7 @@ if (x_117 == 0) lean_object* x_118; lean_object* x_119; x_118 = lean_ctor_get(x_115, 1); lean_inc(x_116); -x_119 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_118, x_56, x_116); +x_119 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_118, x_56, x_116); lean_ctor_set(x_115, 1, x_119); x_57 = x_116; x_58 = x_115; @@ -11088,7 +11231,7 @@ lean_inc(x_121); lean_inc(x_120); lean_dec(x_115); lean_inc(x_116); -x_122 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_121, x_56, x_116); +x_122 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_121, x_56, x_116); x_123 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_123, 0, x_120); lean_ctor_set(x_123, 1, x_122); @@ -11301,7 +11444,7 @@ goto block_47; else { lean_object* x_128; -x_128 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_48, x_125); +x_128 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_48, x_125); lean_dec(x_48); if (lean_obj_tag(x_128) == 0) { @@ -11319,7 +11462,7 @@ 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___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_133, x_125, x_131); +x_134 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_133, x_125, x_131); lean_ctor_set(x_130, 1, x_134); x_38 = x_131; x_39 = x_130; @@ -11334,7 +11477,7 @@ lean_inc(x_136); lean_inc(x_135); lean_dec(x_130); lean_inc(x_131); -x_137 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_136, x_125, x_131); +x_137 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_136, x_125, 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); @@ -11359,7 +11502,7 @@ goto block_47; else { lean_object* x_140; -x_140 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_48, x_125); +x_140 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_48, x_125); lean_dec(x_48); if (lean_obj_tag(x_140) == 0) { @@ -11377,7 +11520,7 @@ if (x_144 == 0) lean_object* x_145; lean_object* x_146; x_145 = lean_ctor_get(x_142, 1); lean_inc(x_143); -x_146 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_145, x_125, x_143); +x_146 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_145, x_125, x_143); lean_ctor_set(x_142, 1, x_146); x_38 = x_143; x_39 = x_142; @@ -11392,7 +11535,7 @@ lean_inc(x_148); lean_inc(x_147); lean_dec(x_142); lean_inc(x_143); -x_149 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_148, x_125, x_143); +x_149 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_148, x_125, x_143); x_150 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_150, 0, x_147); lean_ctor_set(x_150, 1, x_149); @@ -11600,7 +11743,7 @@ else 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_235, x_188); +x_236 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_235, x_188); lean_dec(x_235); if (lean_obj_tag(x_236) == 0) { @@ -11618,7 +11761,7 @@ if (x_240 == 0) 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_241, x_188, x_239); +x_242 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_241, x_188, x_239); lean_ctor_set(x_238, 1, x_242); x_190 = x_239; x_191 = x_238; @@ -11633,7 +11776,7 @@ lean_inc(x_244); lean_inc(x_243); lean_dec(x_238); lean_inc(x_239); -x_245 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_244, x_188, x_239); +x_245 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_244, x_188, 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); @@ -11660,7 +11803,7 @@ else lean_object* x_248; lean_object* x_249; x_248 = lean_ctor_get(x_2, 1); lean_inc(x_248); -x_249 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_248, x_188); +x_249 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_248, x_188); lean_dec(x_248); if (lean_obj_tag(x_249) == 0) { @@ -11678,7 +11821,7 @@ if (x_253 == 0) lean_object* x_254; lean_object* x_255; x_254 = lean_ctor_get(x_251, 1); lean_inc(x_252); -x_255 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_254, x_188, x_252); +x_255 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_254, x_188, x_252); lean_ctor_set(x_251, 1, x_255); x_190 = x_252; x_191 = x_251; @@ -11693,7 +11836,7 @@ lean_inc(x_257); lean_inc(x_256); lean_dec(x_251); lean_inc(x_252); -x_258 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_257, x_188, x_252); +x_258 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_257, x_188, x_252); x_259 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_259, 0, x_256); lean_ctor_set(x_259, 1, x_258); @@ -11733,7 +11876,7 @@ else lean_object* x_206; lean_object* x_207; x_206 = lean_ctor_get(x_191, 1); lean_inc(x_206); -x_207 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_206, x_189); +x_207 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_206, x_189); lean_dec(x_206); if (lean_obj_tag(x_207) == 0) { @@ -11751,7 +11894,7 @@ if (x_211 == 0) lean_object* x_212; lean_object* x_213; x_212 = lean_ctor_get(x_209, 1); lean_inc(x_210); -x_213 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_212, x_189, x_210); +x_213 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_212, x_189, x_210); lean_ctor_set(x_209, 1, x_213); x_192 = x_210; x_193 = x_209; @@ -11766,7 +11909,7 @@ lean_inc(x_215); lean_inc(x_214); lean_dec(x_209); lean_inc(x_210); -x_216 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_215, x_189, x_210); +x_216 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_215, x_189, x_210); x_217 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_217, 0, x_214); lean_ctor_set(x_217, 1, x_216); @@ -11793,7 +11936,7 @@ else lean_object* x_219; lean_object* x_220; x_219 = lean_ctor_get(x_191, 1); lean_inc(x_219); -x_220 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_219, x_189); +x_220 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_219, x_189); lean_dec(x_219); if (lean_obj_tag(x_220) == 0) { @@ -11811,7 +11954,7 @@ if (x_224 == 0) lean_object* x_225; lean_object* x_226; x_225 = lean_ctor_get(x_222, 1); lean_inc(x_223); -x_226 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_225, x_189, x_223); +x_226 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_225, x_189, x_223); lean_ctor_set(x_222, 1, x_226); x_192 = x_223; x_193 = x_222; @@ -11826,7 +11969,7 @@ lean_inc(x_228); lean_inc(x_227); lean_dec(x_222); lean_inc(x_223); -x_229 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_228, x_189, x_223); +x_229 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_228, x_189, x_223); x_230 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_230, 0, x_227); lean_ctor_set(x_230, 1, x_229); @@ -11865,11 +12008,11 @@ lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_dec(x_192); lean_dec(x_190); lean_dec(x_1); -x_197 = l_Lean_Expr_constName___closed__1; -x_198 = lean_unsigned_to_nat(471u); +x_197 = l_Lean_Expr_constName_x21___closed__1; +x_198 = lean_unsigned_to_nat(475u); x_199 = lean_unsigned_to_nat(18u); x_200 = l_Lean_Expr_updateLambda_x21___closed__1; -x_201 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_197, x_198, x_199, x_200); +x_201 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_197, x_198, x_199, x_200); x_202 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_202, 0, x_201); lean_ctor_set(x_202, 1, x_193); @@ -11901,7 +12044,7 @@ else lean_object* x_308; lean_object* x_309; x_308 = lean_ctor_get(x_2, 1); lean_inc(x_308); -x_309 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_308, x_261); +x_309 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_308, x_261); lean_dec(x_308); if (lean_obj_tag(x_309) == 0) { @@ -11919,7 +12062,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_314, x_261, x_312); +x_315 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_314, x_261, x_312); lean_ctor_set(x_311, 1, x_315); x_263 = x_312; x_264 = x_311; @@ -11934,7 +12077,7 @@ lean_inc(x_317); lean_inc(x_316); lean_dec(x_311); lean_inc(x_312); -x_318 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_317, x_261, x_312); +x_318 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_317, x_261, 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); @@ -11961,7 +12104,7 @@ else lean_object* x_321; lean_object* x_322; x_321 = lean_ctor_get(x_2, 1); lean_inc(x_321); -x_322 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_321, x_261); +x_322 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_321, x_261); lean_dec(x_321); if (lean_obj_tag(x_322) == 0) { @@ -11979,7 +12122,7 @@ if (x_326 == 0) lean_object* x_327; lean_object* x_328; x_327 = lean_ctor_get(x_324, 1); lean_inc(x_325); -x_328 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_327, x_261, x_325); +x_328 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_327, x_261, x_325); lean_ctor_set(x_324, 1, x_328); x_263 = x_325; x_264 = x_324; @@ -11994,7 +12137,7 @@ lean_inc(x_330); lean_inc(x_329); lean_dec(x_324); lean_inc(x_325); -x_331 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_330, x_261, x_325); +x_331 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_330, x_261, x_325); x_332 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_332, 0, x_329); lean_ctor_set(x_332, 1, x_331); @@ -12034,7 +12177,7 @@ else lean_object* x_279; lean_object* x_280; x_279 = lean_ctor_get(x_264, 1); lean_inc(x_279); -x_280 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_279, x_262); +x_280 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_279, x_262); lean_dec(x_279); if (lean_obj_tag(x_280) == 0) { @@ -12052,7 +12195,7 @@ if (x_284 == 0) lean_object* x_285; lean_object* x_286; x_285 = lean_ctor_get(x_282, 1); lean_inc(x_283); -x_286 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_285, x_262, x_283); +x_286 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_285, x_262, x_283); lean_ctor_set(x_282, 1, x_286); x_265 = x_283; x_266 = x_282; @@ -12067,7 +12210,7 @@ lean_inc(x_288); lean_inc(x_287); lean_dec(x_282); lean_inc(x_283); -x_289 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_288, x_262, x_283); +x_289 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_288, x_262, x_283); x_290 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_290, 0, x_287); lean_ctor_set(x_290, 1, x_289); @@ -12094,7 +12237,7 @@ else lean_object* x_292; lean_object* x_293; x_292 = lean_ctor_get(x_264, 1); lean_inc(x_292); -x_293 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_292, x_262); +x_293 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_292, x_262); lean_dec(x_292); if (lean_obj_tag(x_293) == 0) { @@ -12112,7 +12255,7 @@ if (x_297 == 0) lean_object* x_298; lean_object* x_299; x_298 = lean_ctor_get(x_295, 1); lean_inc(x_296); -x_299 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_298, x_262, x_296); +x_299 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_298, x_262, x_296); lean_ctor_set(x_295, 1, x_299); x_265 = x_296; x_266 = x_295; @@ -12127,7 +12270,7 @@ lean_inc(x_301); lean_inc(x_300); lean_dec(x_295); lean_inc(x_296); -x_302 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_301, x_262, x_296); +x_302 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_301, x_262, x_296); x_303 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_303, 0, x_300); lean_ctor_set(x_303, 1, x_302); @@ -12166,11 +12309,11 @@ lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_dec(x_265); lean_dec(x_263); lean_dec(x_1); -x_270 = l_Lean_Expr_constName___closed__1; -x_271 = lean_unsigned_to_nat(457u); +x_270 = l_Lean_Expr_constName_x21___closed__1; +x_271 = lean_unsigned_to_nat(461u); x_272 = lean_unsigned_to_nat(22u); x_273 = l_Lean_Expr_updateForall_x21___closed__1; -x_274 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_270, x_271, x_272, x_273); +x_274 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_270, x_271, x_272, x_273); x_275 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_275, 0, x_274); lean_ctor_set(x_275, 1, x_266); @@ -12204,7 +12347,7 @@ else lean_object* x_412; lean_object* x_413; x_412 = lean_ctor_get(x_2, 1); lean_inc(x_412); -x_413 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_412, x_334); +x_413 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_412, x_334); lean_dec(x_412); if (lean_obj_tag(x_413) == 0) { @@ -12222,7 +12365,7 @@ if (x_417 == 0) lean_object* x_418; lean_object* x_419; x_418 = lean_ctor_get(x_415, 1); lean_inc(x_416); -x_419 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_418, x_334, x_416); +x_419 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_418, x_334, x_416); lean_ctor_set(x_415, 1, x_419); x_337 = x_416; x_338 = x_415; @@ -12237,7 +12380,7 @@ lean_inc(x_421); lean_inc(x_420); lean_dec(x_415); lean_inc(x_416); -x_422 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_421, x_334, x_416); +x_422 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_421, x_334, x_416); x_423 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_423, 0, x_420); lean_ctor_set(x_423, 1, x_422); @@ -12264,7 +12407,7 @@ else lean_object* x_425; lean_object* x_426; x_425 = lean_ctor_get(x_2, 1); lean_inc(x_425); -x_426 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_425, x_334); +x_426 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_425, x_334); lean_dec(x_425); if (lean_obj_tag(x_426) == 0) { @@ -12282,7 +12425,7 @@ if (x_430 == 0) lean_object* x_431; lean_object* x_432; x_431 = lean_ctor_get(x_428, 1); lean_inc(x_429); -x_432 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_431, x_334, x_429); +x_432 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_431, x_334, x_429); lean_ctor_set(x_428, 1, x_432); x_337 = x_429; x_338 = x_428; @@ -12297,7 +12440,7 @@ lean_inc(x_434); lean_inc(x_433); lean_dec(x_428); lean_inc(x_429); -x_435 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_434, x_334, x_429); +x_435 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_434, x_334, x_429); x_436 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_436, 0, x_433); lean_ctor_set(x_436, 1, x_435); @@ -12337,7 +12480,7 @@ else lean_object* x_383; lean_object* x_384; x_383 = lean_ctor_get(x_338, 1); lean_inc(x_383); -x_384 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_383, x_335); +x_384 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_383, x_335); lean_dec(x_383); if (lean_obj_tag(x_384) == 0) { @@ -12355,7 +12498,7 @@ 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_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_389, x_335, x_387); +x_390 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_389, x_335, x_387); lean_ctor_set(x_386, 1, x_390); x_339 = x_387; x_340 = x_386; @@ -12370,7 +12513,7 @@ lean_inc(x_392); lean_inc(x_391); lean_dec(x_386); lean_inc(x_387); -x_393 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_392, x_335, x_387); +x_393 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_392, x_335, 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); @@ -12397,7 +12540,7 @@ else lean_object* x_396; lean_object* x_397; x_396 = lean_ctor_get(x_338, 1); lean_inc(x_396); -x_397 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_396, x_335); +x_397 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_396, x_335); lean_dec(x_396); if (lean_obj_tag(x_397) == 0) { @@ -12415,7 +12558,7 @@ if (x_401 == 0) lean_object* x_402; lean_object* x_403; x_402 = lean_ctor_get(x_399, 1); lean_inc(x_400); -x_403 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_402, x_335, x_400); +x_403 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_402, x_335, x_400); lean_ctor_set(x_399, 1, x_403); x_339 = x_400; x_340 = x_399; @@ -12430,7 +12573,7 @@ lean_inc(x_405); lean_inc(x_404); lean_dec(x_399); lean_inc(x_400); -x_406 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_405, x_335, x_400); +x_406 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_405, x_335, x_400); x_407 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_407, 0, x_404); lean_ctor_set(x_407, 1, x_406); @@ -12470,7 +12613,7 @@ else lean_object* x_354; lean_object* x_355; x_354 = lean_ctor_get(x_340, 1); lean_inc(x_354); -x_355 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_354, x_336); +x_355 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_354, x_336); lean_dec(x_354); if (lean_obj_tag(x_355) == 0) { @@ -12488,7 +12631,7 @@ if (x_359 == 0) lean_object* x_360; lean_object* x_361; x_360 = lean_ctor_get(x_357, 1); lean_inc(x_358); -x_361 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_360, x_336, x_358); +x_361 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_360, x_336, x_358); lean_ctor_set(x_357, 1, x_361); x_341 = x_358; x_342 = x_357; @@ -12503,7 +12646,7 @@ lean_inc(x_363); lean_inc(x_362); lean_dec(x_357); lean_inc(x_358); -x_364 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_363, x_336, x_358); +x_364 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_363, x_336, x_358); x_365 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_365, 0, x_362); lean_ctor_set(x_365, 1, x_364); @@ -12530,7 +12673,7 @@ else lean_object* x_367; lean_object* x_368; x_367 = lean_ctor_get(x_340, 1); lean_inc(x_367); -x_368 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_367, x_336); +x_368 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_367, x_336); lean_dec(x_367); if (lean_obj_tag(x_368) == 0) { @@ -12548,7 +12691,7 @@ if (x_372 == 0) lean_object* x_373; lean_object* x_374; x_373 = lean_ctor_get(x_370, 1); lean_inc(x_371); -x_374 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_373, x_336, x_371); +x_374 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_373, x_336, x_371); lean_ctor_set(x_370, 1, x_374); x_341 = x_371; x_342 = x_370; @@ -12563,7 +12706,7 @@ lean_inc(x_376); lean_inc(x_375); lean_dec(x_370); lean_inc(x_371); -x_377 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_376, x_336, x_371); +x_377 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_376, x_336, x_371); x_378 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_378, 0, x_375); lean_ctor_set(x_378, 1, x_377); @@ -12602,11 +12745,11 @@ lean_dec(x_341); lean_dec(x_339); lean_dec(x_337); lean_dec(x_1); -x_345 = l_Lean_Expr_constName___closed__1; -x_346 = lean_unsigned_to_nat(480u); +x_345 = l_Lean_Expr_constName_x21___closed__1; +x_346 = lean_unsigned_to_nat(484u); x_347 = lean_unsigned_to_nat(18u); -x_348 = l_Lean_Expr_letName___closed__1; -x_349 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_345, x_346, x_347, x_348); +x_348 = l_Lean_Expr_letName_x21___closed__1; +x_349 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_345, x_346, x_347, x_348); x_350 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_350, 0, x_349); lean_ctor_set(x_350, 1, x_342); @@ -12637,7 +12780,7 @@ else lean_object* x_441; lean_object* x_442; x_441 = lean_ctor_get(x_2, 1); lean_inc(x_441); -x_442 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_441, x_438); +x_442 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_441, x_438); lean_dec(x_441); if (lean_obj_tag(x_442) == 0) { @@ -12655,7 +12798,7 @@ if (x_446 == 0) lean_object* x_447; lean_object* x_448; x_447 = lean_ctor_get(x_444, 1); lean_inc(x_445); -x_448 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_447, x_438, x_445); +x_448 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_447, x_438, x_445); lean_ctor_set(x_444, 1, x_448); x_15 = x_445; x_16 = x_444; @@ -12670,7 +12813,7 @@ lean_inc(x_450); lean_inc(x_449); lean_dec(x_444); lean_inc(x_445); -x_451 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_450, x_438, x_445); +x_451 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_450, x_438, x_445); x_452 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_452, 0, x_449); lean_ctor_set(x_452, 1, x_451); @@ -12697,7 +12840,7 @@ else lean_object* x_454; lean_object* x_455; x_454 = lean_ctor_get(x_2, 1); lean_inc(x_454); -x_455 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_454, x_438); +x_455 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_454, x_438); lean_dec(x_454); if (lean_obj_tag(x_455) == 0) { @@ -12715,7 +12858,7 @@ if (x_459 == 0) lean_object* x_460; lean_object* x_461; x_460 = lean_ctor_get(x_457, 1); lean_inc(x_458); -x_461 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_460, x_438, x_458); +x_461 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_460, x_438, x_458); lean_ctor_set(x_457, 1, x_461); x_15 = x_458; x_16 = x_457; @@ -12730,7 +12873,7 @@ lean_inc(x_463); lean_inc(x_462); lean_dec(x_457); lean_inc(x_458); -x_464 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_463, x_438, x_458); +x_464 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_463, x_438, x_458); x_465 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_465, 0, x_462); lean_ctor_set(x_465, 1, x_464); @@ -12773,7 +12916,7 @@ else lean_object* x_470; lean_object* x_471; x_470 = lean_ctor_get(x_2, 1); lean_inc(x_470); -x_471 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_470, x_467); +x_471 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_470, x_467); lean_dec(x_470); if (lean_obj_tag(x_471) == 0) { @@ -12791,7 +12934,7 @@ if (x_475 == 0) lean_object* x_476; lean_object* x_477; x_476 = lean_ctor_get(x_473, 1); lean_inc(x_474); -x_477 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_476, x_467, x_474); +x_477 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_476, x_467, x_474); lean_ctor_set(x_473, 1, x_477); x_26 = x_474; x_27 = x_473; @@ -12806,7 +12949,7 @@ lean_inc(x_479); lean_inc(x_478); lean_dec(x_473); lean_inc(x_474); -x_480 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_479, x_467, x_474); +x_480 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_479, x_467, x_474); x_481 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_481, 0, x_478); lean_ctor_set(x_481, 1, x_480); @@ -12833,7 +12976,7 @@ else lean_object* x_483; lean_object* x_484; x_483 = lean_ctor_get(x_2, 1); lean_inc(x_483); -x_484 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__1(x_483, x_467); +x_484 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_483, x_467); lean_dec(x_483); if (lean_obj_tag(x_484) == 0) { @@ -12851,7 +12994,7 @@ if (x_488 == 0) lean_object* x_489; lean_object* x_490; x_489 = lean_ctor_get(x_486, 1); lean_inc(x_487); -x_490 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_489, x_467, x_487); +x_490 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_489, x_467, x_487); lean_ctor_set(x_486, 1, x_490); x_26 = x_487; x_27 = x_486; @@ -12866,7 +13009,7 @@ lean_inc(x_492); lean_inc(x_491); lean_dec(x_486); lean_inc(x_487); -x_493 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_492, x_467, x_487); +x_493 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_492, x_467, x_487); x_494 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_494, 0, x_491); lean_ctor_set(x_494, 1, x_493); @@ -12906,7 +13049,7 @@ if (x_5 == 0) lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_4, 1); lean_inc(x_3); -x_7 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_6, x_1, x_3); +x_7 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_6, x_1, x_3); lean_ctor_set(x_4, 1, x_7); x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_3); @@ -12922,7 +13065,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_4); lean_inc(x_3); -x_11 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_checkCache___spec__3(x_10, x_1, x_3); +x_11 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_10, x_1, x_3); x_12 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_12, 0, x_9); lean_ctor_set(x_12, 1, x_11); @@ -12948,11 +13091,11 @@ else lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_15); lean_dec(x_1); -x_19 = l_Lean_Expr_constName___closed__1; -x_20 = lean_unsigned_to_nat(438u); +x_19 = l_Lean_Expr_constName_x21___closed__1; +x_20 = lean_unsigned_to_nat(442u); x_21 = lean_unsigned_to_nat(15u); x_22 = l_Lean_Expr_updateMData_x21___closed__1; -x_23 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_19, x_20, x_21, x_22); +x_23 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_19, x_20, x_21, 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_16); @@ -12975,11 +13118,11 @@ 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_dec(x_26); lean_dec(x_1); -x_30 = l_Lean_Expr_constName___closed__1; -x_31 = lean_unsigned_to_nat(443u); +x_30 = l_Lean_Expr_constName_x21___closed__1; +x_31 = lean_unsigned_to_nat(447u); x_32 = lean_unsigned_to_nat(16u); x_33 = l_Lean_Expr_updateProj_x21___closed__1; -x_34 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_30, x_31, x_32, x_33); +x_34 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_30, x_31, x_32, x_33); x_35 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_27); @@ -13107,6 +13250,20840 @@ lean_dec(x_2); return x_6; } } +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_Lean_LocalDecl_name(x_1); +x_9 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_10 = lean_name_dec_eq(x_8, x_9); +lean_dec(x_9); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_3, x_11); +lean_dec(x_3); +x_3 = x_12; +goto _start; +} +else +{ +lean_dec(x_3); +return x_10; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_Lean_Expr_fvarId_x21(x_7); +lean_dec(x_7); +x_9 = lean_name_dec_eq(x_8, x_1); +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_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_dec(x_3); +return x_9; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__9(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__9(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__10(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__11(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__8(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_Lean_MetavarContext_mkLambda___spec__9(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__12(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__8(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__15(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__15(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__16(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__17(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__14(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_Lean_MetavarContext_mkLambda___spec__15(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__18(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__14(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__22(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__21(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__21(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__22(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__23(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__20(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_Lean_MetavarContext_mkLambda___spec__21(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__24(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__20(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__27(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__27(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__28(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__29(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__26(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_Lean_MetavarContext_mkLambda___spec__27(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__30(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__26(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__34(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__33(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__35(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__33(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__34(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__35(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__36(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__32(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_Lean_MetavarContext_mkLambda___spec__33(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__36(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__32(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__40(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__39(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__41(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__39(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__40(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__41(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__42(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__38(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_Lean_MetavarContext_mkLambda___spec__39(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__42(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__38(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__46(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__45(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__47(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__45(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__46(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__47(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__48(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__44(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_Lean_MetavarContext_mkLambda___spec__45(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__48(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__44(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__52(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__51(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__53(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__51(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__52(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__53(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__54(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__50(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_Lean_MetavarContext_mkLambda___spec__51(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__54(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__50(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__58(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_3); +x_8 = l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__57(x_1, x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_3, x_9); +lean_dec(x_3); +x_3 = x_10; +goto _start; +} +else +{ +lean_dec(x_3); +return x_8; +} +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__59(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__57(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__58(x_1, x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_2, 0); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__59(x_1, x_6, x_7); +return x_8; +} +} +} +uint8_t l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__60(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_3); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; +x_7 = lean_array_fget(x_2, x_3); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_unsigned_to_nat(1u); +x_9 = lean_nat_add(x_3, x_8); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_7, 0); +lean_inc(x_11); +lean_dec(x_7); +x_12 = l_Lean_LocalDecl_name(x_11); +lean_dec(x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_12, x_1, x_13); +lean_dec(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_3, x_15); +lean_dec(x_3); +x_3 = x_16; +goto _start; +} +else +{ +lean_dec(x_3); +return x_14; +} +} +} +} +} +uint8_t l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__56(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_Lean_MetavarContext_mkLambda___spec__57(x_1, x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__60(x_1, x_5, x_6); +return x_7; +} +else +{ +return x_4; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(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; uint8_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_unsigned_to_nat(0u); +x_7 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_5, x_1, x_6); +lean_dec(x_5); +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; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_3, 0); +lean_inc(x_10); +lean_dec(x_3); +lean_inc(x_10); +lean_inc(x_2); +x_11 = lean_metavar_ctx_get_expr_assignment(x_2, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_12 = l_Lean_MetavarContext_getDecl(x_2, x_10); +lean_dec(x_10); +lean_dec(x_2); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__56(x_1, x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_28; +lean_dec(x_10); +x_18 = lean_ctor_get(x_11, 0); +lean_inc(x_18); +lean_dec(x_11); +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) +{ +uint8_t x_30; +x_30 = lean_expr_has_fvar(x_18); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_18); +lean_dec(x_2); +x_31 = 0; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 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_34; +x_34 = lean_box(0); +x_19 = x_34; +goto block_27; +} +} +else +{ +lean_object* x_35; +x_35 = lean_box(0); +x_19 = x_35; +goto block_27; +} +} +else +{ +lean_object* x_36; +x_36 = lean_box(0); +x_19 = x_36; +goto block_27; +} +block_27: +{ +uint8_t x_20; +lean_dec(x_19); +x_20 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +lean_inc(x_18); +x_22 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_18, x_21); +x_3 = x_18; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_18); +lean_dec(x_2); +x_24 = 0; +x_25 = lean_box(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_4); +return x_26; +} +} +} +} +case 5: +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_64; uint8_t x_74; +x_37 = lean_ctor_get(x_3, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_3, 1); +lean_inc(x_38); +lean_dec(x_3); +x_74 = lean_expr_has_expr_mvar(x_38); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_expr_has_level_mvar(x_38); +if (x_75 == 0) +{ +uint8_t x_76; +x_76 = lean_expr_has_fvar(x_38); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_38); +x_77 = 0; +x_39 = x_77; +x_40 = x_4; +goto block_63; +} +else +{ +lean_object* x_78; +x_78 = lean_box(0); +x_64 = x_78; +goto block_73; +} +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_64 = x_79; +goto block_73; +} +} +else +{ +lean_object* x_80; +x_80 = lean_box(0); +x_64 = x_80; +goto block_73; +} +block_63: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_isApp(x_37); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_51; +x_51 = lean_expr_has_expr_mvar(x_37); +if (x_51 == 0) +{ +uint8_t x_52; +x_52 = lean_expr_has_level_mvar(x_37); +if (x_52 == 0) +{ +uint8_t x_53; +x_53 = lean_expr_has_fvar(x_37); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +lean_dec(x_2); +x_54 = 0; +x_55 = lean_box(x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_40); +return x_56; +} +else +{ +lean_object* x_57; +x_57 = lean_box(0); +x_42 = x_57; +goto block_50; +} +} +else +{ +lean_object* x_58; +x_58 = lean_box(0); +x_42 = x_58; +goto block_50; +} +} +else +{ +lean_object* x_59; +x_59 = lean_box(0); +x_42 = x_59; +goto block_50; +} +block_50: +{ +uint8_t x_43; +lean_dec(x_42); +x_43 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_40, x_37); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +lean_inc(x_37); +x_45 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_40, x_37, x_44); +x_3 = x_37; +x_4 = x_45; +goto _start; +} +else +{ +uint8_t x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_37); +lean_dec(x_2); +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +return x_49; +} +} +} +else +{ +x_3 = x_37; +x_4 = x_40; +goto _start; +} +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_37); +lean_dec(x_2); +x_61 = lean_box(x_39); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_40); +return x_62; +} +} +block_73: +{ +uint8_t x_65; +lean_dec(x_64); +x_65 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_38); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_66 = lean_box(0); +lean_inc(x_38); +x_67 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_38, x_66); +lean_inc(x_2); +x_68 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_1, x_2, x_38, x_67); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = lean_unbox(x_69); +lean_dec(x_69); +x_39 = x_71; +x_40 = x_70; +goto block_63; +} +else +{ +uint8_t x_72; +lean_dec(x_38); +x_72 = 0; +x_39 = x_72; +x_40 = x_4; +goto block_63; +} +} +} +case 6: +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_106; uint8_t x_116; +x_81 = lean_ctor_get(x_3, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_dec(x_3); +x_116 = lean_expr_has_expr_mvar(x_81); +if (x_116 == 0) +{ +uint8_t x_117; +x_117 = lean_expr_has_level_mvar(x_81); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = lean_expr_has_fvar(x_81); +if (x_118 == 0) +{ +uint8_t x_119; +lean_dec(x_81); +x_119 = 0; +x_83 = x_119; +x_84 = x_4; +goto block_105; +} +else +{ +lean_object* x_120; +x_120 = lean_box(0); +x_106 = x_120; +goto block_115; +} +} +else +{ +lean_object* x_121; +x_121 = lean_box(0); +x_106 = x_121; +goto block_115; +} +} +else +{ +lean_object* x_122; +x_122 = lean_box(0); +x_106 = x_122; +goto block_115; +} +block_105: +{ +if (x_83 == 0) +{ +lean_object* x_85; uint8_t x_94; +x_94 = lean_expr_has_expr_mvar(x_82); +if (x_94 == 0) +{ +uint8_t x_95; +x_95 = lean_expr_has_level_mvar(x_82); +if (x_95 == 0) +{ +uint8_t x_96; +x_96 = lean_expr_has_fvar(x_82); +if (x_96 == 0) +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_2); +x_97 = 0; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_84); +return x_99; +} +else +{ +lean_object* x_100; +x_100 = lean_box(0); +x_85 = x_100; +goto block_93; +} +} +else +{ +lean_object* x_101; +x_101 = lean_box(0); +x_85 = x_101; +goto block_93; +} +} +else +{ +lean_object* x_102; +x_102 = lean_box(0); +x_85 = x_102; +goto block_93; +} +block_93: +{ +uint8_t x_86; +lean_dec(x_85); +x_86 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_84, x_82); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_box(0); +lean_inc(x_82); +x_88 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_84, x_82, x_87); +x_3 = x_82; +x_4 = x_88; +goto _start; +} +else +{ +uint8_t x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_82); +lean_dec(x_2); +x_90 = 0; +x_91 = lean_box(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_84); +return x_92; +} +} +} +else +{ +lean_object* x_103; lean_object* x_104; +lean_dec(x_82); +lean_dec(x_2); +x_103 = lean_box(x_83); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +return x_104; +} +} +block_115: +{ +uint8_t x_107; +lean_dec(x_106); +x_107 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_81); +if (x_107 == 0) +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_108 = lean_box(0); +lean_inc(x_81); +x_109 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_81, x_108); +lean_inc(x_2); +x_110 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_1, x_2, x_81, x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_unbox(x_111); +lean_dec(x_111); +x_83 = x_113; +x_84 = x_112; +goto block_105; +} +else +{ +uint8_t x_114; +lean_dec(x_81); +x_114 = 0; +x_83 = x_114; +x_84 = x_4; +goto block_105; +} +} +} +case 7: +{ +lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_148; uint8_t x_158; +x_123 = lean_ctor_get(x_3, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +lean_dec(x_3); +x_158 = lean_expr_has_expr_mvar(x_123); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = lean_expr_has_level_mvar(x_123); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = lean_expr_has_fvar(x_123); +if (x_160 == 0) +{ +uint8_t x_161; +lean_dec(x_123); +x_161 = 0; +x_125 = x_161; +x_126 = x_4; +goto block_147; +} +else +{ +lean_object* x_162; +x_162 = lean_box(0); +x_148 = x_162; +goto block_157; +} +} +else +{ +lean_object* x_163; +x_163 = lean_box(0); +x_148 = x_163; +goto block_157; +} +} +else +{ +lean_object* x_164; +x_164 = lean_box(0); +x_148 = x_164; +goto block_157; +} +block_147: +{ +if (x_125 == 0) +{ +lean_object* x_127; uint8_t x_136; +x_136 = lean_expr_has_expr_mvar(x_124); +if (x_136 == 0) +{ +uint8_t x_137; +x_137 = lean_expr_has_level_mvar(x_124); +if (x_137 == 0) +{ +uint8_t x_138; +x_138 = lean_expr_has_fvar(x_124); +if (x_138 == 0) +{ +uint8_t x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_124); +lean_dec(x_2); +x_139 = 0; +x_140 = lean_box(x_139); +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_126); +return x_141; +} +else +{ +lean_object* x_142; +x_142 = lean_box(0); +x_127 = x_142; +goto block_135; +} +} +else +{ +lean_object* x_143; +x_143 = lean_box(0); +x_127 = x_143; +goto block_135; +} +} +else +{ +lean_object* x_144; +x_144 = lean_box(0); +x_127 = x_144; +goto block_135; +} +block_135: +{ +uint8_t x_128; +lean_dec(x_127); +x_128 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_126, x_124); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; +x_129 = lean_box(0); +lean_inc(x_124); +x_130 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_126, x_124, x_129); +x_3 = x_124; +x_4 = x_130; +goto _start; +} +else +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_124); +lean_dec(x_2); +x_132 = 0; +x_133 = lean_box(x_132); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_124); +lean_dec(x_2); +x_145 = lean_box(x_125); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_126); +return x_146; +} +} +block_157: +{ +uint8_t x_149; +lean_dec(x_148); +x_149 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_123); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_150 = lean_box(0); +lean_inc(x_123); +x_151 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_123, x_150); +lean_inc(x_2); +x_152 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_1, x_2, x_123, x_151); +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); +x_155 = lean_unbox(x_153); +lean_dec(x_153); +x_125 = x_155; +x_126 = x_154; +goto block_147; +} +else +{ +uint8_t x_156; +lean_dec(x_123); +x_156 = 0; +x_125 = x_156; +x_126 = x_4; +goto block_147; +} +} +} +case 8: +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; uint8_t x_191; lean_object* x_192; lean_object* x_211; uint8_t x_221; +x_165 = lean_ctor_get(x_3, 1); +lean_inc(x_165); +x_166 = lean_ctor_get(x_3, 2); +lean_inc(x_166); +x_167 = lean_ctor_get(x_3, 3); +lean_inc(x_167); +lean_dec(x_3); +x_221 = lean_expr_has_expr_mvar(x_165); +if (x_221 == 0) +{ +uint8_t x_222; +x_222 = lean_expr_has_level_mvar(x_165); +if (x_222 == 0) +{ +uint8_t x_223; +x_223 = lean_expr_has_fvar(x_165); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_165); +x_224 = 0; +x_191 = x_224; +x_192 = x_4; +goto block_210; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_211 = x_225; +goto block_220; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_211 = x_226; +goto block_220; +} +} +else +{ +lean_object* x_227; +x_227 = lean_box(0); +x_211 = x_227; +goto block_220; +} +block_190: +{ +if (x_168 == 0) +{ +lean_object* x_170; uint8_t x_179; +x_179 = lean_expr_has_expr_mvar(x_167); +if (x_179 == 0) +{ +uint8_t x_180; +x_180 = lean_expr_has_level_mvar(x_167); +if (x_180 == 0) +{ +uint8_t x_181; +x_181 = lean_expr_has_fvar(x_167); +if (x_181 == 0) +{ +uint8_t x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_167); +lean_dec(x_2); +x_182 = 0; +x_183 = lean_box(x_182); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_169); +return x_184; +} +else +{ +lean_object* x_185; +x_185 = lean_box(0); +x_170 = x_185; +goto block_178; +} +} +else +{ +lean_object* x_186; +x_186 = lean_box(0); +x_170 = x_186; +goto block_178; +} +} +else +{ +lean_object* x_187; +x_187 = lean_box(0); +x_170 = x_187; +goto block_178; +} +block_178: +{ +uint8_t x_171; +lean_dec(x_170); +x_171 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_169, x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; +x_172 = lean_box(0); +lean_inc(x_167); +x_173 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_169, x_167, x_172); +x_3 = x_167; +x_4 = x_173; +goto _start; +} +else +{ +uint8_t x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_2); +x_175 = 0; +x_176 = lean_box(x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_169); +return x_177; +} +} +} +else +{ +lean_object* x_188; lean_object* x_189; +lean_dec(x_167); +lean_dec(x_2); +x_188 = lean_box(x_168); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_169); +return x_189; +} +} +block_210: +{ +lean_object* x_193; +if (x_191 == 0) +{ +uint8_t x_203; +x_203 = lean_expr_has_expr_mvar(x_166); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_166); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_fvar(x_166); +if (x_205 == 0) +{ +uint8_t x_206; +lean_dec(x_166); +x_206 = 0; +x_168 = x_206; +x_169 = x_192; +goto block_190; +} +else +{ +lean_object* x_207; +x_207 = lean_box(0); +x_193 = x_207; +goto block_202; +} +} +else +{ +lean_object* x_208; +x_208 = lean_box(0); +x_193 = x_208; +goto block_202; +} +} +else +{ +lean_object* x_209; +x_209 = lean_box(0); +x_193 = x_209; +goto block_202; +} +} +else +{ +lean_dec(x_166); +x_168 = x_191; +x_169 = x_192; +goto block_190; +} +block_202: +{ +uint8_t x_194; +lean_dec(x_193); +x_194 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_192, x_166); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; +x_195 = lean_box(0); +lean_inc(x_166); +x_196 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_192, x_166, x_195); +lean_inc(x_2); +x_197 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_1, x_2, x_166, x_196); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_unbox(x_198); +lean_dec(x_198); +x_168 = x_200; +x_169 = x_199; +goto block_190; +} +else +{ +uint8_t x_201; +lean_dec(x_166); +x_201 = 0; +x_168 = x_201; +x_169 = x_192; +goto block_190; +} +} +} +block_220: +{ +uint8_t x_212; +lean_dec(x_211); +x_212 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_165); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +lean_inc(x_165); +x_214 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_165, x_213); +lean_inc(x_2); +x_215 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_1, x_2, x_165, x_214); +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +x_218 = lean_unbox(x_216); +lean_dec(x_216); +x_191 = x_218; +x_192 = x_217; +goto block_210; +} +else +{ +uint8_t x_219; +lean_dec(x_165); +x_219 = 0; +x_191 = x_219; +x_192 = x_4; +goto block_210; +} +} +} +case 10: +{ +lean_object* x_228; lean_object* x_229; uint8_t x_238; +x_228 = lean_ctor_get(x_3, 1); +lean_inc(x_228); +lean_dec(x_3); +x_238 = lean_expr_has_expr_mvar(x_228); +if (x_238 == 0) +{ +uint8_t x_239; +x_239 = lean_expr_has_level_mvar(x_228); +if (x_239 == 0) +{ +uint8_t x_240; +x_240 = lean_expr_has_fvar(x_228); +if (x_240 == 0) +{ +uint8_t x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_228); +lean_dec(x_2); +x_241 = 0; +x_242 = lean_box(x_241); +x_243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_4); +return x_243; +} +else +{ +lean_object* x_244; +x_244 = lean_box(0); +x_229 = x_244; +goto block_237; +} +} +else +{ +lean_object* x_245; +x_245 = lean_box(0); +x_229 = x_245; +goto block_237; +} +} +else +{ +lean_object* x_246; +x_246 = lean_box(0); +x_229 = x_246; +goto block_237; +} +block_237: +{ +uint8_t x_230; +lean_dec(x_229); +x_230 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_228); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; +x_231 = lean_box(0); +lean_inc(x_228); +x_232 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_228, x_231); +x_3 = x_228; +x_4 = x_232; +goto _start; +} +else +{ +uint8_t x_234; lean_object* x_235; lean_object* x_236; +lean_dec(x_228); +lean_dec(x_2); +x_234 = 0; +x_235 = lean_box(x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_4); +return x_236; +} +} +} +case 11: +{ +lean_object* x_247; lean_object* x_248; uint8_t x_257; +x_247 = lean_ctor_get(x_3, 2); +lean_inc(x_247); +lean_dec(x_3); +x_257 = lean_expr_has_expr_mvar(x_247); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = lean_expr_has_level_mvar(x_247); +if (x_258 == 0) +{ +uint8_t x_259; +x_259 = lean_expr_has_fvar(x_247); +if (x_259 == 0) +{ +uint8_t x_260; lean_object* x_261; lean_object* x_262; +lean_dec(x_247); +lean_dec(x_2); +x_260 = 0; +x_261 = lean_box(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_4); +return x_262; +} +else +{ +lean_object* x_263; +x_263 = lean_box(0); +x_248 = x_263; +goto block_256; +} +} +else +{ +lean_object* x_264; +x_264 = lean_box(0); +x_248 = x_264; +goto block_256; +} +} +else +{ +lean_object* x_265; +x_265 = lean_box(0); +x_248 = x_265; +goto block_256; +} +block_256: +{ +uint8_t x_249; +lean_dec(x_248); +x_249 = l_HashMapImp_contains___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__1(x_4, x_247); +if (x_249 == 0) +{ +lean_object* x_250; lean_object* x_251; +x_250 = lean_box(0); +lean_inc(x_247); +x_251 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_DependsOn_visit___spec__3(x_4, x_247, x_250); +x_3 = x_247; +x_4 = x_251; +goto _start; +} +else +{ +uint8_t x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_247); +lean_dec(x_2); +x_253 = 0; +x_254 = lean_box(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_4); +return x_255; +} +} +} +default: +{ +uint8_t x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_3); +lean_dec(x_2); +x_266 = 0; +x_267 = lean_box(x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_4); +return x_268; +} +} +} +} +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_4); +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; lean_object* x_18; uint8_t x_19; +x_7 = lean_ctor_get(x_5, 0); +lean_inc(x_7); +lean_dec(x_5); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__5(x_7, x_2, x_18); +if (x_19 == 0) +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_7, 3); +lean_inc(x_20); +x_21 = lean_expr_has_fvar(x_20); +if (x_21 == 0) +{ +uint8_t x_22; +x_22 = lean_expr_has_expr_mvar(x_20); +if (x_22 == 0) +{ +uint8_t x_23; +x_23 = lean_expr_has_level_mvar(x_20); +if (x_23 == 0) +{ +uint8_t x_24; +lean_dec(x_20); +lean_dec(x_3); +x_24 = 0; +x_8 = x_24; +goto block_17; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = l_HashMap_Inhabited___closed__1; +x_26 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_4, x_3, x_20, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_unbox(x_27); +lean_dec(x_27); +x_8 = x_28; +goto block_17; +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = l_HashMap_Inhabited___closed__1; +x_30 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_4, x_3, x_20, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_unbox(x_31); +lean_dec(x_31); +x_8 = x_32; +goto block_17; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = l_HashMap_Inhabited___closed__1; +x_34 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_4, x_3, x_20, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_unbox(x_35); +lean_dec(x_35); +x_8 = x_36; +goto block_17; +} +} +else +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; uint8_t x_55; +x_37 = lean_ctor_get(x_7, 3); +lean_inc(x_37); +x_38 = lean_ctor_get(x_7, 4); +lean_inc(x_38); +x_55 = lean_expr_has_fvar(x_37); +if (x_55 == 0) +{ +uint8_t x_56; +x_56 = lean_expr_has_expr_mvar(x_37); +if (x_56 == 0) +{ +uint8_t x_57; +x_57 = lean_expr_has_level_mvar(x_37); +if (x_57 == 0) +{ +uint8_t x_58; lean_object* x_59; +lean_dec(x_37); +x_58 = 0; +x_59 = l_HashMap_Inhabited___closed__1; +x_39 = x_58; +x_40 = x_59; +goto block_54; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_60 = l_HashMap_Inhabited___closed__1; +lean_inc(x_3); +x_61 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_4, x_3, x_37, x_60); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = lean_unbox(x_62); +lean_dec(x_62); +x_39 = x_64; +x_40 = x_63; +goto block_54; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_65 = l_HashMap_Inhabited___closed__1; +lean_inc(x_3); +x_66 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_4, x_3, x_37, x_65); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_unbox(x_67); +lean_dec(x_67); +x_39 = x_69; +x_40 = x_68; +goto block_54; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_70 = l_HashMap_Inhabited___closed__1; +lean_inc(x_3); +x_71 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_4, x_3, x_37, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_39 = x_74; +x_40 = x_73; +goto block_54; +} +block_54: +{ +if (x_39 == 0) +{ +uint8_t x_41; +x_41 = lean_expr_has_fvar(x_38); +if (x_41 == 0) +{ +uint8_t x_42; +x_42 = lean_expr_has_expr_mvar(x_38); +if (x_42 == 0) +{ +uint8_t x_43; +x_43 = lean_expr_has_level_mvar(x_38); +if (x_43 == 0) +{ +uint8_t x_44; +lean_dec(x_40); +lean_dec(x_38); +lean_dec(x_3); +x_44 = 0; +x_8 = x_44; +goto block_17; +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_4, x_3, x_38, x_40); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_unbox(x_46); +lean_dec(x_46); +x_8 = x_47; +goto block_17; +} +} +else +{ +lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_48 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_4, x_3, x_38, x_40); +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_8 = x_50; +goto block_17; +} +} +else +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_51 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_4, x_3, x_38, x_40); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_unbox(x_52); +lean_dec(x_52); +x_8 = x_53; +goto block_17; +} +} +else +{ +lean_dec(x_40); +lean_dec(x_38); +lean_dec(x_3); +x_8 = x_39; +goto block_17; +} +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = l_Lean_LocalDecl_toExpr(x_7); +lean_dec(x_7); +x_76 = lean_array_push(x_4, x_75); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_76); +return x_77; +} +block_17: +{ +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_4); +return x_9; +} +else +{ +uint8_t x_10; uint8_t x_11; +x_10 = l_Lean_LocalDecl_binderInfo(x_7); +x_11 = l_Lean_BinderInfo_isAuxDecl(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_2); +lean_dec(x_1); +x_12 = l_Lean_LocalDecl_toExpr(x_7); +lean_dec(x_7); +x_13 = lean_array_push(x_4, x_12); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_4); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_2); +lean_ctor_set(x_15, 2, x_7); +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_Lean_MetavarContext_mkLambda___spec__61(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_4, 1); +x_8 = lean_alloc_closure((void*)(l_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61___lambda__1), 5, 3); +lean_closure_set(x_8, 0, x_2); +lean_closure_set(x_8, 1, x_3); +lean_closure_set(x_8, 2, x_1); +x_9 = l_Lean_LocalDecl_index(x_6); +x_10 = l_PersistentArray_foldlFromM___at_Lean_AbstractMetavarContext_MkBinding_collectDeps___spec__58___rarg(x_7, x_8, x_5, x_9); +lean_dec(x_9); +return x_10; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_collectDeps___at_Lean_MetavarContext_mkLambda___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_array_get_size(x_3); +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_4, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_inc(x_2); +x_7 = l_Lean_AbstractMetavarContext_MkBinding_getLocalDeclWithSmallestIdx(x_2, x_3); +x_8 = lean_mk_empty_array_with_capacity(x_4); +lean_dec(x_4); +lean_inc(x_2); +x_9 = l_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61(x_1, x_2, x_3, x_2, x_8, x_7); +lean_dec(x_7); +lean_dec(x_2); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_3); +return x_10; +} +} +} +lean_object* l_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_6 = l_panicWithPos___rarg___closed__1; +x_7 = lean_string_append(x_6, x_1); +x_8 = l_panicWithPos___rarg___closed__2; +x_9 = lean_string_append(x_7, x_8); +x_10 = l_Nat_repr(x_2); +x_11 = lean_string_append(x_9, x_10); +lean_dec(x_10); +x_12 = l_panicWithPos___rarg___closed__2; +x_13 = lean_string_append(x_11, x_12); +x_14 = l_Nat_repr(x_3); +x_15 = lean_string_append(x_13, x_14); +lean_dec(x_14); +x_16 = l_panicWithPos___rarg___closed__3; +x_17 = lean_string_append(x_15, x_16); +x_18 = lean_string_append(x_17, x_4); +x_19 = l_panicWithPos___at_Lean_AbstractMetavarContext_MkBinding_mkBinding___spec__1___rarg___closed__1; +x_20 = lean_panic_fn(x_18); +x_21 = lean_apply_1(x_20, x_5); +return x_21; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_exprIsInhabited; +x_8 = lean_array_get(x_7, x_1, x_2); +x_9 = l_Lean_LocalContext_findFVar(x_3, x_8); +lean_dec(x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_10 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; +x_11 = lean_unsigned_to_nat(380u); +x_12 = lean_unsigned_to_nat(16u); +x_13 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +x_14 = l_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63(x_10, x_11, x_12, x_13, x_6); +return x_14; +} +else +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +lean_dec(x_9); +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; +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) +{ +uint8_t x_28; +x_28 = lean_expr_has_level_mvar(x_17); +if (x_28 == 0) +{ +x_19 = x_17; +x_20 = x_6; +goto block_26; +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_6); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_6, 2); +x_31 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_6, 2, x_31); +x_32 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_17, x_6); +if (lean_obj_tag(x_32) == 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_dec(x_32); +x_35 = !lean_is_exclusive(x_33); +if (x_35 == 0) +{ +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; +} +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_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_5); +x_40 = !lean_is_exclusive(x_32); +if (x_40 == 0) +{ +return x_32; +} +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; +} +} +} +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_6, 0); +x_45 = lean_ctor_get(x_6, 1); +x_46 = lean_ctor_get(x_6, 2); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_6); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_17, x_48); +if (lean_obj_tag(x_49) == 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; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_46); +lean_dec(x_16); +lean_dec(x_5); +x_56 = lean_ctor_get(x_49, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_49, 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; +} +} +} +} +else +{ +uint8_t x_60; +x_60 = !lean_is_exclusive(x_6); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_6, 2); +x_62 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_6, 2, x_62); +x_63 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_17, x_6); +if (lean_obj_tag(x_63) == 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_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; +} +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); +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; +} +} +else +{ +uint8_t x_71; +lean_dec(x_61); +lean_dec(x_16); +lean_dec(x_5); +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_6, 0); +x_76 = lean_ctor_get(x_6, 1); +x_77 = lean_ctor_get(x_6, 2); +lean_inc(x_77); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_6); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_17, x_79); +if (lean_obj_tag(x_80) == 0) +{ +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_inc(x_81); +x_82 = lean_ctor_get(x_80, 0); +lean_inc(x_82); +lean_dec(x_80); +x_83 = lean_ctor_get(x_81, 0); +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_5); +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_4 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_expr_mk_forall(x_16, x_18, x_21, x_5); +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_5); +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; uint8_t x_203; +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_expr_has_expr_mvar(x_92); +if (x_203 == 0) +{ +uint8_t x_204; +x_204 = lean_expr_has_level_mvar(x_92); +if (x_204 == 0) +{ +x_94 = x_92; +x_95 = x_6; +goto block_202; +} +else +{ +uint8_t x_205; +x_205 = !lean_is_exclusive(x_6); +if (x_205 == 0) +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_6, 2); +x_207 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_6, 2, x_207); +x_208 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_92, x_6); +if (lean_obj_tag(x_208) == 0) +{ +lean_object* x_209; lean_object* x_210; uint8_t x_211; +x_209 = lean_ctor_get(x_208, 1); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 0); +lean_inc(x_210); +lean_dec(x_208); +x_211 = !lean_is_exclusive(x_209); +if (x_211 == 0) +{ +lean_object* x_212; +x_212 = lean_ctor_get(x_209, 2); +lean_dec(x_212); +lean_ctor_set(x_209, 2, x_206); +x_94 = x_210; +x_95 = x_209; +goto block_202; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_209, 0); +x_214 = lean_ctor_get(x_209, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_209); +x_215 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_206); +x_94 = x_210; +x_95 = x_215; +goto block_202; +} +} +else +{ +uint8_t x_216; +lean_dec(x_206); +lean_dec(x_93); +lean_dec(x_91); +lean_dec(x_5); +x_216 = !lean_is_exclusive(x_208); +if (x_216 == 0) +{ +return x_208; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_217 = lean_ctor_get(x_208, 0); +x_218 = lean_ctor_get(x_208, 1); +lean_inc(x_218); +lean_inc(x_217); +lean_dec(x_208); +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_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_220 = lean_ctor_get(x_6, 0); +x_221 = lean_ctor_get(x_6, 1); +x_222 = lean_ctor_get(x_6, 2); +lean_inc(x_222); +lean_inc(x_221); +lean_inc(x_220); +lean_dec(x_6); +x_223 = l_HashMap_Inhabited___closed__1; +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_225 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_92, x_224); +if (lean_obj_tag(x_225) == 0) +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_226 = lean_ctor_get(x_225, 1); +lean_inc(x_226); +x_227 = lean_ctor_get(x_225, 0); +lean_inc(x_227); +lean_dec(x_225); +x_228 = lean_ctor_get(x_226, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_226, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + lean_ctor_release(x_226, 2); + x_230 = x_226; +} else { + lean_dec_ref(x_226); + x_230 = lean_box(0); +} +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(0, 3, 0); +} else { + x_231 = x_230; +} +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_229); +lean_ctor_set(x_231, 2, x_222); +x_94 = x_227; +x_95 = x_231; +goto block_202; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_222); +lean_dec(x_93); +lean_dec(x_91); +lean_dec(x_5); +x_232 = lean_ctor_get(x_225, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_225, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_225)) { + lean_ctor_release(x_225, 0); + lean_ctor_release(x_225, 1); + x_234 = x_225; +} else { + lean_dec_ref(x_225); + x_234 = lean_box(0); +} +if (lean_is_scalar(x_234)) { + x_235 = lean_alloc_ctor(1, 2, 0); +} else { + x_235 = x_234; +} +lean_ctor_set(x_235, 0, x_232); +lean_ctor_set(x_235, 1, x_233); +return x_235; +} +} +} +} +else +{ +uint8_t x_236; +x_236 = !lean_is_exclusive(x_6); +if (x_236 == 0) +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_237 = lean_ctor_get(x_6, 2); +x_238 = l_HashMap_Inhabited___closed__1; +lean_ctor_set(x_6, 2, x_238); +x_239 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_92, x_6); +if (lean_obj_tag(x_239) == 0) +{ +lean_object* x_240; lean_object* x_241; uint8_t x_242; +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; +x_243 = lean_ctor_get(x_240, 2); +lean_dec(x_243); +lean_ctor_set(x_240, 2, x_237); +x_94 = x_241; +x_95 = x_240; +goto block_202; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_240, 0); +x_245 = lean_ctor_get(x_240, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_240); +x_246 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +lean_ctor_set(x_246, 2, x_237); +x_94 = x_241; +x_95 = x_246; +goto block_202; +} +} +else +{ +uint8_t x_247; +lean_dec(x_237); +lean_dec(x_93); +lean_dec(x_91); +lean_dec(x_5); +x_247 = !lean_is_exclusive(x_239); +if (x_247 == 0) +{ +return x_239; +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; +x_248 = lean_ctor_get(x_239, 0); +x_249 = lean_ctor_get(x_239, 1); +lean_inc(x_249); +lean_inc(x_248); +lean_dec(x_239); +x_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_248); +lean_ctor_set(x_250, 1, x_249); +return x_250; +} +} +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_251 = lean_ctor_get(x_6, 0); +x_252 = lean_ctor_get(x_6, 1); +x_253 = lean_ctor_get(x_6, 2); +lean_inc(x_253); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_6); +x_254 = l_HashMap_Inhabited___closed__1; +x_255 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_255, 0, x_251); +lean_ctor_set(x_255, 1, x_252); +lean_ctor_set(x_255, 2, x_254); +x_256 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_92, x_255); +if (lean_obj_tag(x_256) == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_257 = lean_ctor_get(x_256, 1); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 0); +lean_inc(x_258); +lean_dec(x_256); +x_259 = lean_ctor_get(x_257, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_257, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + lean_ctor_release(x_257, 2); + x_261 = x_257; +} else { + lean_dec_ref(x_257); + x_261 = lean_box(0); +} +if (lean_is_scalar(x_261)) { + x_262 = lean_alloc_ctor(0, 3, 0); +} else { + x_262 = x_261; +} +lean_ctor_set(x_262, 0, x_259); +lean_ctor_set(x_262, 1, x_260); +lean_ctor_set(x_262, 2, x_253); +x_94 = x_258; +x_95 = x_262; +goto block_202; +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; +lean_dec(x_253); +lean_dec(x_93); +lean_dec(x_91); +lean_dec(x_5); +x_263 = lean_ctor_get(x_256, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_256, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_265 = x_256; +} else { + lean_dec_ref(x_256); + x_265 = lean_box(0); +} +if (lean_is_scalar(x_265)) { + x_266 = lean_alloc_ctor(1, 2, 0); +} else { + x_266 = x_265; +} +lean_ctor_set(x_266, 0, x_263); +lean_ctor_set(x_266, 1, x_264); +return x_266; +} +} +} +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_5); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_5); +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_5); +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_5); +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_5); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_5); +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_5); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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; +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_5); +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_5); +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); +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_5); +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; +} +} +else +{ +uint8_t x_178; +lean_dec(x_153); +lean_dec(x_96); +lean_dec(x_91); +lean_dec(x_5); +x_178 = !lean_is_exclusive(x_155); +if (x_178 == 0) +{ +return x_155; +} +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_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); +return x_181; +} +} +} +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); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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; +} else { + lean_dec_ref(x_187); + x_190 = 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; +} else { + lean_dec_ref(x_188); + x_193 = lean_box(0); +} +if (lean_is_scalar(x_193)) { + x_194 = lean_alloc_ctor(0, 3, 0); +} else { + x_194 = x_193; +} +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_5); +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); +lean_dec(x_5); +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); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(1, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_198); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +} +} +} +} +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64(uint8_t 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; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_5, x_10); +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); +x_13 = lean_box(x_1); +lean_inc(x_2); +lean_inc(x_11); +lean_inc(x_3); +x_14 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___lambda__1___boxed), 6, 5); +lean_closure_set(x_14, 0, x_3); +lean_closure_set(x_14, 1, x_11); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_13); +lean_closure_set(x_14, 4, x_6); +x_15 = lean_box(x_1); +x_16 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___boxed), 7, 5); +lean_closure_set(x_16, 0, x_15); +lean_closure_set(x_16, 1, x_2); +lean_closure_set(x_16, 2, x_3); +lean_closure_set(x_16, 3, x_4); +lean_closure_set(x_16, 4, x_11); +x_17 = lean_apply_5(x_12, lean_box(0), lean_box(0), x_14, x_16, x_7); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_3); +lean_dec(x_2); +x_18 = lean_ctor_get(x_4, 0); +lean_inc(x_18); +lean_dec(x_4); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_apply_3(x_19, lean_box(0), x_6, x_7); +return x_20; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__62(uint8_t 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; +x_6 = lean_array_get_size(x_3); +x_7 = lean_expr_has_expr_mvar(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_dec(x_4); +x_10 = l_EIO_Monad___closed__1; +x_11 = l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64(x_1, x_2, x_3, x_10, x_6, x_9, x_5); +lean_dec(x_6); +return x_11; +} +else +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_5); +if (x_12 == 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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_3, x_4, x_5); +if (lean_obj_tag(x_15) == 0) +{ +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); +lean_dec(x_15); +x_18 = !lean_is_exclusive(x_16); +if (x_18 == 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_Lean_MetavarContext_mkLambda___spec__64(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_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_Lean_MetavarContext_mkLambda___spec__64(x_1, x_2, x_3, x_27, x_6, x_26, x_25); +lean_dec(x_6); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_29 = !lean_is_exclusive(x_15); +if (x_29 == 0) +{ +return x_15; +} +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_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_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_inc(x_34); +lean_inc(x_33); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_3, x_4, x_37); +if (lean_obj_tag(x_38) == 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_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); +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_Lean_MetavarContext_mkLambda___spec__64(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; +} else { + lean_dec_ref(x_38); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(1, 2, 0); +} else { + x_51 = x_50; +} +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_MetavarContext_mkLambda___spec__64(x_1, x_2, x_3, x_61, x_6, x_60, x_56); +lean_dec(x_6); +return x_62; +} +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_Lean_MetavarContext_mkLambda___spec__64(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_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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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; +} else { + lean_dec_ref(x_79); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(0, 3, 0); +} else { + x_84 = x_83; +} +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_Lean_MetavarContext_mkLambda___spec__64(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_object* l_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65(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; +x_5 = lean_array_get_size(x_3); +x_6 = lean_nat_dec_lt(x_2, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_7 = l_Array_empty___closed__1; +x_8 = x_3; +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; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_22; +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) +{ +lean_inc(x_10); +x_14 = x_10; +x_15 = x_4; +goto block_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_4, 2); +lean_inc(x_24); +x_25 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_24, x_10); +lean_dec(x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; +lean_inc(x_10); +x_26 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_27); +lean_inc(x_28); +lean_inc(x_10); +x_35 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_37; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_2); +x_37 = !lean_is_exclusive(x_26); +if (x_37 == 0) +{ +return x_26; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_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; +goto _start; +} +} +} +} +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_MetavarContext_mkLambda___spec__66(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); +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_23, x_2); +lean_dec(x_23); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; +lean_inc(x_2); +x_25 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_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_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +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_inc(x_32); +lean_inc(x_31); +lean_dec(x_26); +lean_inc(x_27); +x_34 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +goto block_20; +} +} +else +{ +uint8_t x_54; +lean_dec(x_3); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_43); +if (x_54 == 0) +{ +return x_43; +} +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; +} +} +} +else +{ +lean_object* x_58; +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_6 = x_4; +goto block_20; +} +} +block_20: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65(x_1, x_7, x_3, x_6); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +x_11 = l_Lean_mkAppRev(x_5, x_10); +lean_dec(x_10); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +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_inc(x_12); +lean_dec(x_8); +x_14 = l_Lean_mkAppRev(x_5, x_12); +lean_dec(x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +else +{ +uint8_t x_16; +lean_dec(x_5); +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +return x_8; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_8, 0); +x_18 = lean_ctor_get(x_8, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_8); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_77, x_2); +lean_dec(x_77); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; +lean_inc(x_2); +x_79 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_79) == 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_83; lean_object* x_84; +x_83 = lean_ctor_get(x_80, 2); +lean_inc(x_81); +x_84 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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_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; +} +} +else +{ +uint8_t x_70; +lean_dec(x_59); +x_70 = !lean_is_exclusive(x_62); +if (x_70 == 0) +{ +return x_62; +} +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); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_62); +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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_131, x_2); +lean_dec(x_131); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; +lean_inc(x_2); +x_133 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_133) == 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_137; lean_object* x_138; +x_137 = lean_ctor_get(x_134, 2); +lean_inc(x_135); +x_138 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_144; +lean_dec(x_3); +lean_dec(x_2); +x_144 = !lean_is_exclusive(x_133); +if (x_144 == 0) +{ +return x_133; +} +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; +} +} +} +else +{ +lean_object* x_148; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_149, x_2); +lean_dec(x_149); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; +lean_inc(x_2); +x_151 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_185, x_2); +lean_dec(x_185); +if (lean_obj_tag(x_186) == 0) +{ +lean_object* x_187; +lean_inc(x_2); +x_187 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_187) == 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_191; lean_object* x_192; +x_191 = lean_ctor_get(x_188, 2); +lean_inc(x_189); +x_192 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_198; +lean_dec(x_3); +lean_dec(x_2); +x_198 = !lean_is_exclusive(x_187); +if (x_198 == 0) +{ +return x_187; +} +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; +} +} +} +else +{ +lean_object* x_202; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_203, x_2); +lean_dec(x_203); +if (lean_obj_tag(x_204) == 0) +{ +lean_object* x_205; +lean_inc(x_2); +x_205 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_239, x_2); +lean_dec(x_239); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; +lean_inc(x_2); +x_241 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_241) == 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_245; lean_object* x_246; +x_245 = lean_ctor_get(x_242, 2); +lean_inc(x_243); +x_246 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_252; +lean_dec(x_3); +lean_dec(x_2); +x_252 = !lean_is_exclusive(x_241); +if (x_252 == 0) +{ +return x_241; +} +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; +} +} +} +else +{ +lean_object* x_256; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_257, x_2); +lean_dec(x_257); +if (lean_obj_tag(x_258) == 0) +{ +lean_object* x_259; +lean_inc(x_2); +x_259 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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_dec(x_2); +x_277 = lean_array_push(x_3, x_276); +x_2 = x_275; +x_3 = x_277; +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_297, x_2); +lean_dec(x_297); +if (lean_obj_tag(x_298) == 0) +{ +lean_object* x_299; +lean_inc(x_2); +x_299 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_299) == 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_303; lean_object* x_304; +x_303 = lean_ctor_get(x_300, 2); +lean_inc(x_301); +x_304 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_310; +lean_dec(x_3); +lean_dec(x_2); +x_310 = !lean_is_exclusive(x_299); +if (x_310 == 0) +{ +return x_299; +} +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; +} +} +} +else +{ +lean_object* x_314; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_315, x_2); +lean_dec(x_315); +if (lean_obj_tag(x_316) == 0) +{ +lean_object* x_317; +lean_inc(x_2); +x_317 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_351, x_2); +lean_dec(x_351); +if (lean_obj_tag(x_352) == 0) +{ +lean_object* x_353; +lean_inc(x_2); +x_353 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_353) == 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_357; lean_object* x_358; +x_357 = lean_ctor_get(x_354, 2); +lean_inc(x_355); +x_358 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_364; +lean_dec(x_3); +lean_dec(x_2); +x_364 = !lean_is_exclusive(x_353); +if (x_364 == 0) +{ +return x_353; +} +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; +} +} +} +else +{ +lean_object* x_368; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_369, x_2); +lean_dec(x_369); +if (lean_obj_tag(x_370) == 0) +{ +lean_object* x_371; +lean_inc(x_2); +x_371 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_405, x_2); +lean_dec(x_405); +if (lean_obj_tag(x_406) == 0) +{ +lean_object* x_407; +lean_inc(x_2); +x_407 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_407) == 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_411; lean_object* x_412; +x_411 = lean_ctor_get(x_408, 2); +lean_inc(x_409); +x_412 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_418; +lean_dec(x_3); +lean_dec(x_2); +x_418 = !lean_is_exclusive(x_407); +if (x_418 == 0) +{ +return x_407; +} +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; +} +} +} +else +{ +lean_object* x_422; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_423, x_2); +lean_dec(x_423); +if (lean_obj_tag(x_424) == 0) +{ +lean_object* x_425; +lean_inc(x_2); +x_425 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_459, x_2); +lean_dec(x_459); +if (lean_obj_tag(x_460) == 0) +{ +lean_object* x_461; +lean_inc(x_2); +x_461 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_461) == 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_465; lean_object* x_466; +x_465 = lean_ctor_get(x_462, 2); +lean_inc(x_463); +x_466 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_472; +lean_dec(x_3); +lean_dec(x_2); +x_472 = !lean_is_exclusive(x_461); +if (x_472 == 0) +{ +return x_461; +} +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; +} +} +} +else +{ +lean_object* x_476; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_477, x_2); +lean_dec(x_477); +if (lean_obj_tag(x_478) == 0) +{ +lean_object* x_479; +lean_inc(x_2); +x_479 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_513, x_2); +lean_dec(x_513); +if (lean_obj_tag(x_514) == 0) +{ +lean_object* x_515; +lean_inc(x_2); +x_515 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_515) == 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_519; lean_object* x_520; +x_519 = lean_ctor_get(x_516, 2); +lean_inc(x_517); +x_520 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_526; +lean_dec(x_3); +lean_dec(x_2); +x_526 = !lean_is_exclusive(x_515); +if (x_526 == 0) +{ +return x_515; +} +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; +} +} +} +else +{ +lean_object* x_530; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_531, x_2); +lean_dec(x_531); +if (lean_obj_tag(x_532) == 0) +{ +lean_object* x_533; +lean_inc(x_2); +x_533 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_544; +lean_dec(x_3); +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_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; +} +} +block_510: +{ +lean_object* x_497; lean_object* x_498; +x_497 = lean_unsigned_to_nat(0u); +x_498 = l_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65(x_1, x_497, x_3, x_496); +if (lean_obj_tag(x_498) == 0) +{ +uint8_t x_499; +x_499 = !lean_is_exclusive(x_498); +if (x_499 == 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; +} +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; +} +} +else +{ +uint8_t x_506; +lean_dec(x_495); +x_506 = !lean_is_exclusive(x_498); +if (x_506 == 0) +{ +return x_498; +} +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; +} +} +} +} +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) +{ +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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_567, x_2); +lean_dec(x_567); +if (lean_obj_tag(x_568) == 0) +{ +lean_object* x_569; +lean_inc(x_2); +x_569 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_4); +if (lean_obj_tag(x_569) == 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_573; lean_object* x_574; +x_573 = lean_ctor_get(x_570, 2); +lean_inc(x_571); +x_574 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +} +else +{ +uint8_t x_580; +lean_dec(x_3); +lean_dec(x_2); +x_580 = !lean_is_exclusive(x_569); +if (x_580 == 0) +{ +return x_569; +} +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; +} +} +} +else +{ +lean_object* x_584; +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; +} +} +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_585, x_2); +lean_dec(x_585); +if (lean_obj_tag(x_586) == 0) +{ +lean_object* x_587; +lean_inc(x_2); +x_587 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_Lean_AbstractMetavarContext_InstantiateExprMVars_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; +} +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_Lean_AbstractMetavarContext_InstantiateExprMVars_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_Lean_MetavarContext_mkLambda___spec__65(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* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_15; lean_object* x_16; +switch (lean_obj_tag(x_2)) { +case 2: +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_2, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_3, 0); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_27); +x_28 = lean_metavar_ctx_get_expr_assignment(x_27, x_26); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_29 = l_Lean_MetavarContext_getDecl(x_27, x_26); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +x_31 = l_Lean_AbstractMetavarContext_MkBinding_getInScope(x_30, x_1); +x_32 = lean_array_get_size(x_31); +x_33 = lean_unsigned_to_nat(0u); +x_34 = lean_nat_dec_eq(x_32, x_33); +lean_dec(x_32); +if (x_34 == 0) +{ +lean_object* x_35; +lean_inc(x_30); +lean_inc(x_27); +x_35 = l_Lean_AbstractMetavarContext_MkBinding_collectDeps___at_Lean_MetavarContext_mkLambda___spec__4(x_27, x_30, x_31); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_2); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +lean_dec(x_35); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_3); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_35, 0); +lean_inc(x_38); +lean_dec(x_35); +lean_inc(x_30); +x_39 = l_Lean_AbstractMetavarContext_MkBinding_reduceLocalContext(x_30, x_38); +x_40 = lean_ctor_get(x_29, 2); +lean_inc(x_40); +x_41 = 0; +lean_inc(x_38); +lean_inc(x_30); +x_42 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__62(x_41, x_30, x_38, x_40, x_3); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +x_45 = !lean_is_exclusive(x_42); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_46 = lean_ctor_get(x_42, 0); +x_47 = lean_ctor_get(x_42, 1); +lean_dec(x_47); +x_48 = !lean_is_exclusive(x_43); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_43, 1); +lean_dec(x_49); +x_50 = lean_ctor_get(x_43, 0); +lean_dec(x_50); +x_51 = !lean_is_exclusive(x_44); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_52 = lean_ctor_get(x_44, 0); +x_53 = lean_ctor_get(x_44, 1); +lean_inc(x_53); +lean_inc(x_52); +x_54 = lean_name_mk_numeral(x_52, x_53); +x_55 = lean_unsigned_to_nat(1u); +x_56 = lean_nat_add(x_53, x_55); +lean_dec(x_53); +lean_ctor_set(x_44, 1, x_56); +x_57 = lean_ctor_get_uint8(x_29, sizeof(void*)*3); +lean_dec(x_29); +x_58 = lean_box(0); +lean_inc(x_54); +x_59 = lean_metavar_ctx_mk_decl(x_27, x_54, x_58, x_39, x_46, x_57); +lean_inc(x_54); +x_60 = lean_expr_mk_mvar(x_54); +lean_inc(x_30); +x_61 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_30, x_38, x_38, x_33, x_60); +if (x_57 == 0) +{ +lean_object* x_62; +lean_dec(x_54); +lean_dec(x_38); +lean_dec(x_30); +lean_dec(x_2); +lean_inc(x_61); +x_62 = lean_metavar_ctx_assign_expr(x_59, x_26, x_61); +lean_ctor_set(x_43, 0, x_62); +lean_ctor_set(x_42, 0, x_61); +return x_42; +} +else +{ +lean_object* x_63; +lean_dec(x_26); +x_63 = lean_metavar_ctx_assign_delayed(x_59, x_54, x_30, x_38, x_2); +lean_ctor_set(x_43, 0, x_63); +lean_ctor_set(x_42, 0, x_61); +return x_42; +} +} +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; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_64 = lean_ctor_get(x_44, 0); +x_65 = lean_ctor_get(x_44, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_44); +lean_inc(x_65); +lean_inc(x_64); +x_66 = lean_name_mk_numeral(x_64, x_65); +x_67 = lean_unsigned_to_nat(1u); +x_68 = lean_nat_add(x_65, x_67); +lean_dec(x_65); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_64); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_ctor_get_uint8(x_29, sizeof(void*)*3); +lean_dec(x_29); +x_71 = lean_box(0); +lean_inc(x_66); +x_72 = lean_metavar_ctx_mk_decl(x_27, x_66, x_71, x_39, x_46, x_70); +lean_inc(x_66); +x_73 = lean_expr_mk_mvar(x_66); +lean_inc(x_30); +x_74 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_30, x_38, x_38, x_33, x_73); +if (x_70 == 0) +{ +lean_object* x_75; +lean_dec(x_66); +lean_dec(x_38); +lean_dec(x_30); +lean_dec(x_2); +lean_inc(x_74); +x_75 = lean_metavar_ctx_assign_expr(x_72, x_26, x_74); +lean_ctor_set(x_43, 1, x_69); +lean_ctor_set(x_43, 0, x_75); +lean_ctor_set(x_42, 0, x_74); +return x_42; +} +else +{ +lean_object* x_76; +lean_dec(x_26); +x_76 = lean_metavar_ctx_assign_delayed(x_72, x_66, x_30, x_38, x_2); +lean_ctor_set(x_43, 1, x_69); +lean_ctor_set(x_43, 0, x_76); +lean_ctor_set(x_42, 0, x_74); +return x_42; +} +} +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_77 = lean_ctor_get(x_43, 2); +lean_inc(x_77); +lean_dec(x_43); +x_78 = lean_ctor_get(x_44, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_44, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_80 = x_44; +} else { + lean_dec_ref(x_44); + x_80 = lean_box(0); +} +lean_inc(x_79); +lean_inc(x_78); +x_81 = lean_name_mk_numeral(x_78, x_79); +x_82 = lean_unsigned_to_nat(1u); +x_83 = lean_nat_add(x_79, x_82); +lean_dec(x_79); +if (lean_is_scalar(x_80)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_80; +} +lean_ctor_set(x_84, 0, x_78); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_ctor_get_uint8(x_29, sizeof(void*)*3); +lean_dec(x_29); +x_86 = lean_box(0); +lean_inc(x_81); +x_87 = lean_metavar_ctx_mk_decl(x_27, x_81, x_86, x_39, x_46, x_85); +lean_inc(x_81); +x_88 = lean_expr_mk_mvar(x_81); +lean_inc(x_30); +x_89 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_30, x_38, x_38, x_33, x_88); +if (x_85 == 0) +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_81); +lean_dec(x_38); +lean_dec(x_30); +lean_dec(x_2); +lean_inc(x_89); +x_90 = lean_metavar_ctx_assign_expr(x_87, x_26, x_89); +x_91 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_84); +lean_ctor_set(x_91, 2, x_77); +lean_ctor_set(x_42, 1, x_91); +lean_ctor_set(x_42, 0, x_89); +return x_42; +} +else +{ +lean_object* x_92; lean_object* x_93; +lean_dec(x_26); +x_92 = lean_metavar_ctx_assign_delayed(x_87, x_81, x_30, x_38, x_2); +x_93 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_84); +lean_ctor_set(x_93, 2, x_77); +lean_ctor_set(x_42, 1, x_93); +lean_ctor_set(x_42, 0, x_89); +return x_42; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_94 = lean_ctor_get(x_42, 0); +lean_inc(x_94); +lean_dec(x_42); +x_95 = lean_ctor_get(x_43, 2); +lean_inc(x_95); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + lean_ctor_release(x_43, 2); + x_96 = x_43; +} else { + lean_dec_ref(x_43); + x_96 = lean_box(0); +} +x_97 = lean_ctor_get(x_44, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_44, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_99 = x_44; +} else { + lean_dec_ref(x_44); + x_99 = lean_box(0); +} +lean_inc(x_98); +lean_inc(x_97); +x_100 = lean_name_mk_numeral(x_97, x_98); +x_101 = lean_unsigned_to_nat(1u); +x_102 = lean_nat_add(x_98, x_101); +lean_dec(x_98); +if (lean_is_scalar(x_99)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_99; +} +lean_ctor_set(x_103, 0, x_97); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_ctor_get_uint8(x_29, sizeof(void*)*3); +lean_dec(x_29); +x_105 = lean_box(0); +lean_inc(x_100); +x_106 = lean_metavar_ctx_mk_decl(x_27, x_100, x_105, x_39, x_94, x_104); +lean_inc(x_100); +x_107 = lean_expr_mk_mvar(x_100); +lean_inc(x_30); +x_108 = l_Array_iterateMAux___main___at_Lean_AbstractMetavarContext_MkBinding_mkMVarApp___spec__1(x_30, x_38, x_38, x_33, x_107); +if (x_104 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_100); +lean_dec(x_38); +lean_dec(x_30); +lean_dec(x_2); +lean_inc(x_108); +x_109 = lean_metavar_ctx_assign_expr(x_106, x_26, x_108); +if (lean_is_scalar(x_96)) { + x_110 = lean_alloc_ctor(0, 3, 0); +} else { + x_110 = x_96; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_103); +lean_ctor_set(x_110, 2, x_95); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_110); +return x_111; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_26); +x_112 = lean_metavar_ctx_assign_delayed(x_106, x_100, x_30, x_38, x_2); +if (lean_is_scalar(x_96)) { + x_113 = lean_alloc_ctor(0, 3, 0); +} else { + x_113 = x_96; +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_103); +lean_ctor_set(x_113, 2, x_95); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_108); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +} +else +{ +uint8_t x_115; +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_2); +x_115 = !lean_is_exclusive(x_42); +if (x_115 == 0) +{ +return x_42; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_42, 0); +x_117 = lean_ctor_get(x_42, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_42); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +} +else +{ +lean_object* x_119; +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_26); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_2); +lean_ctor_set(x_119, 1, x_3); +return x_119; +} +} +else +{ +lean_object* x_120; uint8_t x_121; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_2); +x_120 = lean_ctor_get(x_28, 0); +lean_inc(x_120); +lean_dec(x_28); +x_121 = lean_expr_has_expr_mvar(x_120); +if (x_121 == 0) +{ +uint8_t x_122; +x_122 = lean_expr_has_level_mvar(x_120); +if (x_122 == 0) +{ +lean_object* x_123; +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_3); +return x_123; +} +else +{ +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_3, 2); +lean_inc(x_124); +x_125 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_124, x_120); +lean_dec(x_124); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; +lean_inc(x_120); +x_126 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_120, x_3); +if (lean_obj_tag(x_126) == 0) +{ +uint8_t x_127; +x_127 = !lean_is_exclusive(x_126); +if (x_127 == 0) +{ +lean_object* x_128; uint8_t x_129; +x_128 = lean_ctor_get(x_126, 1); +x_129 = !lean_is_exclusive(x_128); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_126, 0); +x_131 = lean_ctor_get(x_128, 2); +lean_inc(x_130); +x_132 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_131, x_120, x_130); +lean_ctor_set(x_128, 2, x_132); +return x_126; +} +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_126, 0); +x_134 = lean_ctor_get(x_128, 0); +x_135 = lean_ctor_get(x_128, 1); +x_136 = lean_ctor_get(x_128, 2); +lean_inc(x_136); +lean_inc(x_135); +lean_inc(x_134); +lean_dec(x_128); +lean_inc(x_133); +x_137 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_136, x_120, x_133); +x_138 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_138, 0, x_134); +lean_ctor_set(x_138, 1, x_135); +lean_ctor_set(x_138, 2, x_137); +lean_ctor_set(x_126, 1, x_138); +return x_126; +} +} +else +{ +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_139 = lean_ctor_get(x_126, 1); +x_140 = lean_ctor_get(x_126, 0); +lean_inc(x_139); +lean_inc(x_140); +lean_dec(x_126); +x_141 = lean_ctor_get(x_139, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_139, 2); +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); +} +lean_inc(x_140); +x_145 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_143, x_120, x_140); +if (lean_is_scalar(x_144)) { + x_146 = lean_alloc_ctor(0, 3, 0); +} else { + x_146 = x_144; +} +lean_ctor_set(x_146, 0, x_141); +lean_ctor_set(x_146, 1, x_142); +lean_ctor_set(x_146, 2, x_145); +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_140); +lean_ctor_set(x_147, 1, x_146); +return x_147; +} +} +else +{ +uint8_t x_148; +lean_dec(x_120); +x_148 = !lean_is_exclusive(x_126); +if (x_148 == 0) +{ +return x_126; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_126, 0); +x_150 = lean_ctor_get(x_126, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_126); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +return x_151; +} +} +} +else +{ +lean_object* x_152; lean_object* x_153; +lean_dec(x_120); +x_152 = lean_ctor_get(x_125, 0); +lean_inc(x_152); +lean_dec(x_125); +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_3); +return x_153; +} +} +} +else +{ +lean_object* x_154; lean_object* x_155; +x_154 = lean_ctor_get(x_3, 2); +lean_inc(x_154); +x_155 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_154, x_120); +lean_dec(x_154); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; +lean_inc(x_120); +x_156 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_120, x_3); +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; +x_160 = lean_ctor_get(x_156, 0); +x_161 = lean_ctor_get(x_158, 2); +lean_inc(x_160); +x_162 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_161, x_120, x_160); +lean_ctor_set(x_158, 2, x_162); +return x_156; +} +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_156, 0); +x_164 = lean_ctor_get(x_158, 0); +x_165 = lean_ctor_get(x_158, 1); +x_166 = lean_ctor_get(x_158, 2); +lean_inc(x_166); +lean_inc(x_165); +lean_inc(x_164); +lean_dec(x_158); +lean_inc(x_163); +x_167 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_166, x_120, x_163); +x_168 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_168, 0, x_164); +lean_ctor_set(x_168, 1, x_165); +lean_ctor_set(x_168, 2, x_167); +lean_ctor_set(x_156, 1, x_168); +return x_156; +} +} +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_156, 1); +x_170 = lean_ctor_get(x_156, 0); +lean_inc(x_169); +lean_inc(x_170); +lean_dec(x_156); +x_171 = lean_ctor_get(x_169, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_169, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_169, 2); +lean_inc(x_173); +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_174 = x_169; +} else { + lean_dec_ref(x_169); + x_174 = lean_box(0); +} +lean_inc(x_170); +x_175 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_173, x_120, x_170); +if (lean_is_scalar(x_174)) { + x_176 = lean_alloc_ctor(0, 3, 0); +} else { + x_176 = x_174; +} +lean_ctor_set(x_176, 0, x_171); +lean_ctor_set(x_176, 1, x_172); +lean_ctor_set(x_176, 2, x_175); +x_177 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_177, 0, x_170); +lean_ctor_set(x_177, 1, x_176); +return x_177; +} +} +else +{ +uint8_t x_178; +lean_dec(x_120); +x_178 = !lean_is_exclusive(x_156); +if (x_178 == 0) +{ +return x_156; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_156, 0); +x_180 = lean_ctor_get(x_156, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_156); +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; +} +} +} +else +{ +lean_object* x_182; lean_object* x_183; +lean_dec(x_120); +x_182 = lean_ctor_get(x_155, 0); +lean_inc(x_182); +lean_dec(x_155); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_3); +return x_183; +} +} +} +} +case 5: +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_184 = lean_unsigned_to_nat(0u); +x_185 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_184); +x_186 = lean_mk_empty_array_with_capacity(x_185); +lean_dec(x_185); +x_187 = l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_MetavarContext_mkLambda___spec__66(x_1, x_2, x_186, x_3); +return x_187; +} +case 6: +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_243; +x_188 = lean_ctor_get(x_2, 1); +lean_inc(x_188); +x_189 = lean_ctor_get(x_2, 2); +lean_inc(x_189); +x_243 = lean_expr_has_expr_mvar(x_188); +if (x_243 == 0) +{ +uint8_t x_244; +x_244 = lean_expr_has_level_mvar(x_188); +if (x_244 == 0) +{ +x_190 = x_188; +x_191 = x_3; +goto block_242; +} +else +{ +lean_object* x_245; lean_object* x_246; +x_245 = lean_ctor_get(x_3, 2); +lean_inc(x_245); +x_246 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_245, x_188); +lean_dec(x_245); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; +lean_inc(x_188); +x_247 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_188, x_3); +if (lean_obj_tag(x_247) == 0) +{ +lean_object* x_248; lean_object* x_249; uint8_t x_250; +x_248 = lean_ctor_get(x_247, 1); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 0); +lean_inc(x_249); +lean_dec(x_247); +x_250 = !lean_is_exclusive(x_248); +if (x_250 == 0) +{ +lean_object* x_251; lean_object* x_252; +x_251 = lean_ctor_get(x_248, 2); +lean_inc(x_249); +x_252 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_251, x_188, x_249); +lean_ctor_set(x_248, 2, x_252); +x_190 = x_249; +x_191 = x_248; +goto block_242; +} +else +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_253 = lean_ctor_get(x_248, 0); +x_254 = lean_ctor_get(x_248, 1); +x_255 = lean_ctor_get(x_248, 2); +lean_inc(x_255); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_248); +lean_inc(x_249); +x_256 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_255, x_188, x_249); +x_257 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_257, 0, x_253); +lean_ctor_set(x_257, 1, x_254); +lean_ctor_set(x_257, 2, x_256); +x_190 = x_249; +x_191 = x_257; +goto block_242; +} +} +else +{ +uint8_t x_258; +lean_dec(x_189); +lean_dec(x_188); +lean_dec(x_2); +x_258 = !lean_is_exclusive(x_247); +if (x_258 == 0) +{ +return x_247; +} +else +{ +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_247, 0); +x_260 = lean_ctor_get(x_247, 1); +lean_inc(x_260); +lean_inc(x_259); +lean_dec(x_247); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; +} +} +} +else +{ +lean_object* x_262; +lean_dec(x_188); +x_262 = lean_ctor_get(x_246, 0); +lean_inc(x_262); +lean_dec(x_246); +x_190 = x_262; +x_191 = x_3; +goto block_242; +} +} +} +else +{ +lean_object* x_263; lean_object* x_264; +x_263 = lean_ctor_get(x_3, 2); +lean_inc(x_263); +x_264 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_263, x_188); +lean_dec(x_263); +if (lean_obj_tag(x_264) == 0) +{ +lean_object* x_265; +lean_inc(x_188); +x_265 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_188, x_3); +if (lean_obj_tag(x_265) == 0) +{ +lean_object* x_266; lean_object* x_267; uint8_t x_268; +x_266 = lean_ctor_get(x_265, 1); +lean_inc(x_266); +x_267 = lean_ctor_get(x_265, 0); +lean_inc(x_267); +lean_dec(x_265); +x_268 = !lean_is_exclusive(x_266); +if (x_268 == 0) +{ +lean_object* x_269; lean_object* x_270; +x_269 = lean_ctor_get(x_266, 2); +lean_inc(x_267); +x_270 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_269, x_188, x_267); +lean_ctor_set(x_266, 2, x_270); +x_190 = x_267; +x_191 = x_266; +goto block_242; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_271 = lean_ctor_get(x_266, 0); +x_272 = lean_ctor_get(x_266, 1); +x_273 = lean_ctor_get(x_266, 2); +lean_inc(x_273); +lean_inc(x_272); +lean_inc(x_271); +lean_dec(x_266); +lean_inc(x_267); +x_274 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_273, x_188, x_267); +x_275 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_275, 0, x_271); +lean_ctor_set(x_275, 1, x_272); +lean_ctor_set(x_275, 2, x_274); +x_190 = x_267; +x_191 = x_275; +goto block_242; +} +} +else +{ +uint8_t x_276; +lean_dec(x_189); +lean_dec(x_188); +lean_dec(x_2); +x_276 = !lean_is_exclusive(x_265); +if (x_276 == 0) +{ +return x_265; +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_277 = lean_ctor_get(x_265, 0); +x_278 = lean_ctor_get(x_265, 1); +lean_inc(x_278); +lean_inc(x_277); +lean_dec(x_265); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_277); +lean_ctor_set(x_279, 1, x_278); +return x_279; +} +} +} +else +{ +lean_object* x_280; +lean_dec(x_188); +x_280 = lean_ctor_get(x_264, 0); +lean_inc(x_280); +lean_dec(x_264); +x_190 = x_280; +x_191 = x_3; +goto block_242; +} +} +block_242: +{ +lean_object* x_192; lean_object* x_193; uint8_t x_204; +x_204 = lean_expr_has_expr_mvar(x_189); +if (x_204 == 0) +{ +uint8_t x_205; +x_205 = lean_expr_has_level_mvar(x_189); +if (x_205 == 0) +{ +x_192 = x_189; +x_193 = x_191; +goto block_203; +} +else +{ +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_191, 2); +lean_inc(x_206); +x_207 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_206, x_189); +lean_dec(x_206); +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_208; +lean_inc(x_189); +x_208 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_189, x_191); +if (lean_obj_tag(x_208) == 0) +{ +lean_object* x_209; lean_object* x_210; uint8_t x_211; +x_209 = lean_ctor_get(x_208, 1); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 0); +lean_inc(x_210); +lean_dec(x_208); +x_211 = !lean_is_exclusive(x_209); +if (x_211 == 0) +{ +lean_object* x_212; lean_object* x_213; +x_212 = lean_ctor_get(x_209, 2); +lean_inc(x_210); +x_213 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_212, x_189, x_210); +lean_ctor_set(x_209, 2, x_213); +x_192 = x_210; +x_193 = x_209; +goto block_203; +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_214 = lean_ctor_get(x_209, 0); +x_215 = lean_ctor_get(x_209, 1); +x_216 = lean_ctor_get(x_209, 2); +lean_inc(x_216); +lean_inc(x_215); +lean_inc(x_214); +lean_dec(x_209); +lean_inc(x_210); +x_217 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_216, x_189, x_210); +x_218 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_218, 0, x_214); +lean_ctor_set(x_218, 1, x_215); +lean_ctor_set(x_218, 2, x_217); +x_192 = x_210; +x_193 = x_218; +goto block_203; +} +} +else +{ +uint8_t x_219; +lean_dec(x_190); +lean_dec(x_189); +lean_dec(x_2); +x_219 = !lean_is_exclusive(x_208); +if (x_219 == 0) +{ +return x_208; +} +else +{ +lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_220 = lean_ctor_get(x_208, 0); +x_221 = lean_ctor_get(x_208, 1); +lean_inc(x_221); +lean_inc(x_220); +lean_dec(x_208); +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_dec(x_189); +x_223 = lean_ctor_get(x_207, 0); +lean_inc(x_223); +lean_dec(x_207); +x_192 = x_223; +x_193 = x_191; +goto block_203; +} +} +} +else +{ +lean_object* x_224; lean_object* x_225; +x_224 = lean_ctor_get(x_191, 2); +lean_inc(x_224); +x_225 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_224, x_189); +lean_dec(x_224); +if (lean_obj_tag(x_225) == 0) +{ +lean_object* x_226; +lean_inc(x_189); +x_226 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_189, x_191); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; uint8_t x_229; +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, 2); +lean_inc(x_228); +x_231 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_230, x_189, x_228); +lean_ctor_set(x_227, 2, x_231); +x_192 = x_228; +x_193 = x_227; +goto block_203; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_232 = lean_ctor_get(x_227, 0); +x_233 = lean_ctor_get(x_227, 1); +x_234 = lean_ctor_get(x_227, 2); +lean_inc(x_234); +lean_inc(x_233); +lean_inc(x_232); +lean_dec(x_227); +lean_inc(x_228); +x_235 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_234, x_189, x_228); +x_236 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_236, 0, x_232); +lean_ctor_set(x_236, 1, x_233); +lean_ctor_set(x_236, 2, x_235); +x_192 = x_228; +x_193 = x_236; +goto block_203; +} +} +else +{ +uint8_t x_237; +lean_dec(x_190); +lean_dec(x_189); +lean_dec(x_2); +x_237 = !lean_is_exclusive(x_226); +if (x_237 == 0) +{ +return x_226; +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_226, 0); +x_239 = lean_ctor_get(x_226, 1); +lean_inc(x_239); +lean_inc(x_238); +lean_dec(x_226); +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +return x_240; +} +} +} +else +{ +lean_object* x_241; +lean_dec(x_189); +x_241 = lean_ctor_get(x_225, 0); +lean_inc(x_241); +lean_dec(x_225); +x_192 = x_241; +x_193 = x_191; +goto block_203; +} +} +block_203: +{ +if (lean_obj_tag(x_2) == 6) +{ +uint8_t x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +x_195 = lean_expr_update_lambda(x_2, x_194, x_190, x_192); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_193); +return x_196; +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_192); +lean_dec(x_190); +lean_dec(x_2); +x_197 = l_Lean_Expr_constName_x21___closed__1; +x_198 = lean_unsigned_to_nat(475u); +x_199 = lean_unsigned_to_nat(18u); +x_200 = l_Lean_Expr_updateLambda_x21___closed__1; +x_201 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_197, x_198, x_199, x_200); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_193); +return x_202; +} +} +} +} +case 7: +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_336; +x_281 = lean_ctor_get(x_2, 1); +lean_inc(x_281); +x_282 = lean_ctor_get(x_2, 2); +lean_inc(x_282); +x_336 = lean_expr_has_expr_mvar(x_281); +if (x_336 == 0) +{ +uint8_t x_337; +x_337 = lean_expr_has_level_mvar(x_281); +if (x_337 == 0) +{ +x_283 = x_281; +x_284 = x_3; +goto block_335; +} +else +{ +lean_object* x_338; lean_object* x_339; +x_338 = lean_ctor_get(x_3, 2); +lean_inc(x_338); +x_339 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_338, x_281); +lean_dec(x_338); +if (lean_obj_tag(x_339) == 0) +{ +lean_object* x_340; +lean_inc(x_281); +x_340 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_281, x_3); +if (lean_obj_tag(x_340) == 0) +{ +lean_object* x_341; lean_object* x_342; uint8_t x_343; +x_341 = lean_ctor_get(x_340, 1); +lean_inc(x_341); +x_342 = lean_ctor_get(x_340, 0); +lean_inc(x_342); +lean_dec(x_340); +x_343 = !lean_is_exclusive(x_341); +if (x_343 == 0) +{ +lean_object* x_344; lean_object* x_345; +x_344 = lean_ctor_get(x_341, 2); +lean_inc(x_342); +x_345 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_344, x_281, x_342); +lean_ctor_set(x_341, 2, x_345); +x_283 = x_342; +x_284 = x_341; +goto block_335; +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; +x_346 = lean_ctor_get(x_341, 0); +x_347 = lean_ctor_get(x_341, 1); +x_348 = lean_ctor_get(x_341, 2); +lean_inc(x_348); +lean_inc(x_347); +lean_inc(x_346); +lean_dec(x_341); +lean_inc(x_342); +x_349 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_348, x_281, x_342); +x_350 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_350, 0, x_346); +lean_ctor_set(x_350, 1, x_347); +lean_ctor_set(x_350, 2, x_349); +x_283 = x_342; +x_284 = x_350; +goto block_335; +} +} +else +{ +uint8_t x_351; +lean_dec(x_282); +lean_dec(x_281); +lean_dec(x_2); +x_351 = !lean_is_exclusive(x_340); +if (x_351 == 0) +{ +return x_340; +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; +x_352 = lean_ctor_get(x_340, 0); +x_353 = lean_ctor_get(x_340, 1); +lean_inc(x_353); +lean_inc(x_352); +lean_dec(x_340); +x_354 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_354, 0, x_352); +lean_ctor_set(x_354, 1, x_353); +return x_354; +} +} +} +else +{ +lean_object* x_355; +lean_dec(x_281); +x_355 = lean_ctor_get(x_339, 0); +lean_inc(x_355); +lean_dec(x_339); +x_283 = x_355; +x_284 = x_3; +goto block_335; +} +} +} +else +{ +lean_object* x_356; lean_object* x_357; +x_356 = lean_ctor_get(x_3, 2); +lean_inc(x_356); +x_357 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_356, x_281); +lean_dec(x_356); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; +lean_inc(x_281); +x_358 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_281, x_3); +if (lean_obj_tag(x_358) == 0) +{ +lean_object* x_359; lean_object* x_360; uint8_t x_361; +x_359 = lean_ctor_get(x_358, 1); +lean_inc(x_359); +x_360 = lean_ctor_get(x_358, 0); +lean_inc(x_360); +lean_dec(x_358); +x_361 = !lean_is_exclusive(x_359); +if (x_361 == 0) +{ +lean_object* x_362; lean_object* x_363; +x_362 = lean_ctor_get(x_359, 2); +lean_inc(x_360); +x_363 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_362, x_281, x_360); +lean_ctor_set(x_359, 2, x_363); +x_283 = x_360; +x_284 = x_359; +goto block_335; +} +else +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_364 = lean_ctor_get(x_359, 0); +x_365 = lean_ctor_get(x_359, 1); +x_366 = lean_ctor_get(x_359, 2); +lean_inc(x_366); +lean_inc(x_365); +lean_inc(x_364); +lean_dec(x_359); +lean_inc(x_360); +x_367 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_366, x_281, x_360); +x_368 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_368, 0, x_364); +lean_ctor_set(x_368, 1, x_365); +lean_ctor_set(x_368, 2, x_367); +x_283 = x_360; +x_284 = x_368; +goto block_335; +} +} +else +{ +uint8_t x_369; +lean_dec(x_282); +lean_dec(x_281); +lean_dec(x_2); +x_369 = !lean_is_exclusive(x_358); +if (x_369 == 0) +{ +return x_358; +} +else +{ +lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_370 = lean_ctor_get(x_358, 0); +x_371 = lean_ctor_get(x_358, 1); +lean_inc(x_371); +lean_inc(x_370); +lean_dec(x_358); +x_372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_372, 0, x_370); +lean_ctor_set(x_372, 1, x_371); +return x_372; +} +} +} +else +{ +lean_object* x_373; +lean_dec(x_281); +x_373 = lean_ctor_get(x_357, 0); +lean_inc(x_373); +lean_dec(x_357); +x_283 = x_373; +x_284 = x_3; +goto block_335; +} +} +block_335: +{ +lean_object* x_285; lean_object* x_286; uint8_t x_297; +x_297 = lean_expr_has_expr_mvar(x_282); +if (x_297 == 0) +{ +uint8_t x_298; +x_298 = lean_expr_has_level_mvar(x_282); +if (x_298 == 0) +{ +x_285 = x_282; +x_286 = x_284; +goto block_296; +} +else +{ +lean_object* x_299; lean_object* x_300; +x_299 = lean_ctor_get(x_284, 2); +lean_inc(x_299); +x_300 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_299, x_282); +lean_dec(x_299); +if (lean_obj_tag(x_300) == 0) +{ +lean_object* x_301; +lean_inc(x_282); +x_301 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_282, x_284); +if (lean_obj_tag(x_301) == 0) +{ +lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_302 = lean_ctor_get(x_301, 1); +lean_inc(x_302); +x_303 = lean_ctor_get(x_301, 0); +lean_inc(x_303); +lean_dec(x_301); +x_304 = !lean_is_exclusive(x_302); +if (x_304 == 0) +{ +lean_object* x_305; lean_object* x_306; +x_305 = lean_ctor_get(x_302, 2); +lean_inc(x_303); +x_306 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_305, x_282, x_303); +lean_ctor_set(x_302, 2, x_306); +x_285 = x_303; +x_286 = x_302; +goto block_296; +} +else +{ +lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_307 = lean_ctor_get(x_302, 0); +x_308 = lean_ctor_get(x_302, 1); +x_309 = lean_ctor_get(x_302, 2); +lean_inc(x_309); +lean_inc(x_308); +lean_inc(x_307); +lean_dec(x_302); +lean_inc(x_303); +x_310 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_309, x_282, x_303); +x_311 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_311, 0, x_307); +lean_ctor_set(x_311, 1, x_308); +lean_ctor_set(x_311, 2, x_310); +x_285 = x_303; +x_286 = x_311; +goto block_296; +} +} +else +{ +uint8_t x_312; +lean_dec(x_283); +lean_dec(x_282); +lean_dec(x_2); +x_312 = !lean_is_exclusive(x_301); +if (x_312 == 0) +{ +return x_301; +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_313 = lean_ctor_get(x_301, 0); +x_314 = lean_ctor_get(x_301, 1); +lean_inc(x_314); +lean_inc(x_313); +lean_dec(x_301); +x_315 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_315, 0, x_313); +lean_ctor_set(x_315, 1, x_314); +return x_315; +} +} +} +else +{ +lean_object* x_316; +lean_dec(x_282); +x_316 = lean_ctor_get(x_300, 0); +lean_inc(x_316); +lean_dec(x_300); +x_285 = x_316; +x_286 = x_284; +goto block_296; +} +} +} +else +{ +lean_object* x_317; lean_object* x_318; +x_317 = lean_ctor_get(x_284, 2); +lean_inc(x_317); +x_318 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_317, x_282); +lean_dec(x_317); +if (lean_obj_tag(x_318) == 0) +{ +lean_object* x_319; +lean_inc(x_282); +x_319 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_282, x_284); +if (lean_obj_tag(x_319) == 0) +{ +lean_object* x_320; lean_object* x_321; uint8_t x_322; +x_320 = lean_ctor_get(x_319, 1); +lean_inc(x_320); +x_321 = lean_ctor_get(x_319, 0); +lean_inc(x_321); +lean_dec(x_319); +x_322 = !lean_is_exclusive(x_320); +if (x_322 == 0) +{ +lean_object* x_323; lean_object* x_324; +x_323 = lean_ctor_get(x_320, 2); +lean_inc(x_321); +x_324 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_323, x_282, x_321); +lean_ctor_set(x_320, 2, x_324); +x_285 = x_321; +x_286 = x_320; +goto block_296; +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; +x_325 = lean_ctor_get(x_320, 0); +x_326 = lean_ctor_get(x_320, 1); +x_327 = lean_ctor_get(x_320, 2); +lean_inc(x_327); +lean_inc(x_326); +lean_inc(x_325); +lean_dec(x_320); +lean_inc(x_321); +x_328 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_327, x_282, x_321); +x_329 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_329, 0, x_325); +lean_ctor_set(x_329, 1, x_326); +lean_ctor_set(x_329, 2, x_328); +x_285 = x_321; +x_286 = x_329; +goto block_296; +} +} +else +{ +uint8_t x_330; +lean_dec(x_283); +lean_dec(x_282); +lean_dec(x_2); +x_330 = !lean_is_exclusive(x_319); +if (x_330 == 0) +{ +return x_319; +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_331 = lean_ctor_get(x_319, 0); +x_332 = lean_ctor_get(x_319, 1); +lean_inc(x_332); +lean_inc(x_331); +lean_dec(x_319); +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_331); +lean_ctor_set(x_333, 1, x_332); +return x_333; +} +} +} +else +{ +lean_object* x_334; +lean_dec(x_282); +x_334 = lean_ctor_get(x_318, 0); +lean_inc(x_334); +lean_dec(x_318); +x_285 = x_334; +x_286 = x_284; +goto block_296; +} +} +block_296: +{ +if (lean_obj_tag(x_2) == 7) +{ +uint8_t x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); +x_288 = lean_expr_update_forall(x_2, x_287, x_283, x_285); +x_289 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_286); +return x_289; +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +lean_dec(x_285); +lean_dec(x_283); +lean_dec(x_2); +x_290 = l_Lean_Expr_constName_x21___closed__1; +x_291 = lean_unsigned_to_nat(461u); +x_292 = lean_unsigned_to_nat(22u); +x_293 = l_Lean_Expr_updateForall_x21___closed__1; +x_294 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_290, x_291, x_292, x_293); +x_295 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_295, 0, x_294); +lean_ctor_set(x_295, 1, x_286); +return x_295; +} +} +} +} +case 8: +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_470; +x_374 = lean_ctor_get(x_2, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_2, 2); +lean_inc(x_375); +x_376 = lean_ctor_get(x_2, 3); +lean_inc(x_376); +x_470 = lean_expr_has_expr_mvar(x_374); +if (x_470 == 0) +{ +uint8_t x_471; +x_471 = lean_expr_has_level_mvar(x_374); +if (x_471 == 0) +{ +x_377 = x_374; +x_378 = x_3; +goto block_469; +} +else +{ +lean_object* x_472; lean_object* x_473; +x_472 = lean_ctor_get(x_3, 2); +lean_inc(x_472); +x_473 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_472, x_374); +lean_dec(x_472); +if (lean_obj_tag(x_473) == 0) +{ +lean_object* x_474; +lean_inc(x_374); +x_474 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_374, x_3); +if (lean_obj_tag(x_474) == 0) +{ +lean_object* x_475; lean_object* x_476; uint8_t x_477; +x_475 = lean_ctor_get(x_474, 1); +lean_inc(x_475); +x_476 = lean_ctor_get(x_474, 0); +lean_inc(x_476); +lean_dec(x_474); +x_477 = !lean_is_exclusive(x_475); +if (x_477 == 0) +{ +lean_object* x_478; lean_object* x_479; +x_478 = lean_ctor_get(x_475, 2); +lean_inc(x_476); +x_479 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_478, x_374, x_476); +lean_ctor_set(x_475, 2, x_479); +x_377 = x_476; +x_378 = x_475; +goto block_469; +} +else +{ +lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; +x_480 = lean_ctor_get(x_475, 0); +x_481 = lean_ctor_get(x_475, 1); +x_482 = lean_ctor_get(x_475, 2); +lean_inc(x_482); +lean_inc(x_481); +lean_inc(x_480); +lean_dec(x_475); +lean_inc(x_476); +x_483 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_482, x_374, x_476); +x_484 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_484, 0, x_480); +lean_ctor_set(x_484, 1, x_481); +lean_ctor_set(x_484, 2, x_483); +x_377 = x_476; +x_378 = x_484; +goto block_469; +} +} +else +{ +uint8_t x_485; +lean_dec(x_376); +lean_dec(x_375); +lean_dec(x_374); +lean_dec(x_2); +x_485 = !lean_is_exclusive(x_474); +if (x_485 == 0) +{ +return x_474; +} +else +{ +lean_object* x_486; lean_object* x_487; lean_object* x_488; +x_486 = lean_ctor_get(x_474, 0); +x_487 = lean_ctor_get(x_474, 1); +lean_inc(x_487); +lean_inc(x_486); +lean_dec(x_474); +x_488 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_488, 0, x_486); +lean_ctor_set(x_488, 1, x_487); +return x_488; +} +} +} +else +{ +lean_object* x_489; +lean_dec(x_374); +x_489 = lean_ctor_get(x_473, 0); +lean_inc(x_489); +lean_dec(x_473); +x_377 = x_489; +x_378 = x_3; +goto block_469; +} +} +} +else +{ +lean_object* x_490; lean_object* x_491; +x_490 = lean_ctor_get(x_3, 2); +lean_inc(x_490); +x_491 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_490, x_374); +lean_dec(x_490); +if (lean_obj_tag(x_491) == 0) +{ +lean_object* x_492; +lean_inc(x_374); +x_492 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_374, x_3); +if (lean_obj_tag(x_492) == 0) +{ +lean_object* x_493; lean_object* x_494; uint8_t x_495; +x_493 = lean_ctor_get(x_492, 1); +lean_inc(x_493); +x_494 = lean_ctor_get(x_492, 0); +lean_inc(x_494); +lean_dec(x_492); +x_495 = !lean_is_exclusive(x_493); +if (x_495 == 0) +{ +lean_object* x_496; lean_object* x_497; +x_496 = lean_ctor_get(x_493, 2); +lean_inc(x_494); +x_497 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_496, x_374, x_494); +lean_ctor_set(x_493, 2, x_497); +x_377 = x_494; +x_378 = x_493; +goto block_469; +} +else +{ +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_498 = lean_ctor_get(x_493, 0); +x_499 = lean_ctor_get(x_493, 1); +x_500 = lean_ctor_get(x_493, 2); +lean_inc(x_500); +lean_inc(x_499); +lean_inc(x_498); +lean_dec(x_493); +lean_inc(x_494); +x_501 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_500, x_374, x_494); +x_502 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_502, 0, x_498); +lean_ctor_set(x_502, 1, x_499); +lean_ctor_set(x_502, 2, x_501); +x_377 = x_494; +x_378 = x_502; +goto block_469; +} +} +else +{ +uint8_t x_503; +lean_dec(x_376); +lean_dec(x_375); +lean_dec(x_374); +lean_dec(x_2); +x_503 = !lean_is_exclusive(x_492); +if (x_503 == 0) +{ +return x_492; +} +else +{ +lean_object* x_504; lean_object* x_505; lean_object* x_506; +x_504 = lean_ctor_get(x_492, 0); +x_505 = lean_ctor_get(x_492, 1); +lean_inc(x_505); +lean_inc(x_504); +lean_dec(x_492); +x_506 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_506, 0, x_504); +lean_ctor_set(x_506, 1, x_505); +return x_506; +} +} +} +else +{ +lean_object* x_507; +lean_dec(x_374); +x_507 = lean_ctor_get(x_491, 0); +lean_inc(x_507); +lean_dec(x_491); +x_377 = x_507; +x_378 = x_3; +goto block_469; +} +} +block_469: +{ +lean_object* x_379; lean_object* x_380; uint8_t x_431; +x_431 = lean_expr_has_expr_mvar(x_375); +if (x_431 == 0) +{ +uint8_t x_432; +x_432 = lean_expr_has_level_mvar(x_375); +if (x_432 == 0) +{ +x_379 = x_375; +x_380 = x_378; +goto block_430; +} +else +{ +lean_object* x_433; lean_object* x_434; +x_433 = lean_ctor_get(x_378, 2); +lean_inc(x_433); +x_434 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_433, x_375); +lean_dec(x_433); +if (lean_obj_tag(x_434) == 0) +{ +lean_object* x_435; +lean_inc(x_375); +x_435 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_375, x_378); +if (lean_obj_tag(x_435) == 0) +{ +lean_object* x_436; lean_object* x_437; uint8_t x_438; +x_436 = lean_ctor_get(x_435, 1); +lean_inc(x_436); +x_437 = lean_ctor_get(x_435, 0); +lean_inc(x_437); +lean_dec(x_435); +x_438 = !lean_is_exclusive(x_436); +if (x_438 == 0) +{ +lean_object* x_439; lean_object* x_440; +x_439 = lean_ctor_get(x_436, 2); +lean_inc(x_437); +x_440 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_439, x_375, x_437); +lean_ctor_set(x_436, 2, x_440); +x_379 = x_437; +x_380 = x_436; +goto block_430; +} +else +{ +lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_441 = lean_ctor_get(x_436, 0); +x_442 = lean_ctor_get(x_436, 1); +x_443 = lean_ctor_get(x_436, 2); +lean_inc(x_443); +lean_inc(x_442); +lean_inc(x_441); +lean_dec(x_436); +lean_inc(x_437); +x_444 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_443, x_375, x_437); +x_445 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_445, 0, x_441); +lean_ctor_set(x_445, 1, x_442); +lean_ctor_set(x_445, 2, x_444); +x_379 = x_437; +x_380 = x_445; +goto block_430; +} +} +else +{ +uint8_t x_446; +lean_dec(x_377); +lean_dec(x_376); +lean_dec(x_375); +lean_dec(x_2); +x_446 = !lean_is_exclusive(x_435); +if (x_446 == 0) +{ +return x_435; +} +else +{ +lean_object* x_447; lean_object* x_448; lean_object* x_449; +x_447 = lean_ctor_get(x_435, 0); +x_448 = lean_ctor_get(x_435, 1); +lean_inc(x_448); +lean_inc(x_447); +lean_dec(x_435); +x_449 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_449, 0, x_447); +lean_ctor_set(x_449, 1, x_448); +return x_449; +} +} +} +else +{ +lean_object* x_450; +lean_dec(x_375); +x_450 = lean_ctor_get(x_434, 0); +lean_inc(x_450); +lean_dec(x_434); +x_379 = x_450; +x_380 = x_378; +goto block_430; +} +} +} +else +{ +lean_object* x_451; lean_object* x_452; +x_451 = lean_ctor_get(x_378, 2); +lean_inc(x_451); +x_452 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_451, x_375); +lean_dec(x_451); +if (lean_obj_tag(x_452) == 0) +{ +lean_object* x_453; +lean_inc(x_375); +x_453 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_375, x_378); +if (lean_obj_tag(x_453) == 0) +{ +lean_object* x_454; lean_object* x_455; uint8_t x_456; +x_454 = lean_ctor_get(x_453, 1); +lean_inc(x_454); +x_455 = lean_ctor_get(x_453, 0); +lean_inc(x_455); +lean_dec(x_453); +x_456 = !lean_is_exclusive(x_454); +if (x_456 == 0) +{ +lean_object* x_457; lean_object* x_458; +x_457 = lean_ctor_get(x_454, 2); +lean_inc(x_455); +x_458 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_457, x_375, x_455); +lean_ctor_set(x_454, 2, x_458); +x_379 = x_455; +x_380 = x_454; +goto block_430; +} +else +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; +x_459 = lean_ctor_get(x_454, 0); +x_460 = lean_ctor_get(x_454, 1); +x_461 = lean_ctor_get(x_454, 2); +lean_inc(x_461); +lean_inc(x_460); +lean_inc(x_459); +lean_dec(x_454); +lean_inc(x_455); +x_462 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_461, x_375, x_455); +x_463 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_463, 0, x_459); +lean_ctor_set(x_463, 1, x_460); +lean_ctor_set(x_463, 2, x_462); +x_379 = x_455; +x_380 = x_463; +goto block_430; +} +} +else +{ +uint8_t x_464; +lean_dec(x_377); +lean_dec(x_376); +lean_dec(x_375); +lean_dec(x_2); +x_464 = !lean_is_exclusive(x_453); +if (x_464 == 0) +{ +return x_453; +} +else +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_465 = lean_ctor_get(x_453, 0); +x_466 = lean_ctor_get(x_453, 1); +lean_inc(x_466); +lean_inc(x_465); +lean_dec(x_453); +x_467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_465); +lean_ctor_set(x_467, 1, x_466); +return x_467; +} +} +} +else +{ +lean_object* x_468; +lean_dec(x_375); +x_468 = lean_ctor_get(x_452, 0); +lean_inc(x_468); +lean_dec(x_452); +x_379 = x_468; +x_380 = x_378; +goto block_430; +} +} +block_430: +{ +lean_object* x_381; lean_object* x_382; uint8_t x_392; +x_392 = lean_expr_has_expr_mvar(x_376); +if (x_392 == 0) +{ +uint8_t x_393; +x_393 = lean_expr_has_level_mvar(x_376); +if (x_393 == 0) +{ +x_381 = x_376; +x_382 = x_380; +goto block_391; +} +else +{ +lean_object* x_394; lean_object* x_395; +x_394 = lean_ctor_get(x_380, 2); +lean_inc(x_394); +x_395 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_394, x_376); +lean_dec(x_394); +if (lean_obj_tag(x_395) == 0) +{ +lean_object* x_396; +lean_inc(x_376); +x_396 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_376, x_380); +if (lean_obj_tag(x_396) == 0) +{ +lean_object* x_397; lean_object* x_398; uint8_t x_399; +x_397 = lean_ctor_get(x_396, 1); +lean_inc(x_397); +x_398 = lean_ctor_get(x_396, 0); +lean_inc(x_398); +lean_dec(x_396); +x_399 = !lean_is_exclusive(x_397); +if (x_399 == 0) +{ +lean_object* x_400; lean_object* x_401; +x_400 = lean_ctor_get(x_397, 2); +lean_inc(x_398); +x_401 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_400, x_376, x_398); +lean_ctor_set(x_397, 2, x_401); +x_381 = x_398; +x_382 = x_397; +goto block_391; +} +else +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_402 = lean_ctor_get(x_397, 0); +x_403 = lean_ctor_get(x_397, 1); +x_404 = lean_ctor_get(x_397, 2); +lean_inc(x_404); +lean_inc(x_403); +lean_inc(x_402); +lean_dec(x_397); +lean_inc(x_398); +x_405 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_404, x_376, x_398); +x_406 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_406, 0, x_402); +lean_ctor_set(x_406, 1, x_403); +lean_ctor_set(x_406, 2, x_405); +x_381 = x_398; +x_382 = x_406; +goto block_391; +} +} +else +{ +uint8_t x_407; +lean_dec(x_379); +lean_dec(x_377); +lean_dec(x_376); +lean_dec(x_2); +x_407 = !lean_is_exclusive(x_396); +if (x_407 == 0) +{ +return x_396; +} +else +{ +lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_408 = lean_ctor_get(x_396, 0); +x_409 = lean_ctor_get(x_396, 1); +lean_inc(x_409); +lean_inc(x_408); +lean_dec(x_396); +x_410 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_410, 0, x_408); +lean_ctor_set(x_410, 1, x_409); +return x_410; +} +} +} +else +{ +lean_object* x_411; +lean_dec(x_376); +x_411 = lean_ctor_get(x_395, 0); +lean_inc(x_411); +lean_dec(x_395); +x_381 = x_411; +x_382 = x_380; +goto block_391; +} +} +} +else +{ +lean_object* x_412; lean_object* x_413; +x_412 = lean_ctor_get(x_380, 2); +lean_inc(x_412); +x_413 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_412, x_376); +lean_dec(x_412); +if (lean_obj_tag(x_413) == 0) +{ +lean_object* x_414; +lean_inc(x_376); +x_414 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_376, x_380); +if (lean_obj_tag(x_414) == 0) +{ +lean_object* x_415; lean_object* x_416; uint8_t x_417; +x_415 = lean_ctor_get(x_414, 1); +lean_inc(x_415); +x_416 = lean_ctor_get(x_414, 0); +lean_inc(x_416); +lean_dec(x_414); +x_417 = !lean_is_exclusive(x_415); +if (x_417 == 0) +{ +lean_object* x_418; lean_object* x_419; +x_418 = lean_ctor_get(x_415, 2); +lean_inc(x_416); +x_419 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_418, x_376, x_416); +lean_ctor_set(x_415, 2, x_419); +x_381 = x_416; +x_382 = x_415; +goto block_391; +} +else +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; +x_420 = lean_ctor_get(x_415, 0); +x_421 = lean_ctor_get(x_415, 1); +x_422 = lean_ctor_get(x_415, 2); +lean_inc(x_422); +lean_inc(x_421); +lean_inc(x_420); +lean_dec(x_415); +lean_inc(x_416); +x_423 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_422, x_376, x_416); +x_424 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_424, 0, x_420); +lean_ctor_set(x_424, 1, x_421); +lean_ctor_set(x_424, 2, x_423); +x_381 = x_416; +x_382 = x_424; +goto block_391; +} +} +else +{ +uint8_t x_425; +lean_dec(x_379); +lean_dec(x_377); +lean_dec(x_376); +lean_dec(x_2); +x_425 = !lean_is_exclusive(x_414); +if (x_425 == 0) +{ +return x_414; +} +else +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; +x_426 = lean_ctor_get(x_414, 0); +x_427 = lean_ctor_get(x_414, 1); +lean_inc(x_427); +lean_inc(x_426); +lean_dec(x_414); +x_428 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_428, 0, x_426); +lean_ctor_set(x_428, 1, x_427); +return x_428; +} +} +} +else +{ +lean_object* x_429; +lean_dec(x_376); +x_429 = lean_ctor_get(x_413, 0); +lean_inc(x_429); +lean_dec(x_413); +x_381 = x_429; +x_382 = x_380; +goto block_391; +} +} +block_391: +{ +if (lean_obj_tag(x_2) == 8) +{ +lean_object* x_383; lean_object* x_384; +x_383 = lean_expr_update_let(x_2, x_377, x_379, x_381); +x_384 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_384, 0, x_383); +lean_ctor_set(x_384, 1, x_382); +return x_384; +} +else +{ +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; +lean_dec(x_381); +lean_dec(x_379); +lean_dec(x_377); +lean_dec(x_2); +x_385 = l_Lean_Expr_constName_x21___closed__1; +x_386 = lean_unsigned_to_nat(484u); +x_387 = lean_unsigned_to_nat(18u); +x_388 = l_Lean_Expr_letName_x21___closed__1; +x_389 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_385, x_386, x_387, x_388); +x_390 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_390, 0, x_389); +lean_ctor_set(x_390, 1, x_382); +return x_390; +} +} +} +} +} +case 10: +{ +lean_object* x_508; uint8_t x_509; +x_508 = lean_ctor_get(x_2, 1); +lean_inc(x_508); +x_509 = lean_expr_has_expr_mvar(x_508); +if (x_509 == 0) +{ +uint8_t x_510; +x_510 = lean_expr_has_level_mvar(x_508); +if (x_510 == 0) +{ +x_4 = x_508; +x_5 = x_3; +goto block_14; +} +else +{ +lean_object* x_511; lean_object* x_512; +x_511 = lean_ctor_get(x_3, 2); +lean_inc(x_511); +x_512 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_511, x_508); +lean_dec(x_511); +if (lean_obj_tag(x_512) == 0) +{ +lean_object* x_513; +lean_inc(x_508); +x_513 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_508, x_3); +if (lean_obj_tag(x_513) == 0) +{ +lean_object* x_514; lean_object* x_515; uint8_t x_516; +x_514 = lean_ctor_get(x_513, 1); +lean_inc(x_514); +x_515 = lean_ctor_get(x_513, 0); +lean_inc(x_515); +lean_dec(x_513); +x_516 = !lean_is_exclusive(x_514); +if (x_516 == 0) +{ +lean_object* x_517; lean_object* x_518; +x_517 = lean_ctor_get(x_514, 2); +lean_inc(x_515); +x_518 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_517, x_508, x_515); +lean_ctor_set(x_514, 2, x_518); +x_4 = x_515; +x_5 = x_514; +goto block_14; +} +else +{ +lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; +x_519 = lean_ctor_get(x_514, 0); +x_520 = lean_ctor_get(x_514, 1); +x_521 = lean_ctor_get(x_514, 2); +lean_inc(x_521); +lean_inc(x_520); +lean_inc(x_519); +lean_dec(x_514); +lean_inc(x_515); +x_522 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_521, x_508, x_515); +x_523 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_523, 0, x_519); +lean_ctor_set(x_523, 1, x_520); +lean_ctor_set(x_523, 2, x_522); +x_4 = x_515; +x_5 = x_523; +goto block_14; +} +} +else +{ +uint8_t x_524; +lean_dec(x_508); +lean_dec(x_2); +x_524 = !lean_is_exclusive(x_513); +if (x_524 == 0) +{ +return x_513; +} +else +{ +lean_object* x_525; lean_object* x_526; lean_object* x_527; +x_525 = lean_ctor_get(x_513, 0); +x_526 = lean_ctor_get(x_513, 1); +lean_inc(x_526); +lean_inc(x_525); +lean_dec(x_513); +x_527 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_527, 0, x_525); +lean_ctor_set(x_527, 1, x_526); +return x_527; +} +} +} +else +{ +lean_object* x_528; +lean_dec(x_508); +x_528 = lean_ctor_get(x_512, 0); +lean_inc(x_528); +lean_dec(x_512); +x_4 = x_528; +x_5 = x_3; +goto block_14; +} +} +} +else +{ +lean_object* x_529; lean_object* x_530; +x_529 = lean_ctor_get(x_3, 2); +lean_inc(x_529); +x_530 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_529, x_508); +lean_dec(x_529); +if (lean_obj_tag(x_530) == 0) +{ +lean_object* x_531; +lean_inc(x_508); +x_531 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_508, x_3); +if (lean_obj_tag(x_531) == 0) +{ +lean_object* x_532; lean_object* x_533; uint8_t x_534; +x_532 = lean_ctor_get(x_531, 1); +lean_inc(x_532); +x_533 = lean_ctor_get(x_531, 0); +lean_inc(x_533); +lean_dec(x_531); +x_534 = !lean_is_exclusive(x_532); +if (x_534 == 0) +{ +lean_object* x_535; lean_object* x_536; +x_535 = lean_ctor_get(x_532, 2); +lean_inc(x_533); +x_536 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_535, x_508, x_533); +lean_ctor_set(x_532, 2, x_536); +x_4 = x_533; +x_5 = x_532; +goto block_14; +} +else +{ +lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_537 = lean_ctor_get(x_532, 0); +x_538 = lean_ctor_get(x_532, 1); +x_539 = lean_ctor_get(x_532, 2); +lean_inc(x_539); +lean_inc(x_538); +lean_inc(x_537); +lean_dec(x_532); +lean_inc(x_533); +x_540 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_539, x_508, x_533); +x_541 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_541, 0, x_537); +lean_ctor_set(x_541, 1, x_538); +lean_ctor_set(x_541, 2, x_540); +x_4 = x_533; +x_5 = x_541; +goto block_14; +} +} +else +{ +uint8_t x_542; +lean_dec(x_508); +lean_dec(x_2); +x_542 = !lean_is_exclusive(x_531); +if (x_542 == 0) +{ +return x_531; +} +else +{ +lean_object* x_543; lean_object* x_544; lean_object* x_545; +x_543 = lean_ctor_get(x_531, 0); +x_544 = lean_ctor_get(x_531, 1); +lean_inc(x_544); +lean_inc(x_543); +lean_dec(x_531); +x_545 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_545, 0, x_543); +lean_ctor_set(x_545, 1, x_544); +return x_545; +} +} +} +else +{ +lean_object* x_546; +lean_dec(x_508); +x_546 = lean_ctor_get(x_530, 0); +lean_inc(x_546); +lean_dec(x_530); +x_4 = x_546; +x_5 = x_3; +goto block_14; +} +} +} +case 11: +{ +lean_object* x_547; uint8_t x_548; +x_547 = lean_ctor_get(x_2, 2); +lean_inc(x_547); +x_548 = lean_expr_has_expr_mvar(x_547); +if (x_548 == 0) +{ +uint8_t x_549; +x_549 = lean_expr_has_level_mvar(x_547); +if (x_549 == 0) +{ +x_15 = x_547; +x_16 = x_3; +goto block_25; +} +else +{ +lean_object* x_550; lean_object* x_551; +x_550 = lean_ctor_get(x_3, 2); +lean_inc(x_550); +x_551 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_550, x_547); +lean_dec(x_550); +if (lean_obj_tag(x_551) == 0) +{ +lean_object* x_552; +lean_inc(x_547); +x_552 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_547, x_3); +if (lean_obj_tag(x_552) == 0) +{ +lean_object* x_553; lean_object* x_554; uint8_t x_555; +x_553 = lean_ctor_get(x_552, 1); +lean_inc(x_553); +x_554 = lean_ctor_get(x_552, 0); +lean_inc(x_554); +lean_dec(x_552); +x_555 = !lean_is_exclusive(x_553); +if (x_555 == 0) +{ +lean_object* x_556; lean_object* x_557; +x_556 = lean_ctor_get(x_553, 2); +lean_inc(x_554); +x_557 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_556, x_547, x_554); +lean_ctor_set(x_553, 2, x_557); +x_15 = x_554; +x_16 = x_553; +goto block_25; +} +else +{ +lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; +x_558 = lean_ctor_get(x_553, 0); +x_559 = lean_ctor_get(x_553, 1); +x_560 = lean_ctor_get(x_553, 2); +lean_inc(x_560); +lean_inc(x_559); +lean_inc(x_558); +lean_dec(x_553); +lean_inc(x_554); +x_561 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_560, x_547, x_554); +x_562 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_562, 0, x_558); +lean_ctor_set(x_562, 1, x_559); +lean_ctor_set(x_562, 2, x_561); +x_15 = x_554; +x_16 = x_562; +goto block_25; +} +} +else +{ +uint8_t x_563; +lean_dec(x_547); +lean_dec(x_2); +x_563 = !lean_is_exclusive(x_552); +if (x_563 == 0) +{ +return x_552; +} +else +{ +lean_object* x_564; lean_object* x_565; lean_object* x_566; +x_564 = lean_ctor_get(x_552, 0); +x_565 = lean_ctor_get(x_552, 1); +lean_inc(x_565); +lean_inc(x_564); +lean_dec(x_552); +x_566 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_566, 0, x_564); +lean_ctor_set(x_566, 1, x_565); +return x_566; +} +} +} +else +{ +lean_object* x_567; +lean_dec(x_547); +x_567 = lean_ctor_get(x_551, 0); +lean_inc(x_567); +lean_dec(x_551); +x_15 = x_567; +x_16 = x_3; +goto block_25; +} +} +} +else +{ +lean_object* x_568; lean_object* x_569; +x_568 = lean_ctor_get(x_3, 2); +lean_inc(x_568); +x_569 = l_HashMapImp_find___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__1(x_568, x_547); +lean_dec(x_568); +if (lean_obj_tag(x_569) == 0) +{ +lean_object* x_570; +lean_inc(x_547); +x_570 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_547, x_3); +if (lean_obj_tag(x_570) == 0) +{ +lean_object* x_571; lean_object* x_572; uint8_t x_573; +x_571 = lean_ctor_get(x_570, 1); +lean_inc(x_571); +x_572 = lean_ctor_get(x_570, 0); +lean_inc(x_572); +lean_dec(x_570); +x_573 = !lean_is_exclusive(x_571); +if (x_573 == 0) +{ +lean_object* x_574; lean_object* x_575; +x_574 = lean_ctor_get(x_571, 2); +lean_inc(x_572); +x_575 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_574, x_547, x_572); +lean_ctor_set(x_571, 2, x_575); +x_15 = x_572; +x_16 = x_571; +goto block_25; +} +else +{ +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; +x_576 = lean_ctor_get(x_571, 0); +x_577 = lean_ctor_get(x_571, 1); +x_578 = lean_ctor_get(x_571, 2); +lean_inc(x_578); +lean_inc(x_577); +lean_inc(x_576); +lean_dec(x_571); +lean_inc(x_572); +x_579 = l_HashMapImp_insert___at_Lean_AbstractMetavarContext_InstantiateExprMVars_visit___spec__3(x_578, x_547, x_572); +x_580 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_580, 0, x_576); +lean_ctor_set(x_580, 1, x_577); +lean_ctor_set(x_580, 2, x_579); +x_15 = x_572; +x_16 = x_580; +goto block_25; +} +} +else +{ +uint8_t x_581; +lean_dec(x_547); +lean_dec(x_2); +x_581 = !lean_is_exclusive(x_570); +if (x_581 == 0) +{ +return x_570; +} +else +{ +lean_object* x_582; lean_object* x_583; lean_object* x_584; +x_582 = lean_ctor_get(x_570, 0); +x_583 = lean_ctor_get(x_570, 1); +lean_inc(x_583); +lean_inc(x_582); +lean_dec(x_570); +x_584 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_584, 0, x_582); +lean_ctor_set(x_584, 1, x_583); +return x_584; +} +} +} +else +{ +lean_object* x_585; +lean_dec(x_547); +x_585 = lean_ctor_get(x_569, 0); +lean_inc(x_585); +lean_dec(x_569); +x_15 = x_585; +x_16 = x_3; +goto block_25; +} +} +} +default: +{ +lean_object* x_586; +x_586 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_586, 0, x_2); +lean_ctor_set(x_586, 1, x_3); +return x_586; +} +} +block_14: +{ +if (lean_obj_tag(x_2) == 10) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_expr_update_mdata(x_2, x_4); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +else +{ +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_dec(x_4); +lean_dec(x_2); +x_8 = l_Lean_Expr_constName_x21___closed__1; +x_9 = lean_unsigned_to_nat(442u); +x_10 = lean_unsigned_to_nat(15u); +x_11 = l_Lean_Expr_updateMData_x21___closed__1; +x_12 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_8, x_9, x_10, 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_5); +return x_13; +} +} +block_25: +{ +if (lean_obj_tag(x_2) == 11) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_expr_update_proj(x_2, x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_15); +lean_dec(x_2); +x_19 = l_Lean_Expr_constName_x21___closed__1; +x_20 = lean_unsigned_to_nat(447u); +x_21 = lean_unsigned_to_nat(16u); +x_22 = l_Lean_Expr_updateProj_x21___closed__1; +x_23 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_19, x_20, x_21, 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_16); +return x_24; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_expr_has_expr_mvar(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; +} +else +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_3); +if (x_7 == 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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_3); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 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_14; +x_14 = lean_ctor_get(x_12, 2); +lean_dec(x_14); +lean_ctor_set(x_12, 2, x_8); +return x_10; +} +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_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; +} +} +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_inc(x_18); +lean_inc(x_19); +lean_dec(x_10); +x_20 = lean_ctor_get(x_18, 0); +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; +} else { + lean_dec_ref(x_18); + x_22 = lean_box(0); +} +if (lean_is_scalar(x_22)) { + x_23 = lean_alloc_ctor(0, 3, 0); +} else { + x_23 = x_22; +} +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; +} +} +else +{ +uint8_t x_25; +lean_dec(x_8); +x_25 = !lean_is_exclusive(x_10); +if (x_25 == 0) +{ +return x_10; +} +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_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; +} +} +} +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_inc(x_30); +lean_inc(x_29); +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_33); +if (lean_obj_tag(x_34) == 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_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; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +x_38 = lean_ctor_get(x_35, 0); +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; +} else { + lean_dec_ref(x_34); + x_45 = lean_box(0); +} +if (lean_is_scalar(x_45)) { + x_46 = lean_alloc_ctor(1, 2, 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; +} +} +} +} +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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; +} else { + lean_dec_ref(x_58); + x_62 = lean_box(0); +} +if (lean_is_scalar(x_62)) { + x_63 = lean_alloc_ctor(0, 3, 0); +} else { + x_63 = x_62; +} +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_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(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_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_exprIsInhabited; +x_8 = lean_array_get(x_7, x_1, x_2); +x_9 = l_Lean_LocalContext_findFVar(x_3, x_8); +lean_dec(x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_10 = l_Lean_AbstractMetavarContext_InstantiateExprMVars_instantiateDelayedAux___main___rarg___closed__1; +x_11 = lean_unsigned_to_nat(380u); +x_12 = lean_unsigned_to_nat(16u); +x_13 = l_Nat_foldRevAux___main___at_Lean_LocalContext_mkBinding___spec__1___closed__1; +x_14 = l_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63(x_10, x_11, x_12, x_13, x_6); +return x_14; +} +else +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_9, 0); +lean_inc(x_15); +lean_dec(x_9); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* 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_19 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(x_1, x_17, x_6); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_expr_abstract_range(x_21, x_2, x_1); +lean_dec(x_21); +if (x_4 == 0) +{ +lean_object* x_23; +x_23 = lean_expr_mk_forall(x_16, x_18, x_22, x_5); +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_5); +lean_ctor_set(x_19, 0, x_24); +return x_19; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +x_27 = lean_expr_abstract_range(x_25, x_2, x_1); +lean_dec(x_25); +if (x_4 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_expr_mk_forall(x_16, x_18, x_27, x_5); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +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_5); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_26); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_16); +lean_dec(x_5); +x_32 = !lean_is_exclusive(x_19); +if (x_32 == 0) +{ +return x_19; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_19, 0); +x_34 = lean_ctor_get(x_19, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_19); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = lean_ctor_get(x_15, 2); +lean_inc(x_36); +x_37 = lean_ctor_get(x_15, 3); +lean_inc(x_37); +x_38 = lean_ctor_get(x_15, 4); +lean_inc(x_38); +lean_dec(x_15); +x_39 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(x_1, x_37, x_6); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +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_expr_abstract_range(x_40, x_2, x_1); +lean_dec(x_40); +x_43 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(x_1, x_38, 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; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_expr_abstract_range(x_45, x_2, x_1); +lean_dec(x_45); +x_47 = lean_expr_mk_let(x_36, x_42, x_46, x_5); +lean_ctor_set(x_43, 0, x_47); +return x_43; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_43, 0); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_43); +x_50 = lean_expr_abstract_range(x_48, x_2, x_1); +lean_dec(x_48); +x_51 = lean_expr_mk_let(x_36, x_42, x_50, x_5); +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 +{ +uint8_t x_53; +lean_dec(x_42); +lean_dec(x_36); +lean_dec(x_5); +x_53 = !lean_is_exclusive(x_43); +if (x_53 == 0) +{ +return x_43; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_43, 0); +x_55 = lean_ctor_get(x_43, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_43); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_38); +lean_dec(x_36); +lean_dec(x_5); +x_57 = !lean_is_exclusive(x_39); +if (x_57 == 0) +{ +return x_39; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_39, 0); +x_59 = lean_ctor_get(x_39, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_39); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +} +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68(uint8_t 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; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_5, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_sub(x_5, x_10); +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); +x_13 = lean_box(x_1); +lean_inc(x_2); +lean_inc(x_11); +lean_inc(x_3); +x_14 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___lambda__1___boxed), 6, 5); +lean_closure_set(x_14, 0, x_3); +lean_closure_set(x_14, 1, x_11); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_13); +lean_closure_set(x_14, 4, x_6); +x_15 = lean_box(x_1); +x_16 = lean_alloc_closure((void*)(l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___boxed), 7, 5); +lean_closure_set(x_16, 0, x_15); +lean_closure_set(x_16, 1, x_2); +lean_closure_set(x_16, 2, x_3); +lean_closure_set(x_16, 3, x_4); +lean_closure_set(x_16, 4, x_11); +x_17 = lean_apply_5(x_12, lean_box(0), lean_box(0), x_14, x_16, x_7); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_3); +lean_dec(x_2); +x_18 = lean_ctor_get(x_4, 0); +lean_inc(x_18); +lean_dec(x_4); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_apply_3(x_19, lean_box(0), x_6, x_7); +return x_20; +} +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__67(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_array_get_size(x_3); +x_7 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(x_3, x_4, x_5); +if (lean_obj_tag(x_7) == 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_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_expr_abstract_range(x_8, x_6, x_3); +lean_dec(x_8); +x_11 = l_EIO_Monad___closed__1; +x_12 = l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68(x_1, x_2, x_3, x_11, x_6, x_10, x_9); +lean_dec(x_6); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +return x_7; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_7); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_HashMap_Inhabited___closed__1; +x_8 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_8, 0, x_2); +lean_ctor_set(x_8, 1, x_3); +lean_ctor_set(x_8, 2, x_7); +x_9 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__67(x_1, x_4, x_5, x_6, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_9, 0); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; +} +} +} +lean_object* l_Lean_MetavarContext_mkLambda(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 = 1; +x_7 = l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1(x_6, x_1, x_2, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__5___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__5(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__6(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__10___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__10(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__11___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__11(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__9___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_Lean_MetavarContext_mkLambda___spec__9(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__12___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__12(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__8___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__8(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__7(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__16___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__16(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__17___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__17(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__15___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_Lean_MetavarContext_mkLambda___spec__15(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__18___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__18(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__14___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__14(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__13(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__22___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__22(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__23___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__23(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__21___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_Lean_MetavarContext_mkLambda___spec__21(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__24___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__24(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__20___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__20(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__19(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__28___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__28(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__29___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__29(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__27___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_Lean_MetavarContext_mkLambda___spec__27(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__30___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__30(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__26___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__26(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__25(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__34___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__34(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__35___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__35(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__33___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_Lean_MetavarContext_mkLambda___spec__33(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__36___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__36(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__32___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__32(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__31(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__40___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__40(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__41___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__41(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__39___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_Lean_MetavarContext_mkLambda___spec__39(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__42___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__42(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__38___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__38(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__37(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__46___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__46(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__47___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__47(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__45___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_Lean_MetavarContext_mkLambda___spec__45(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__48___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__48(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__44___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__44(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__43(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__52___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__52(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__53___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__53(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__51___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_Lean_MetavarContext_mkLambda___spec__51(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__54___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__54(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__50___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__50(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__49(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__58___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__58(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__59___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__59(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__57___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_Lean_MetavarContext_mkLambda___spec__57(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_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__60___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_Array_anyMAux___main___at_Lean_MetavarContext_mkLambda___spec__60(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__56___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_PersistentArray_anyM___at_Lean_MetavarContext_mkLambda___spec__56(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_AbstractMetavarContext_DependsOn_dep___main___at_Lean_MetavarContext_mkLambda___spec__55(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_LocalContext_foldlFromM___at_Lean_MetavarContext_mkLambda___spec__61___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_Lean_MetavarContext_mkLambda___spec__61(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_4); +return x_7; +} +} +lean_object* l_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63___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_panicWithPos___at_Lean_MetavarContext_mkLambda___spec__63(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_4); +lean_dec(x_4); +x_8 = l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___lambda__1(x_1, x_2, x_3, x_7, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__64(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +return x_9; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__62___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_1); +lean_dec(x_1); +x_7 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__62(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65___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_Array_umapMAux___main___at_Lean_MetavarContext_mkLambda___spec__65(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Init_Lean_Expr_3__withAppRevAux___main___at_Lean_MetavarContext_mkLambda___spec__66___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__withAppRevAux___main___at_Lean_MetavarContext_mkLambda___spec__66(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDepsAux___main___at_Lean_MetavarContext_mkLambda___spec__3(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_AbstractMetavarContext_MkBinding_elimMVarDeps___at_Lean_MetavarContext_mkLambda___spec__2(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_4); +lean_dec(x_4); +x_8 = l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___lambda__1(x_1, x_2, x_3, x_7, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_1); +lean_dec(x_1); +x_9 = l_Nat_foldRevMAux___main___at_Lean_MetavarContext_mkLambda___spec__68(x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_5); +return x_9; +} +} +lean_object* l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__67___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_1); +lean_dec(x_1); +x_7 = l_Lean_AbstractMetavarContext_MkBinding_mkBinding___at_Lean_MetavarContext_mkLambda___spec__67(x_6, x_2, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1(x_7, x_2, x_3, x_4, x_5, x_6); +return x_8; +} +} +lean_object* l_Lean_MetavarContext_mkForall(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 = 0; +x_7 = l_Lean_AbstractMetavarContext_mkBinding___at_Lean_MetavarContext_mkLambda___spec__1(x_6, x_1, x_2, x_3, x_4, x_5); +return x_7; +} +} lean_object* initialize_Init_Lean_AbstractMetavarContext(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Lean_MetavarContext(lean_object* w) { @@ -13118,6 +34095,10 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_MetavarContext_mkMetavarContext___closed__1 = _init_l_Lean_MetavarContext_mkMetavarContext___closed__1(); lean_mark_persistent(l_Lean_MetavarContext_mkMetavarContext___closed__1); +l_Lean_MetavarContext_getDecl___closed__1 = _init_l_Lean_MetavarContext_getDecl___closed__1(); +lean_mark_persistent(l_Lean_MetavarContext_getDecl___closed__1); +l_Lean_MetavarContext_getDecl___closed__2 = _init_l_Lean_MetavarContext_getDecl___closed__2(); +lean_mark_persistent(l_Lean_MetavarContext_getDecl___closed__2); l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__1 = _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__1(); lean_mark_persistent(l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__1); l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__2 = _init_l_Lean_MetavarContext_metavarContextIsAbstractMetavarContext___closed__2(); diff --git a/src/stage0/Init/Lean/MonadCache.c b/src/stage0/Init/Lean/MonadCache.c new file mode 100644 index 0000000000..edc9b0fa47 --- /dev/null +++ b/src/stage0/Init/Lean/MonadCache.c @@ -0,0 +1,1100 @@ +// Lean compiler output +// Module: Init.Lean.MonadCache +// Imports: Init.Control.Reader Init.Control.EState Init.Data.HashMap.Default +#include "runtime/lean.h" +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Lean_WithHashMapCache_modifyCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_ExceptT_lift___rarg___closed__1; +lean_object* l_Lean_exceptLift___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_getModify___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_fromState(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_modifyCacheE(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift___rarg(lean_object*); +lean_object* l_Lean_WithHashMapCache_estateAdapter___rarg(lean_object*, lean_object*); +lean_object* l_Lean_exceptLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_checkCache(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_stateAdapter(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_cache___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_toEState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_cache(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_exceptLift___rarg(lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_getCacheE(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_checkCache___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1; +lean_object* l_Lean_WithHashMapCache_modifyCacheE___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_checkCache___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_modifyCacheE___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_getCache___rarg(lean_object*); +lean_object* l_Lean_WithHashMapCache_fromEState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_toEState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_toState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_checkCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_toEState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_modifyCache(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_checkCache___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_HashMapImp_find___rarg(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_Lean_WithHashMapCache_fromState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_getCache___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_getCacheE___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_fromState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_modifyCache___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_getCacheE___rarg(lean_object*); +lean_object* l_Lean_WithHashMapCache_toState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_fromEState___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1; +lean_object* l_Lean_WithHashMapCache_stateAdapter___rarg(lean_object*, lean_object*); +extern lean_object* l_HashMap_Inhabited___closed__1; +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_exceptLift(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_readerLift(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_getCache(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_toState(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_estateAdapter(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_WithHashMapCache_fromEState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_exceptLift___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_checkCache___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +lean_inc(x_5); +x_7 = lean_apply_2(x_6, x_2, x_5); +x_8 = lean_alloc_closure((void*)(l_getModify___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_8, 0, x_3); +lean_closure_set(x_8, 1, x_5); +x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +} +lean_object* l_Lean_checkCache___rarg___lambda__2(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) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_inc(x_2); +x_7 = lean_apply_1(x_1, x_2); +lean_inc(x_5); +x_8 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg___lambda__1), 5, 4); +lean_closure_set(x_8, 0, x_3); +lean_closure_set(x_8, 1, x_2); +lean_closure_set(x_8, 2, x_4); +lean_closure_set(x_8, 3, x_5); +x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_10 = lean_ctor_get(x_6, 0); +lean_inc(x_10); +lean_dec(x_6); +x_11 = lean_ctor_get(x_4, 0); +lean_inc(x_11); +lean_dec(x_4); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_apply_2(x_12, lean_box(0), x_10); +return x_13; +} +} +} +lean_object* l_Lean_checkCache___rarg(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; +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_inc(x_3); +x_7 = lean_apply_1(x_6, x_3); +lean_inc(x_5); +x_8 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg___lambda__2), 6, 5); +lean_closure_set(x_8, 0, x_4); +lean_closure_set(x_8, 1, x_3); +lean_closure_set(x_8, 2, x_1); +lean_closure_set(x_8, 3, x_2); +lean_closure_set(x_8, 4, x_5); +x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +} +lean_object* l_Lean_checkCache(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg), 4, 0); +return x_4; +} +} +lean_object* l_Lean_checkCache___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_checkCache(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_readerLift___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_4, x_2); +return x_5; +} +} +lean_object* l_Lean_readerLift___rarg___lambda__2(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; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_5, x_2, x_3); +return x_6; +} +} +lean_object* l_Lean_readerLift___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +lean_inc(x_1); +x_2 = lean_alloc_closure((void*)(l_Lean_readerLift___rarg___lambda__1___boxed), 3, 1); +lean_closure_set(x_2, 0, x_1); +x_3 = lean_alloc_closure((void*)(l_Lean_readerLift___rarg___lambda__2___boxed), 4, 1); +lean_closure_set(x_3, 0, x_1); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +lean_object* l_Lean_readerLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_readerLift___rarg), 1, 0); +return x_5; +} +} +lean_object* l_Lean_readerLift___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_readerLift___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_readerLift___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_readerLift___rarg___lambda__2(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +lean_object* l_Lean_readerLift___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_readerLift(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +lean_object* l_Lean_exceptLift___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_4, x_3); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +lean_dec(x_2); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_ExceptT_lift___rarg___closed__1; +x_10 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_9, x_5); +return x_10; +} +} +lean_object* l_Lean_exceptLift___rarg___lambda__2(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; lean_object* x_10; lean_object* x_11; +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_5, x_3, x_4); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +x_10 = l_ExceptT_lift___rarg___closed__1; +x_11 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_6); +return x_11; +} +} +lean_object* l_Lean_exceptLift___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_inc(x_2); +lean_inc(x_1); +x_3 = lean_alloc_closure((void*)(l_Lean_exceptLift___rarg___lambda__1), 3, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +x_4 = lean_alloc_closure((void*)(l_Lean_exceptLift___rarg___lambda__2), 4, 2); +lean_closure_set(x_4, 0, x_1); +lean_closure_set(x_4, 1, x_2); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_4); +return x_5; +} +} +lean_object* l_Lean_exceptLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_exceptLift___rarg), 2, 0); +return x_5; +} +} +lean_object* l_Lean_exceptLift___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_exceptLift(x_1, x_2, x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_8 = l_HashMapImp_find___rarg(x_2, x_3, x_5, x_4); +x_9 = lean_apply_2(x_7, lean_box(0), x_8); +return x_9; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_findCached___rarg___lambda__1___boxed), 5, 4); +lean_closure_set(x_8, 0, x_3); +lean_closure_set(x_8, 1, x_1); +lean_closure_set(x_8, 2, x_2); +lean_closure_set(x_8, 3, x_5); +x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_findCached___rarg), 5, 0); +return x_4; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___rarg___lambda__1___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_Lean_MonadHashMapCacheAdapter_findCached___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +return x_6; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_findCached___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadHashMapCacheAdapter_findCached(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1(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_HashMapImp_insert___rarg(x_1, x_2, x_5, x_3, x_4); +return x_6; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_cache___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; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1), 5, 4); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_2); +lean_closure_set(x_7, 2, x_4); +lean_closure_set(x_7, 3, x_5); +x_8 = lean_apply_1(x_6, x_7); +return x_8; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_cache(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_cache___rarg), 5, 0); +return x_4; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_cache___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadHashMapCacheAdapter_cache(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache___rarg(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_inc(x_4); +lean_inc(x_2); +lean_inc(x_1); +x_5 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_findCached___rarg), 5, 4); +lean_closure_set(x_5, 0, x_1); +lean_closure_set(x_5, 1, x_2); +lean_closure_set(x_5, 2, x_3); +lean_closure_set(x_5, 3, x_4); +x_6 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_cache___rarg), 5, 3); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_2); +lean_closure_set(x_6, 2, x_4); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache___rarg), 4, 0); +return x_4; +} +} +lean_object* l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_MonadHashMapCacheAdapter_Lean_MonadCache(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_WithHashMapCache_getCache___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_WithHashMapCache_getCache(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 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_getCache___rarg), 1, 0); +return x_6; +} +} +lean_object* l_Lean_WithHashMapCache_getCache___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_Lean_WithHashMapCache_getCache(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +return x_6; +} +} +lean_object* l_Lean_WithHashMapCache_modifyCache___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 1); +x_7 = lean_apply_1(x_3, x_6); +lean_ctor_set(x_4, 1, x_7); +x_8 = lean_box(0); +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; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +x_12 = lean_apply_1(x_3, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_WithHashMapCache_modifyCache(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_modifyCache___rarg___boxed), 4, 0); +return x_4; +} +} +lean_object* l_Lean_WithHashMapCache_modifyCache___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_Lean_WithHashMapCache_modifyCache___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* _init_l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_getCache___rarg), 1, 0); +return x_1; +} +} +lean_object* l_Lean_WithHashMapCache_stateAdapter___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_modifyCache___rarg___boxed), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +x_4 = l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_stateAdapter(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_stateAdapter___rarg), 2, 0); +return x_4; +} +} +lean_object* l_Lean_WithHashMapCache_getCacheE___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_ctor_get(x_1, 1); +lean_inc(x_2); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_WithHashMapCache_getCacheE(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 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_getCacheE___rarg), 1, 0); +return x_7; +} +} +lean_object* l_Lean_WithHashMapCache_getCacheE___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_WithHashMapCache_getCacheE(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +return x_7; +} +} +lean_object* l_Lean_WithHashMapCache_modifyCacheE___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_4, 1); +x_7 = lean_apply_1(x_3, x_6); +lean_ctor_set(x_4, 1, x_7); +x_8 = lean_box(0); +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; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +x_12 = lean_apply_1(x_3, x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_WithHashMapCache_modifyCacheE(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_modifyCacheE___rarg___boxed), 4, 0); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_modifyCacheE___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_Lean_WithHashMapCache_modifyCacheE___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* _init_l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_getCacheE___rarg), 1, 0); +return x_1; +} +} +lean_object* l_Lean_WithHashMapCache_estateAdapter___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_modifyCacheE___rarg___boxed), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +x_4 = l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_3); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_estateAdapter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_estateAdapter___rarg), 2, 0); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_fromState___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_apply_1(x_3, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 1); +lean_ctor_set(x_4, 0, x_9); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_7); +lean_ctor_set(x_4, 0, 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_4); +return x_12; +} +} +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; +x_13 = lean_ctor_get(x_4, 0); +x_14 = lean_ctor_get(x_4, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_4); +x_15 = lean_apply_1(x_3, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +if (lean_is_exclusive(x_15)) { + lean_ctor_release(x_15, 0); + lean_ctor_release(x_15, 1); + x_18 = x_15; +} else { + lean_dec_ref(x_15); + x_18 = lean_box(0); +} +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_14); +if (lean_is_scalar(x_18)) { + x_20 = lean_alloc_ctor(0, 2, 0); +} else { + x_20 = x_18; +} +lean_ctor_set(x_20, 0, x_16); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +lean_object* l_Lean_WithHashMapCache_fromState(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_fromState___rarg___boxed), 4, 0); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_fromState___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_Lean_WithHashMapCache_fromState___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_toState___rarg(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; uint8_t x_8; +x_5 = l_HashMap_Inhabited___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_apply_1(x_3, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +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_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_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; +} +} +} +lean_object* l_Lean_WithHashMapCache_toState(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_toState___rarg___boxed), 4, 0); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_toState___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_Lean_WithHashMapCache_toState___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_fromEState___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_apply_1(x_3, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 1); +lean_ctor_set(x_4, 0, x_9); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_7); +lean_ctor_set(x_4, 0, 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_4); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_7, 1); +lean_ctor_set(x_4, 0, x_14); +lean_ctor_set(x_7, 1, x_4); +return x_7; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_7); +lean_ctor_set(x_4, 0, x_16); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_4, 0); +x_19 = lean_ctor_get(x_4, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_4); +x_20 = lean_apply_1(x_3, x_18); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_23 = x_20; +} else { + lean_dec_ref(x_20); + x_23 = lean_box(0); +} +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_19); +if (lean_is_scalar(x_23)) { + x_25 = lean_alloc_ctor(0, 2, 0); +} else { + x_25 = x_23; +} +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_20, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_28 = x_20; +} else { + lean_dec_ref(x_20); + x_28 = lean_box(0); +} +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_19); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(1, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_26); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +lean_object* l_Lean_WithHashMapCache_fromEState(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 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_fromEState___rarg___boxed), 4, 0); +return x_6; +} +} +lean_object* l_Lean_WithHashMapCache_fromEState___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_Lean_WithHashMapCache_fromEState___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_WithHashMapCache_toEState___rarg(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; +x_5 = l_HashMap_Inhabited___closed__1; +x_6 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_6, 0, x_4); +lean_ctor_set(x_6, 1, x_5); +x_7 = lean_apply_1(x_3, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +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_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_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; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_7); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_7, 1); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +lean_ctor_set(x_7, 1, x_17); +return x_7; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_7, 0); +x_19 = lean_ctor_get(x_7, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_7); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +lean_dec(x_19); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +lean_object* l_Lean_WithHashMapCache_toEState(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 = lean_alloc_closure((void*)(l_Lean_WithHashMapCache_toEState___rarg___boxed), 4, 0); +return x_6; +} +} +lean_object* l_Lean_WithHashMapCache_toEState___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_Lean_WithHashMapCache_toEState___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_5; +} +} +lean_object* initialize_Init_Control_Reader(lean_object*); +lean_object* initialize_Init_Control_EState(lean_object*); +lean_object* initialize_Init_Data_HashMap_Default(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Init_Lean_MonadCache(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_mk_io_result(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Control_Reader(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Control_EState(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Data_HashMap_Default(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1 = _init_l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1(); +lean_mark_persistent(l_Lean_WithHashMapCache_stateAdapter___rarg___closed__1); +l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1 = _init_l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1(); +lean_mark_persistent(l_Lean_WithHashMapCache_estateAdapter___rarg___closed__1); +return lean_mk_io_result(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/src/stage0/Init/Lean/TypeClass/Context.c b/src/stage0/Init/Lean/TypeClass/Context.c index a14feec5ae..9a94418e96 100644 --- a/src/stage0/Init/Lean/TypeClass/Context.c +++ b/src/stage0/Init/Lean/TypeClass/Context.c @@ -15,13 +15,14 @@ extern "C" { #endif lean_object* l_Lean_TypeClass_Context_slowWhnf(lean_object*); uint8_t l_Lean_TypeClass_Context_eHasETmpMVar(lean_object*); +lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); lean_object* l_Lean_TypeClass_Context_eHasTmpMVar___closed__1; uint8_t lean_name_dec_eq(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_Expr_constName(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*); uint8_t l_Lean_Expr_isConst(lean_object*); lean_object* l_RBNode_insert___at_Lean_TypeClass_Context_uAlphaNormalizeCore___main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eLookupIdx___boxed(lean_object*, lean_object*); @@ -29,7 +30,6 @@ lean_object* l_Lean_TypeClass_Context__u03b1Norm___closed__1; lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eInfer(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_bvarIdx(lean_object*); lean_object* l_Lean_TypeClass_Context_eMetaIdx(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); extern lean_object* l_Lean_exprIsInhabited; @@ -51,10 +51,10 @@ 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*); -lean_object* l_Lean_Expr_bindingBody(lean_object*); size_t l_USize_sub(size_t, size_t); lean_object* l_Lean_TypeClass_Context_eShallowInstantiate(lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_metaPrefix___closed__1; uint8_t l_Lean_TypeClass_Context_uFind(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); @@ -72,10 +72,12 @@ extern lean_object* l_String_Inhabited; lean_object* l_Lean_TypeClass_Context_uShallowInstantiate(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_Inhabited___closed__1; lean_object* l_Lean_TypeClass_Context_eAssign___closed__1; +lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l_Lean_Level_format(lean_object*); lean_object* l_PersistentArray_set___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uLookupIdx___boxed(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eUnify___main___closed__1; +lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l_Lean_TypeClass_Context_uFind___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_eAlphaNormalizeCore(lean_object*, lean_object*); lean_object* l_PersistentArray_get_x21___at_Lean_TypeClass_Context_eLookupIdx___spec__1___boxed(lean_object*, lean_object*); @@ -87,6 +89,7 @@ uint8_t l_Lean_TypeClass_Context_uIsMeta(lean_object*); lean_object* l_List_forM_u2082___main___at_Lean_TypeClass_Context_eUnify___main___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_Inhabited; uint8_t l_Lean_TypeClass_Context_uFind___main(lean_object*, lean_object*); +lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); extern lean_object* l_panicWithPos___rarg___closed__3; uint8_t l_Lean_TypeClass_Context_eFind___main(lean_object*, lean_object*); lean_object* lean_expr_mk_const(lean_object*, lean_object*); @@ -95,7 +98,6 @@ lean_object* l_Lean_TypeClass_Context_uIsMeta___boxed(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_TypeClass_Context_eInstantiate___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uUnify___main___closed__1; -lean_object* l_Lean_Expr_bindingDomain(lean_object*); lean_object* l_Lean_TypeClass_Context_uShallowInstantiate___main(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uHasTmpMVar___closed__1; lean_object* l_Lean_TypeClass_Context_alphaMetaPrefix; @@ -135,6 +137,7 @@ lean_object* l_panicWithPos___at_Lean_TypeClass_Context_eAssign___spec__1___boxe extern lean_object* l_PersistentArray_getAux___main___rarg___closed__1; lean_object* l_Lean_TypeClass_Context_slowWhnfApp___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uOccursIn___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); 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*); @@ -171,7 +174,6 @@ 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*); lean_object* l_Lean_TypeClass_Context_eLookupIdx(lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uFind___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Expr_constLevels(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; @@ -193,9 +195,7 @@ uint8_t l_Lean_Expr_isBVar(lean_object*); uint8_t lean_expr_has_expr_mvar(lean_object*); lean_object* l_Lean_TypeClass_Context_uAlphaNormalizeCore(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_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_TypeClass_Context_uUnify___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_fvarName(lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l_Lean_TypeClass_Context_slowWhnf___main(lean_object*); lean_object* lean_usize_to_nat(size_t); @@ -738,7 +738,7 @@ x_4 = l_Lean_TypeClass_Context_eInfer___closed__1; x_5 = lean_unsigned_to_nat(71u); x_6 = lean_unsigned_to_nat(14u); x_7 = l_Lean_TypeClass_Context_eInfer___closed__2; -x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_4, x_5, x_6, x_7); +x_8 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_4, x_5, x_6, x_7); return x_8; } else @@ -2397,7 +2397,7 @@ return x_2; else { lean_object* x_4; uint8_t x_5; uint8_t x_6; -x_4 = l_Lean_Expr_constLevels(x_1); +x_4 = l_Lean_Expr_constLevels_x21(x_1); x_5 = 0; x_6 = l_List_foldr___main___at_Lean_TypeClass_Context_eHasTmpMVar___spec__1(x_5, x_4); return x_6; @@ -3142,8 +3142,8 @@ goto block_43; else { lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = l_Lean_Expr_bindingDomain(x_8); -x_51 = l_Lean_Expr_bindingDomain(x_12); +x_50 = l_Lean_Expr_bindingDomain_x21(x_8); +x_51 = l_Lean_Expr_bindingDomain_x21(x_12); x_52 = l_Lean_TypeClass_Context_eUnify___main(x_50, x_51, x_11); if (lean_obj_tag(x_52) == 0) { @@ -3151,9 +3151,9 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); lean_dec(x_52); -x_54 = l_Lean_Expr_bindingBody(x_8); +x_54 = l_Lean_Expr_bindingBody_x21(x_8); lean_dec(x_8); -x_55 = l_Lean_Expr_bindingBody(x_12); +x_55 = l_Lean_Expr_bindingBody_x21(x_12); lean_dec(x_12); x_1 = x_54; x_2 = x_55; @@ -3216,8 +3216,8 @@ goto block_43; else { lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = l_Lean_Expr_bindingDomain(x_8); -x_67 = l_Lean_Expr_bindingDomain(x_12); +x_66 = l_Lean_Expr_bindingDomain_x21(x_8); +x_67 = l_Lean_Expr_bindingDomain_x21(x_12); x_68 = l_Lean_TypeClass_Context_eUnify___main(x_66, x_67, x_11); if (lean_obj_tag(x_68) == 0) { @@ -3225,9 +3225,9 @@ lean_object* x_69; lean_object* x_70; lean_object* x_71; x_69 = lean_ctor_get(x_68, 1); lean_inc(x_69); lean_dec(x_68); -x_70 = l_Lean_Expr_bindingBody(x_8); +x_70 = l_Lean_Expr_bindingBody_x21(x_8); lean_dec(x_8); -x_71 = l_Lean_Expr_bindingBody(x_12); +x_71 = l_Lean_Expr_bindingBody_x21(x_12); lean_dec(x_12); x_1 = x_70; x_2 = x_71; @@ -3295,8 +3295,8 @@ goto block_43; else { lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = l_Lean_Expr_bindingDomain(x_8); -x_86 = l_Lean_Expr_bindingDomain(x_12); +x_85 = l_Lean_Expr_bindingDomain_x21(x_8); +x_86 = l_Lean_Expr_bindingDomain_x21(x_12); x_87 = l_Lean_TypeClass_Context_eUnify___main(x_85, x_86, x_11); if (lean_obj_tag(x_87) == 0) { @@ -3304,9 +3304,9 @@ lean_object* x_88; lean_object* x_89; lean_object* x_90; x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); lean_dec(x_87); -x_89 = l_Lean_Expr_bindingBody(x_8); +x_89 = l_Lean_Expr_bindingBody_x21(x_8); lean_dec(x_8); -x_90 = l_Lean_Expr_bindingBody(x_12); +x_90 = l_Lean_Expr_bindingBody_x21(x_12); lean_dec(x_12); x_1 = x_89; x_2 = x_90; @@ -3434,8 +3434,8 @@ goto block_114; else { lean_object* x_121; lean_object* x_122; uint8_t x_123; -x_121 = l_Lean_Expr_constName(x_8); -x_122 = l_Lean_Expr_constName(x_12); +x_121 = l_Lean_Expr_constName_x21(x_8); +x_122 = l_Lean_Expr_constName_x21(x_12); x_123 = lean_name_dec_eq(x_121, x_122); lean_dec(x_122); lean_dec(x_121); @@ -3449,9 +3449,9 @@ goto block_114; else { lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = l_Lean_Expr_constLevels(x_8); +x_125 = l_Lean_Expr_constLevels_x21(x_8); lean_dec(x_8); -x_126 = l_Lean_Expr_constLevels(x_12); +x_126 = l_Lean_Expr_constLevels_x21(x_12); lean_dec(x_12); x_127 = l_List_forM_u2082___main___at_Lean_TypeClass_Context_eUnify___main___spec__3(x_125, x_126, x_11); return x_127; @@ -3488,8 +3488,8 @@ goto block_114; else { lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_133 = l_Lean_Expr_constName(x_8); -x_134 = l_Lean_Expr_constName(x_12); +x_133 = l_Lean_Expr_constName_x21(x_8); +x_134 = l_Lean_Expr_constName_x21(x_12); x_135 = lean_name_dec_eq(x_133, x_134); lean_dec(x_134); lean_dec(x_133); @@ -3503,9 +3503,9 @@ goto block_114; else { lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = l_Lean_Expr_constLevels(x_8); +x_137 = l_Lean_Expr_constLevels_x21(x_8); lean_dec(x_8); -x_138 = l_Lean_Expr_constLevels(x_12); +x_138 = l_Lean_Expr_constLevels_x21(x_12); lean_dec(x_12); x_139 = l_List_forM_u2082___main___at_Lean_TypeClass_Context_eUnify___main___spec__3(x_137, x_138, x_11); return x_139; @@ -3516,8 +3516,8 @@ return x_139; else { lean_object* x_140; lean_object* x_141; uint8_t x_142; -x_140 = l_Lean_Expr_fvarName(x_8); -x_141 = l_Lean_Expr_fvarName(x_12); +x_140 = l_Lean_Expr_fvarId_x21(x_8); +x_141 = l_Lean_Expr_fvarId_x21(x_12); x_142 = lean_name_dec_eq(x_140, x_141); lean_dec(x_141); lean_dec(x_140); @@ -3546,8 +3546,8 @@ goto block_114; else { lean_object* x_147; lean_object* x_148; uint8_t x_149; -x_147 = l_Lean_Expr_constName(x_8); -x_148 = l_Lean_Expr_constName(x_12); +x_147 = l_Lean_Expr_constName_x21(x_8); +x_148 = l_Lean_Expr_constName_x21(x_12); x_149 = lean_name_dec_eq(x_147, x_148); lean_dec(x_148); lean_dec(x_147); @@ -3561,9 +3561,9 @@ goto block_114; else { lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_151 = l_Lean_Expr_constLevels(x_8); +x_151 = l_Lean_Expr_constLevels_x21(x_8); lean_dec(x_8); -x_152 = l_Lean_Expr_constLevels(x_12); +x_152 = l_Lean_Expr_constLevels_x21(x_12); lean_dec(x_12); x_153 = l_List_forM_u2082___main___at_Lean_TypeClass_Context_eUnify___main___spec__3(x_151, x_152, x_11); return x_153; @@ -3611,8 +3611,8 @@ goto block_156; else { lean_object* x_162; lean_object* x_163; uint8_t x_164; -x_162 = l_Lean_Expr_bvarIdx(x_8); -x_163 = l_Lean_Expr_bvarIdx(x_12); +x_162 = l_Lean_Expr_bvarIdx_x21(x_8); +x_163 = l_Lean_Expr_bvarIdx_x21(x_12); x_164 = lean_nat_dec_eq(x_162, x_163); lean_dec(x_163); lean_dec(x_162); diff --git a/src/stage0/Init/Lean/TypeClass/Synth.c b/src/stage0/Init/Lean/TypeClass/Synth.c index 0389b12ecc..08e893236e 100644 --- a/src/stage0/Init/Lean/TypeClass/Synth.c +++ b/src/stage0/Init/Lean/TypeClass/Synth.c @@ -18,7 +18,6 @@ lean_object* l_PersistentHashMap_insertAux___main___at_Lean_TypeClass_newSubgoal lean_object* l_Lean_TypeClass_introduceLocals(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_mul(size_t, size_t); lean_object* l_Lean_TypeClass_synth___closed__2; -lean_object* l_Lean_Expr_constName(lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); @@ -50,6 +49,7 @@ 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*); lean_object* l_Lean_TypeClass_TypedExpr_Inhabited___closed__1; +lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_Array_back___at_Lean_TypeClass_generate___spec__2(lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); @@ -72,10 +72,12 @@ lean_object* l_Lean_TypeClass_wakeUp___boxed(lean_object*, lean_object*, lean_ob lean_object* l_Lean_TypeClass_quickIsClass___main(lean_object*, lean_object*); 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_Array_anyMAux___main___at_Lean_TypeClass_newAnswer___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l_Lean_LocalContext_mkLambda(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_lparams(lean_object*); lean_object* l_Array_toList___rarg(lean_object*); @@ -166,7 +168,6 @@ 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*); lean_object* l_Stack_peek_x21___at_Lean_TypeClass_consume___spec__1___boxed(lean_object*); -lean_object* l_Lean_Expr_constLevels(lean_object*); 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_Stack_pop___at_Lean_TypeClass_generate___spec__3(lean_object*); @@ -183,7 +184,6 @@ lean_object* l_List_foldl___main___at_Lean_TypeClass_constNameToTypedExpr___spec 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*); -lean_object* l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_land(size_t, size_t); lean_object* l_Lean_TypeClass_newAnswer___closed__2; lean_object* l_Lean_TypeClass_GeneratorNode_Inhabited___closed__1; @@ -388,7 +388,7 @@ return x_13; else { lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Expr_constName(x_9); +x_14 = l_Lean_Expr_constName_x21(x_9); lean_inc(x_14); x_15 = lean_is_class(x_1, x_14); if (x_15 == 0) @@ -4390,7 +4390,7 @@ goto block_278; else { lean_object* x_284; uint8_t x_285; -x_284 = l_Lean_Expr_constName(x_281); +x_284 = l_Lean_Expr_constName_x21(x_281); lean_dec(x_281); lean_inc(x_1); x_285 = lean_has_out_params(x_1, x_284); @@ -4483,7 +4483,7 @@ return x_7; else { lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Expr_constName(x_14); +x_24 = l_Lean_Expr_constName_x21(x_14); lean_inc(x_24); lean_inc(x_1); x_25 = lean_is_class(x_1, x_24); @@ -4509,7 +4509,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean lean_free_object(x_9); lean_free_object(x_7); lean_dec(x_2); -x_28 = l_Lean_Expr_constLevels(x_14); +x_28 = l_Lean_Expr_constLevels_x21(x_14); x_29 = l_Lean_TypeClass_Context_Inhabited___closed__1; x_30 = l_Lean_TypeClass_collectUReplacements___main(x_28, x_29, x_6, x_6); x_31 = lean_ctor_get(x_30, 1); @@ -4540,7 +4540,7 @@ 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_40 = l_Lean_Expr_constName(x_39); +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) { @@ -4550,7 +4550,7 @@ x_70 = l_Lean_TypeClass_collectEReplacements___main___closed__1; x_71 = lean_unsigned_to_nat(284u); x_72 = lean_unsigned_to_nat(16u); x_73 = l_Lean_TypeClass_preprocessForOutParams___closed__1; -x_74 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_70, x_71, x_72, x_73); +x_74 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_70, x_71, x_72, x_73); lean_inc(x_11); x_75 = l_Lean_TypeClass_collectEReplacements___main(x_11, x_12, x_74, x_37, x_32, x_6, x_6); x_42 = x_75; @@ -4687,7 +4687,7 @@ x_108 = l_Lean_TypeClass_collectEReplacements___main___closed__1; x_109 = lean_unsigned_to_nat(284u); x_110 = lean_unsigned_to_nat(16u); x_111 = l_Lean_TypeClass_preprocessForOutParams___closed__1; -x_112 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_108, x_109, x_110, x_111); +x_112 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_108, x_109, x_110, x_111); lean_inc(x_11); x_113 = l_Lean_TypeClass_collectEReplacements___main(x_11, x_12, x_112, x_37, x_32, x_6, x_6); x_80 = x_113; @@ -4855,7 +4855,7 @@ return x_7; else { lean_object* x_131; uint8_t x_132; -x_131 = l_Lean_Expr_constName(x_120); +x_131 = l_Lean_Expr_constName_x21(x_120); lean_inc(x_131); lean_inc(x_1); x_132 = lean_is_class(x_1, x_131); @@ -4882,7 +4882,7 @@ else 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; lean_object* x_145; lean_free_object(x_7); lean_dec(x_2); -x_136 = l_Lean_Expr_constLevels(x_120); +x_136 = l_Lean_Expr_constLevels_x21(x_120); x_137 = l_Lean_TypeClass_Context_Inhabited___closed__1; x_138 = l_Lean_TypeClass_collectUReplacements___main(x_136, x_137, x_6, x_6); x_139 = lean_ctor_get(x_138, 1); @@ -4913,7 +4913,7 @@ x_146 = l_Array_toList___rarg(x_142); lean_dec(x_142); lean_inc(x_146); x_147 = lean_expr_mk_const(x_131, x_146); -x_148 = l_Lean_Expr_constName(x_147); +x_148 = l_Lean_Expr_constName_x21(x_147); x_149 = lean_environment_find(x_1, x_148); if (lean_obj_tag(x_149) == 0) { @@ -4923,7 +4923,7 @@ x_163 = l_Lean_TypeClass_collectEReplacements___main___closed__1; x_164 = lean_unsigned_to_nat(284u); x_165 = lean_unsigned_to_nat(16u); x_166 = l_Lean_TypeClass_preprocessForOutParams___closed__1; -x_167 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_163, x_164, x_165, x_166); +x_167 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_163, x_164, x_165, x_166); lean_inc(x_118); x_168 = l_Lean_TypeClass_collectEReplacements___main(x_118, x_119, x_167, x_145, x_140, x_6, x_6); x_150 = x_168; @@ -5009,7 +5009,7 @@ x_186 = l_Lean_TypeClass_collectEReplacements___main___closed__1; x_187 = lean_unsigned_to_nat(284u); x_188 = lean_unsigned_to_nat(16u); x_189 = l_Lean_TypeClass_preprocessForOutParams___closed__1; -x_190 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_186, x_187, x_188, x_189); +x_190 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_186, x_187, x_188, x_189); lean_inc(x_118); x_191 = l_Lean_TypeClass_collectEReplacements___main(x_118, x_119, x_190, x_145, x_140, x_6, x_6); x_173 = x_191; @@ -5143,7 +5143,7 @@ return x_211; else { lean_object* x_212; uint8_t x_213; -x_212 = l_Lean_Expr_constName(x_200); +x_212 = l_Lean_Expr_constName_x21(x_200); lean_inc(x_212); lean_inc(x_1); x_213 = lean_is_class(x_1, x_212); @@ -5175,7 +5175,7 @@ else lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; lean_dec(x_199); lean_dec(x_2); -x_218 = l_Lean_Expr_constLevels(x_200); +x_218 = l_Lean_Expr_constLevels_x21(x_200); x_219 = l_Lean_TypeClass_Context_Inhabited___closed__1; x_220 = l_Lean_TypeClass_collectUReplacements___main(x_218, x_219, x_6, x_6); x_221 = lean_ctor_get(x_220, 1); @@ -5206,7 +5206,7 @@ x_228 = l_Array_toList___rarg(x_224); lean_dec(x_224); lean_inc(x_228); x_229 = lean_expr_mk_const(x_212, x_228); -x_230 = l_Lean_Expr_constName(x_229); +x_230 = l_Lean_Expr_constName_x21(x_229); x_231 = lean_environment_find(x_1, x_230); if (lean_obj_tag(x_231) == 0) { @@ -5216,7 +5216,7 @@ x_245 = l_Lean_TypeClass_collectEReplacements___main___closed__1; x_246 = lean_unsigned_to_nat(284u); x_247 = lean_unsigned_to_nat(16u); x_248 = l_Lean_TypeClass_preprocessForOutParams___closed__1; -x_249 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_245, x_246, x_247, x_248); +x_249 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_245, x_246, x_247, x_248); lean_inc(x_197); x_250 = l_Lean_TypeClass_collectEReplacements___main(x_197, x_198, x_249, x_227, x_222, x_6, x_6); x_232 = x_250; @@ -5302,7 +5302,7 @@ x_268 = l_Lean_TypeClass_collectEReplacements___main___closed__1; x_269 = lean_unsigned_to_nat(284u); x_270 = lean_unsigned_to_nat(16u); x_271 = l_Lean_TypeClass_preprocessForOutParams___closed__1; -x_272 = l_panicWithPos___at_Lean_Expr_bindingDomain___spec__1(x_268, x_269, x_270, x_271); +x_272 = l_panicWithPos___at_Lean_Expr_bindingDomain_x21___spec__1(x_268, x_269, x_270, x_271); lean_inc(x_197); x_273 = l_Lean_TypeClass_collectEReplacements___main(x_197, x_198, x_272, x_227, x_222, x_6, x_6); x_255 = x_273;